Archived
1
0

add overview

This commit is contained in:
jeff 2015-10-31 11:10:58 -04:00
parent 2212f61ff0
commit 4c822ba2cd
2 changed files with 30 additions and 2 deletions

View File

@ -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>

View 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>