From 4c822ba2cdf1f95faac5d2a340ca8de0969b212b Mon Sep 17 00:00:00 2001 From: jeff Date: Sat, 31 Oct 2015 11:10:58 -0400 Subject: [PATCH] add overview --- contrib/templates/default/frontpage.mustache | 7 ++++-- contrib/templates/default/overview.mustache | 25 ++++++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 contrib/templates/default/overview.mustache diff --git a/contrib/templates/default/frontpage.mustache b/contrib/templates/default/frontpage.mustache index 5062afd..bbd5c47 100644 --- a/contrib/templates/default/frontpage.mustache +++ b/contrib/templates/default/frontpage.mustache @@ -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 @@ {{{postsgraph.Render}}} + {{! todo: move boardgraph into its own file like postsgraph }} @@ -60,8 +62,9 @@
-
- + +
+ {{{overview.Render}}}
diff --git a/contrib/templates/default/overview.mustache b/contrib/templates/default/overview.mustache new file mode 100644 index 0000000..23aa34d --- /dev/null +++ b/contrib/templates/default/overview.mustache @@ -0,0 +1,25 @@ +{{! overview.mustache +paramters: + +- overview (list of PostModels in order of last posted) + +}} + + + + + + + + + + + {{#overview}} + + + + + + {{/overview}} + +
NewsgroupPostedSubject
{{Board}}{{Date}}{{Subject}}