FEATURE: mobile template for the Top page
This commit is contained in:
parent
28bf78d801
commit
c6ed4b2095
|
@ -0,0 +1,76 @@
|
|||
{{#if loaded}}
|
||||
{{#if topics}}
|
||||
<table id="topic-list">
|
||||
{{#groupedEach topic in topics}}
|
||||
<tr>
|
||||
<td>
|
||||
<div class='main-link clearfix'>
|
||||
{{topicStatus topic=this}}
|
||||
{{{topicLink this}}}
|
||||
{{#if unread}}
|
||||
<a href="{{lastUnreadUrl}}" class='badge unread badge-notification' title='{{i18n topic.unread_posts count="unread"}}'>{{unread}}</a>
|
||||
{{/if}}
|
||||
{{#if displayNewPosts}}
|
||||
<a href="{{lastUnreadUrl}}" class='badge new-posts badge-notification' title='{{i18n topic.new_posts count="displayNewPosts"}}'>{{displayNewPosts}}</a>
|
||||
{{/if}}
|
||||
{{#if unseen}}
|
||||
<a href="{{lastUnreadUrl}}" class='badge new-posts badge-notification' title='{{i18n topic.new}}'><i class='fa fa-asterisk'></i></a>
|
||||
{{/if}}
|
||||
{{#if hasExcerpt}}
|
||||
<div class="topic-excerpt">
|
||||
{{excerpt}}
|
||||
{{#if excerptTruncated}}
|
||||
{{#unless canClearPin}}<a href="{{lastUnreadUrl}}">{{i18n read_more}}</a>{{/unless}}
|
||||
{{/if}}
|
||||
{{#if canClearPin}}
|
||||
<a href="#" {{action clearPin this}} title="{{i18n topic.clear_pin.help}}">{{i18n topic.clear_pin.title}}</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="topic-item-stats clearfix">
|
||||
<div class='category'>
|
||||
{{categoryLink category}}
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
<div class='num posts'>
|
||||
<a href="{{lastUnreadUrl}}">
|
||||
<i class='fa fa-comment'></i> {{number posts_count numberKey="posts_long"}}
|
||||
</a>
|
||||
</div>
|
||||
{{#if like_count}}
|
||||
<div class='num likes'>
|
||||
<a href='{{url}}{{#if has_summary}}?filter=summary{{/if}}' title='{{i18n topic.likes count="like_count"}}'>
|
||||
<i class='fa fa-heart'></i> {{number like_count numberKey="likes_long"}}
|
||||
</a>
|
||||
</div>
|
||||
{{/if}}
|
||||
<div {{bindAttr class=":num :views viewsHeat"}}>
|
||||
<a href="{{lastUnreadUrl}}">
|
||||
<i class='fa fa-eye'></i> {{number views numberKey="views_long"}}
|
||||
</a>
|
||||
</div>
|
||||
{{#if bumped}}
|
||||
<div class='num activity last'>
|
||||
<a href="{{lastPostUrl}}" class='age' title='{{i18n last_post}}: {{{unboundDate bumped_at}}}'>{{unboundAge bumped_at}}</a>
|
||||
</div>
|
||||
{{else}}
|
||||
<div class='num activity last'>
|
||||
<a href="{{url}}" class='age' title='{{i18n first_post}}: {{{unboundDate created_at}}}'>{{unboundAge created_at}}</a>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{{/groupedEach}}
|
||||
</table>
|
||||
{{else}}
|
||||
<div class='alert alert-info'>
|
||||
{{i18n choose_topic.none_found}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{else}}
|
||||
<div class='spinner'>{{i18n loading}}</div>
|
||||
{{/if}}
|
Loading…
Reference in New Issue