postActions.js

From disqus.com, 7 Months ago, written in JavaScript, viewed 3 times. This paste is a reply to postContent.js from disqus.com - view diff
URL https://pastebin.freepbx.org/view/9dd9d4d1 Embed
Download Paste or View Raw
  1. define('home/templates/postActions',['handlebars', 'handlebars.partials', 'core/extensions/handlebars.helpers'], function(Handlebars) {
  2.  
  3. return Handlebars.template({"1":function(container,depth0,helpers,partials,data) {
  4.     var stack1, alias1=depth0 != null ? depth0 : {};
  5.  
  6.   return "<a href=\"#\" class=\"vote-up"
  7.     + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.sessionUserHasUpvoted : depth0),{"name":"if","hash":{},"fn":container.program(2, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
  8.     + "\" data-action=\"vote\" data-vote=\"1\">\n<span class=\"vote__count text-gray text-small\" data-role=\"upvotes\">\n"
  9.     + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.likes : depth0),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
  10.     + "\n</span>\n<span class=\"icon-arrow-up icon-tiny\"></span>\n</a>\n";
  11. },"2":function(container,depth0,helpers,partials,data) {
  12.     return " active";
  13. },"4":function(container,depth0,helpers,partials,data) {
  14.     return container.escapeExpression(container.lambda((depth0 != null ? depth0.likes : depth0), depth0));
  15. },"6":function(container,depth0,helpers,partials,data) {
  16.     var stack1, alias1=depth0 != null ? depth0 : {};
  17.  
  18.   return "<a href=\"#\" class=\"vote-down"
  19.     + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.sessionUserHasDownvoted : depth0),{"name":"if","hash":{},"fn":container.program(2, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
  20.     + "\" data-action=\"vote\" data-vote=\"-1\">\n<span class=\"icon-arrow-down icon-tiny\"></span>\n<span class=\"vote__count text-gray text-small\" data-role=\"downvotes\">\n"
  21.     + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.showDownvoteCount : depth0),{"name":"if","hash":{},"fn":container.program(7, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
  22.     + "\n</span>\n</a>\n";
  23. },"7":function(container,depth0,helpers,partials,data) {
  24.     return container.escapeExpression(container.lambda((depth0 != null ? depth0.dislikes : depth0), depth0));
  25. },"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
  26.     var stack1, alias1=depth0 != null ? depth0 : {}, alias2=container.lambda, alias3=container.escapeExpression;
  27.  
  28.   return ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.showUpvote : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
  29.     + "\n"
  30.     + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.showDownvote : depth0),{"name":"if","hash":{},"fn":container.program(6, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
  31.     + "\n"
  32.     + ((stack1 = container.invokePartial(partials.replyOrEditLink,depth0,{"name":"replyOrEditLink","data":data,"helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "")
  33.     + "\n<a href=\""
  34.     + alias3(alias2((depth0 != null ? depth0.discussionRoute : depth0), depth0))
  35.     + "#comment-"
  36.     + alias3(alias2((depth0 != null ? depth0.id : depth0), depth0))
  37.     + "\"\nclass=\"view-comment link-gray\"\ndata-link-name=\"view_comment\"\ndata-thread-id=\""
  38.     + alias3(alias2(((stack1 = (depth0 != null ? depth0.thread : depth0)) != null ? stack1.id : stack1), depth0))
  39.     + "\">\n\n<span class=\"visible-md\">"
  40.     + alias3(helpers.gettext.call(alias1,"View",{"name":"gettext","hash":{},"data":data}))
  41.     + "</span><span class=\"hidden-md\">"
  42.     + alias3(helpers.gettext.call(alias1,"View in discussion",{"name":"gettext","hash":{},"data":data}))
  43.     + "</span><span class=\"icon-expand\"></span>\n</a>\n";
  44. },"usePartial":true,"useData":true})
  45.  
  46. });
  47.  
  48. // https://c.disquscdn.com/next/82c6de3/home/js/templates/postActions.js

Replies to postActions.js rss

Title Name Language When
config.js disqus.com javascript 7 Months ago.

Reply to "postActions.js"

Here you can reply to the paste above