discourse/lib/onebox/templates/discourse_category_onebox.m...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
1.1 KiB
Plaintext
Raw Normal View History

<aside class="onebox" style="border-left: 5px solid #{{color}}">
<article class="onebox-body category-onebox">
{{#logo_url}}
<img src="{{logo_url}}" class="thumbnail" />
{{/logo_url}}
<h3>
<a class="badge-wrapper bullet" href="{{url}}">
<span class="clear-badge"><span>{{{name}}}</span></span>
</a>
</h3>
{{#description}}
<div>
<span class="description">
<p>{{{description}}}</p>
</span>
</div>
{{/description}}
{{#has_subcategories}}
<div class="subcategories">
{{#subcategories}}
<span class="subcategory">
<a class="badge-wrapper bullet" href="{{url}}">
<span class="badge-category-bg" style="background-color: #{{{color}}}"></span>
<span class="badge-category clear-badge"><span class="category-name">{{{name}}}</span></span>
</a>
</span>
{{/subcategories}}
</div>
<div class="clearfix"></div>
{{/has_subcategories}}
</article>
<div class="clearfix"></div>
</aside>