FEATURE: Simple topic list display of KE items
This commit is contained in:
parent
03a85bb3d7
commit
0a39e3adcc
|
@ -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>
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
<h1> WHALE HELLO</h1>
|
<div class="knowledge-explorer">
|
||||||
{{topicList}}
|
{{knowledge-explorer-topic-list model=model}}
|
||||||
|
</div>
|
||||||
|
|
|
@ -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__)
|
||||||
|
|
Loading…
Reference in New Issue