diff --git a/contrib/templates/default/frontpage.mustache b/contrib/templates/default/frontpage.mustache index 982397b..65166fd 100644 --- a/contrib/templates/default/frontpage.mustache +++ b/contrib/templates/default/frontpage.mustache @@ -1,7 +1,8 @@ {{! frontpage.mustache -- template for index.html template parameters: - - graph ( a list of 4 string tuples: (board, posts_per_hour, posts_per_day, total_posts) ) + - boardgraph ( a boardPageRows instance, see srnd/model.go ) + - postgraph ( a postsGraph 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 ) @@ -36,7 +37,7 @@
diff --git a/contrib/templates/default/modlogin_result.mustache b/contrib/templates/default/modlogin_result.mustache index 87a1adb..55cbaa2 100644 --- a/contrib/templates/default/modlogin_result.mustache +++ b/contrib/templates/default/modlogin_result.mustache @@ -4,7 +4,7 @@ - prefix ( the site prefix ) - mod_prefix ( the prefix to the mod panel, could be something like https://mod.site.tld/ or /mod/ ) - message ( the message returned from the login attempt ) - - fail ( present if the login failed ) + - fail ( present if the login failed ) // not yet added }}
diff --git a/contrib/templates/default/posts_graph.mustache b/contrib/templates/default/posts_graph.mustache new file mode 100644 index 0000000..fac0abd --- /dev/null +++ b/contrib/templates/default/posts_graph.mustache @@ -0,0 +1,26 @@ +{{! +posts graph.mustache -- post frequence graph +parameters: + + * graph - a postsGraph instance (see srnd/model.go) +}} +
Day | +Posts | ++ |
---|---|---|
{{Day}} | +{{Num}} | +{{OvercockGraph}} | +
\ No newline at end of file