Skip to content

Instantly share code, notes, and snippets.

@Piioo
Forked from gnunicorn/adsense_injct.tmpl.yml
Last active August 29, 2015 14:01
Show Gist options
  • Save Piioo/f4ba8bf4d2618cf13422 to your computer and use it in GitHub Desktop.
Save Piioo/f4ba8bf4d2618cf13422 to your computer and use it in GitHub Desktop.
b61f24d89806d16ef6e980c10a068434:
path: 5
---
{{#if Discourse.Mobile.mobileView}}
{{adsenseBlock "320" "50" "topic_bottom_mobile"}}
{{else}}
{{adsenseBlock "728" "90" "topic_bottom"}}
{{/if}}
b61f24d89806d16ef6e980c10a068434:
path: if if-else if [0]
---
{{#if Discourse.Mobile.mobileView}}
{{adsenseBlock "320" "50" "topic_bottom_mobile"}}
{{else}}
{{adsenseBlock "728" "90" "topic_bottom"}}
{{/if}}
b61f24d89806d16ef6e980c10a068434:
path: if if if-else if[2]
shift: 1
061dd3942f735486fbc91b5c7dfcf7a6:
path: if if if-else if[2]
shift: 1
---
{{#if model.tags}}
<div class="tagger-tags-view">
<span>tagged:</span>
{{#each model.tags}}
<a href="/tag/{{unbound this}}" class="tagger-tag">{{this}}</a>
{{/each}}
</div>
{{/if}}
b61f24d89806d16ef6e980c10a068434:
path: if if if[1] [8]
shift: 1
061dd3942f735486fbc91b5c7dfcf7a6:
path: if if if[1] [8]
shift: 1
---
<div class="tagger-tags-view">
<label>Tags:</label>
{{#if new_tags}}
{{#each new_tags}}
<span class="tagger-tag" >{{this}} <i {{action removeTag this }} class="fa fa-times"></i></span>
{{/each}}
{{/if}}
{{tags-selector tags=new_tags}}
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment