From dea611c1ba8fe33ea5e495f955e978469a30ceb0 Mon Sep 17 00:00:00 2001 From: ZiRo Date: Fri, 19 Feb 2016 16:48:41 +0100 Subject: [PATCH] initial for catalog --- contrib/static/site.css | 28 +++++++++++++- contrib/templates/default/board.mustache | 8 +++- contrib/templates/default/catalog.mustache | 45 ++++++++++++++++++++++ 3 files changed, 78 insertions(+), 3 deletions(-) create mode 100644 contrib/templates/default/catalog.mustache diff --git a/contrib/static/site.css b/contrib/static/site.css index b549db9..f5e01d0 100644 --- a/contrib/static/site.css +++ b/contrib/static/site.css @@ -18,7 +18,7 @@ section { } -.frontend , .subject { +.frontend , .subject, .catalog_subject { color: #0F0C5D; } @@ -152,6 +152,30 @@ hr { margin-top: 2em; } +.board_header_catalog { + text-align: center; + margin-top: 1em; +} + +.catalog_thread { + float: left; + width: 256px; + text-align: center; + padding: 2px; + height: 256px; + overflow: hidden; + background-color: #D6DAF0; + margin: 2px; + border-style: solid; + border-width: 1px; + border-style: solid; + height: 256px; +} + +.catalog_header, .catalog_subject { + font-weight: bold; +} + a:hover , a:visited:hover { color: #ff0000; } @@ -428,4 +452,4 @@ textarea#reply-text { .legal { font-size: 10px; text-align: center; -} \ No newline at end of file +} diff --git a/contrib/templates/default/board.mustache b/contrib/templates/default/board.mustache index 85a9bb6..01dd049 100644 --- a/contrib/templates/default/board.mustache +++ b/contrib/templates/default/board.mustache @@ -29,6 +29,7 @@
{{board.Board}}
+
Catalog
{{{form}}} @@ -47,7 +48,12 @@
{{/board.Threads}} -
{{# board.PageList }}[ {{Text}} ] {{/ board.PageList }}
+
{{# board.PageList }}[ {{Text}} ] {{/ board.PageList }} + + | + + Catalog +
+ Catalog for {{board.Name}} + + + + {{{board.Navbar}}} + +
+
+
+
+
Catalog for {{board.Name}}
+ +
+
+ {{#board.Threads}} +
+ [Open] +
R: {{ReplyCount}} / P: {{Page}}
+
{{OP.Subject}}
+
+ {{{OP.RenderBody}}} +
+
+ {{/board.Threads}} +
+ +
+ + +