From 15b14980f8dc77d4cd560420b6f73b7ca1d9cc1e Mon Sep 17 00:00:00 2001 From: jeff Date: Sun, 1 Nov 2015 11:41:05 -0500 Subject: [PATCH] history graph template added --- .../templates/default/graph_history.mustache | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 contrib/templates/default/graph_history.mustache diff --git a/contrib/templates/default/graph_history.mustache b/contrib/templates/default/graph_history.mustache new file mode 100644 index 0000000..355ea43 --- /dev/null +++ b/contrib/templates/default/graph_history.mustache @@ -0,0 +1,34 @@ +{{! +graph_history.mustache +template parameters: +- history ( a list of PostEntry instances, see srnd/model.go ) + +}} + + + + + + Post History + </head> + <body> + <table id="posts_graph"> + <thead> + <tr> + <th>Month</th> + <th>Posts</th> + <th></th> + </tr> + </thead> + <tbody> + {{#history.Scale}} + <tr> + <td>{{Date}}</td> + <td>{{Num}}</td> + <td>{{OvercockGraph}}</td> + </tr> + {{/history.Scale}} + </tbody> + </table> + </body> +</html> \ No newline at end of file