postActions.js

From disqus.com, 8 Months ago, written in JavaScript, viewed 3 times. This paste is a reply to postContent.js from disqus.com - go back
URL https://pastebin.freepbx.org/view/9dd9d4d1/diff Embed
Viewing differences between postContent.js and postActions.js
define('home/templates/postContent',['handlebars', define('home/templates/postActions',['handlebars', 'handlebars.partials', 'core/extensions/handlebars.helpers'], function(Handlebars) {

return Handlebars.template({"1":function(container,depth0,helpers,partials,data) {
    var stack1, alias1=depth0 != null ? depth0 : {};

  
return "comment-message-hidden";
"<a href=\"#\" class=\"vote-up"
    + ((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 : "")
    + "\" data-action=\"vote\" data-vote=\"1\">\n<span class=\"vote__count text-gray text-small\" data-role=\"upvotes\">\n"
    + ((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 : "")
    + "\n</span>\n<span class=\"icon-arrow-up icon-tiny\"></span>\n</a>\n";
},"2":function(container,depth0,helpers,partials,data) {
    return " active";
},"4":function(container,depth0,helpers,partials,data) {
    return container.escapeExpression(container.lambda((depth0 != null ? depth0.likes : depth0), depth0));
},"6":function(container,depth0,helpers,partials,data) {
    var stack1, alias1=depth0 != null ? depth0 : {};

  return "<a href=\"#\" class=\"vote-down"
    + ((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 : "")
    + "\" 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"
    + ((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 : "")
    + "\n</span>\n</a>\n";
},"7":function(container,depth0,helpers,partials,data) {
    return container.escapeExpression(container.lambda((depth0 != null ? depth0.dislikes : depth0), depth0));
},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
    var stack1, alias1=depth0 != null ? depth0 : {}, alias2=container.lambda, alias3=container.escapeExpression;

  return "<div class=\"comment-message expanded "
    + 
((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.isHidden showUpvote : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
    + "\"\ndata-role=\"message\" dir=\"auto\">\n"
"\n"
    + ((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 : "")
    + "\n"
    + ((stack1 = container.lambda((depth0 != null ? depth0.message : depth0), depth0)) invokePartial(partials.replyOrEditLink,depth0,{"name":"replyOrEditLink","data":data,"helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "")
    + "\n<div><ul class=\"post-media\" data-role=\"post-media-list\"></ul></div>\n</div>\n<a  href=\"#\" class=\"curtain-truncate hidden\" title=\""
    
"\n<a href=\""
    
alias2(helpers.alias3(alias2((depth0 != null ? depth0.discussionRoute : depth0), depth0))
    + "#comment-"
    + alias3(alias2((depth0 != null ? depth0.id : depth0), depth0))
    + "\"\nclass=\"view-comment link-gray\"\ndata-link-name=\"view_comment\"\ndata-thread-id=\""
    + alias3(alias2(((stack1 = (depth0 != null ? depth0.thread : depth0)) != null ? stack1.id : stack1), depth0))
    + "\">\n\n<span class=\"visible-md\">"
    + alias3(helpers.
gettext.call(alias1,"see more",{"name":"gettext","hash":{},"data":data}))
    
call(alias1,"View",{"name":"gettext","hash":{},"data":data}))
    
"\"\ndata-action=\"expand\"\ndata-target=\".comment-message\">"
    
"</span><span class=\"hidden-md\">"
    
alias2(helpers.alias3(helpers.gettext.call(alias1,"see more",{"name":"gettext","hash":{},"data":data}))
    
call(alias1,"View in discussion",{"name":"gettext","hash":{},"data":data}))
    
"</a>\n";
},"useData":true})

});
"</span><span class=\"icon-expand\"></span>\n</a>\n";
},"usePartial":true,"useData":true})

});

// https://c.disquscdn.com/next/82c6de3/home/js/templates/postContent.com/next/82c6de3/home/js/templates/postActions.js

Replies to postActions.js rss

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

Reply to "postActions.js"

Here you can reply to the paste above