/explore.js

From disqus.com, 1 Year ago, written in JavaScript, viewed 3 times.
URL https://pastebin.freepbx.org/view/920f4610 Embed
Download Paste or View Raw
  1. define('home/templates/explore',['handlebars', 'handlebars.partials', 'core/extensions/handlebars.helpers'], function(Handlebars) {
  2.  
  3. return Handlebars.template({"1":function(container,depth0,helpers,partials,data) {
  4.     return "<li data-action=\"switch-tab\" data-tab=\"people\" class=\"nav__item\">\n<a href=\"/home/explore/people/\" class=\"nav-lnk -color-muted\">\n<div class=\"nav-lnk__blk\">\n<span class=\"button__text\">"
  5.     + container.escapeExpression(helpers.gettext.call(depth0 != null ? depth0 : {},"People",{"name":"gettext","hash":{},"data":data}))
  6.     + "</span>\n</div>\n<div class=\"nav-lnk__pointer\">\n<span class=\"icon icon-right-bracket\"></span>\n</div>\n</a>\n</li>\n";
  7. },"3":function(container,depth0,helpers,partials,data) {
  8.     var alias1=depth0 != null ? depth0 : {}, alias2=container.escapeExpression;
  9.  
  10.   return "<header data-role=\"header\" data-tab=\"people\" class=\"hidden module-header text-center\">\n<div class=\"align-inline spacing-top\">\n<div class=\"module-header__icon spacing-right text-larger\">\n<span class=\"icon-allstar allstar__icon icon__position\"></span>\n</div>\n<div class=\"module-header__title\">\n<h1 class=\"text-larger text-darker\">"
  11.     + alias2(helpers.gettext.call(alias1,"All-Stars",{"name":"gettext","hash":{},"data":data}))
  12.     + "</h1>\n</div>\n</div>\n<p class=\"text-medium text-gray spacing-bottom-narrow\">"
  13.     + alias2(helpers.gettext.call(alias1,"The star contributors and heart of the community. %(learnMore)s",{"name":"gettext","hash":{"learnMore":helpers.tag.call(alias1,"a",{"name":"tag","hash":{"text":"Learn more.","href":"https://disqus.com/home/channel/announcements/discussion/channel-announcements/all_stars/"},"data":data})},"data":data}))
  14.     + "</p>\n</header>\n";
  15. },"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
  16.     var stack1, alias1=depth0 != null ? depth0 : {}, alias2=container.escapeExpression;
  17.  
  18.   return "<div class=\"section-contained\">\n<div class=\"layout layout--tablet-no-aside\">\n<div class=\"layout__main\">\n<aside class=\"layout__nav\">\n<ul class=\"nav--no-aside\">\n<li data-action=\"switch-tab\" data-tab=\"channels\" class=\"nav__item active\">\n<a href=\"/home/explore/channels/\" class=\"nav-lnk -color-muted\">\n<div class=\"nav-lnk__blk\">\n<span class=\"button__text\">"
  19.     + alias2(helpers.gettext.call(alias1,"Channels",{"name":"gettext","hash":{},"data":data}))
  20.     + "</span>\n</div>\n<div class=\"nav-lnk__pointer\">\n<span class=\"icon icon-right-bracket\"></span>\n</div>\n</a>\n</li>\n"
  21.     + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.showPeople : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
  22.     + "<li data-action=\"switch-tab\" data-tab=\"discussions\" class=\"nav__item\">\n<a href=\"/home/explore/discussions/\" class=\"nav-lnk -color-muted\">\n<div class=\"nav-lnk__blk\">\n<span class=\"button__text\">"
  23.     + alias2(helpers.gettext.call(alias1,"Discussions",{"name":"gettext","hash":{},"data":data}))
  24.     + "</span>\n</div>\n<div class=\"nav-lnk__pointer\">\n<span class=\"icon icon-right-bracket\"></span>\n</div>\n</a>\n</li>\n</ul>\n</aside>\n<div class=\"layout__content\">\n<div class=\"content__wrap\">\n<header data-role=\"header\" data-tab=\"channels\" class=\"hidden module-header text-center\">\n"
  25.     + ((stack1 = container.invokePartial(partials.channelsHeader,depth0,{"name":"channelsHeader","data":data,"helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "")
  26.     + "</header>\n"
  27.     + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.showPeople : depth0),{"name":"if","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
  28.     + "<header data-role=\"header\" data-tab=\"discussions\" class=\"hidden module-header text-center\">\n<div class=\"align-inline spacing-top\">\n<div class=\"module-header__icon spacing-right text-larger\">\n<span class=\"icon-notification-response text-brand icon__position\"></span>\n</div>\n<div class=\"module-header__title\">\n<h1 class=\"text-larger text-darker\">"
  29.     + alias2(helpers.gettext.call(alias1,"Discussions",{"name":"gettext","hash":{},"data":data}))
  30.     + "</h1>\n</div>\n</div>\n<p class=\"text-medium text-gray spacing-bottom-narrow\">"
  31.     + alias2(helpers.gettext.call(alias1,"What people are talking about.",{"name":"gettext","hash":{},"data":data}))
  32.     + "</p>\n</header>\n<section id=\"content-area\" data-role=\"content-area\"></section>\n</div>\n</div>\n</div>\n</div>\n</div>\n";
  33. },"usePartial":true,"useData":true})
  34.  
  35. });
  36.  

Replies to /explore.js rss

Title Name Language When
embedContainer.js disqus.com javascript 1 Year ago.

Reply to "/explore.js"

Here you can reply to the paste above