FEATURE: Simple topic list display of KE items

This commit is contained in:
Justin DiRose 2019-07-02 10:01:28 -05:00
parent 03a85bb3d7
commit 0a39e3adcc
4 changed files with 31 additions and 2 deletions

View File

@ -0,0 +1,26 @@
<table class="topic-list">
<thead>
<th>Topic</th>
<th>Activity</th>
</thead>
<tbody>
{{#each model.knowledge_explorer as |topic|}}
<tr>
<td class="main-link">
<span class="link-top-line">
<a href="/t/{{topic.id}}">{{topic.title}}</a>
</span>
<span class="link-bottom-line">
{{#each topic.tags as |tag|}}
<span class="discourse-tag">{{tag}}</span>
{{/each}}
</span>
</td>
<td>
{{format-date topic.bumped_at format="tiny" noTitle="true"}}
</td>
</tr>
{{/each}}
</tbody>
</table>

View File

@ -1,2 +1,3 @@
<h1> WHALE HELLO</h1> <div class="knowledge-explorer">
{{topicList}} {{knowledge-explorer-topic-list model=model}}
</div>

View File

@ -5,4 +5,6 @@
enabled_site_setting :knowledge_explorer_enabled enabled_site_setting :knowledge_explorer_enabled
register_asset 'stylesheets/common/knowledge-explorer.scss'
load File.expand_path('../lib/knowledge_explorer/engine.rb', __FILE__) load File.expand_path('../lib/knowledge_explorer/engine.rb', __FILE__)