add overview
This commit is contained in:
parent
2212f61ff0
commit
4c822ba2cd
@ -3,6 +3,7 @@
|
||||
template parameters:
|
||||
- boardgraph ( a boardPageRows instance, see srnd/model.go )
|
||||
- postgraph ( a postsGraph instance , see srnd/model.go )
|
||||
- overview ( an overviewModel instance, see srnd/model.go )
|
||||
- totalposts ( the number of total posts we have ever seen )
|
||||
- frontend ( the name of the frontend )
|
||||
- prefix ( the site's prefix )
|
||||
@ -32,6 +33,7 @@
|
||||
<!-- begin posts graph -->
|
||||
{{{postsgraph.Render}}}
|
||||
<!-- begin board graph -->
|
||||
{{! todo: move boardgraph into its own file like postsgraph }}
|
||||
<table id="board_graph">
|
||||
<tbody>
|
||||
<tr>
|
||||
@ -60,8 +62,9 @@
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
<!-- begin overview -->
|
||||
<div class="index-inner">
|
||||
{{{overview.Render}}}
|
||||
</div>
|
||||
</center>
|
||||
</body>
|
||||
|
25
contrib/templates/default/overview.mustache
Normal file
25
contrib/templates/default/overview.mustache
Normal file
@ -0,0 +1,25 @@
|
||||
{{! overview.mustache
|
||||
paramters:
|
||||
|
||||
- overview (list of PostModels in order of last posted)
|
||||
|
||||
}}
|
||||
|
||||
<table id="overview_graph">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Newsgroup</th>
|
||||
<th>Posted</th>
|
||||
<th>Subject</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{#overview}}
|
||||
<tr>
|
||||
<td>{{Board}}</td>
|
||||
<td>{{Date}}</td>
|
||||
<td>{{Subject}}</td>
|
||||
</tr>
|
||||
{{/overview}}
|
||||
</tbody>
|
||||
</table>
|
Reference in New Issue
Block a user