add overview
This commit is contained in:
parent
2212f61ff0
commit
4c822ba2cd
@ -3,6 +3,7 @@
|
|||||||
template parameters:
|
template parameters:
|
||||||
- boardgraph ( a boardPageRows instance, see srnd/model.go )
|
- boardgraph ( a boardPageRows instance, see srnd/model.go )
|
||||||
- postgraph ( a postsGraph 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 )
|
- totalposts ( the number of total posts we have ever seen )
|
||||||
- frontend ( the name of the frontend )
|
- frontend ( the name of the frontend )
|
||||||
- prefix ( the site's prefix )
|
- prefix ( the site's prefix )
|
||||||
@ -32,6 +33,7 @@
|
|||||||
<!-- begin posts graph -->
|
<!-- begin posts graph -->
|
||||||
{{{postsgraph.Render}}}
|
{{{postsgraph.Render}}}
|
||||||
<!-- begin board graph -->
|
<!-- begin board graph -->
|
||||||
|
{{! todo: move boardgraph into its own file like postsgraph }}
|
||||||
<table id="board_graph">
|
<table id="board_graph">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
@ -60,8 +62,9 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<!-- begin overview -->
|
||||||
|
<div class="index-inner">
|
||||||
|
{{{overview.Render}}}
|
||||||
</div>
|
</div>
|
||||||
</center>
|
</center>
|
||||||
</body>
|
</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