From 9f22aba8091dd082ad98d5ab9cdb603899298c51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20P=C3=A9rez-Cerezo?= Date: Wed, 18 Jul 2018 13:09:26 +0200 Subject: Added logo, tweaked css and presentation --- export/hemiptera.png | Bin 0 -> 209 bytes export/styles.css | 13 +++++++++++-- templates/bug.html | 5 ++--- templates/buglist.html | 8 +++----- templates/macros.html | 9 +++++++++ templates/main_page.html | 11 ++++++++--- 6 files changed, 33 insertions(+), 13 deletions(-) create mode 100644 export/hemiptera.png diff --git a/export/hemiptera.png b/export/hemiptera.png new file mode 100644 index 0000000..37f504a Binary files /dev/null and b/export/hemiptera.png differ diff --git a/export/styles.css b/export/styles.css index 2aab9ec..bb1cdfd 100644 --- a/export/styles.css +++ b/export/styles.css @@ -1,6 +1,6 @@ .container { border: 1px solid #aaa; - margin: 1em; + margin: 1em; margin-top:0; margin-bottom:-1px; padding: 1em; @@ -34,7 +34,8 @@ header { body { font-family: sans-serif; - margin: 0; + margin: 1em; + } @@ -189,8 +190,16 @@ h1 { background-color: #aaa; margin-bottom: 1em; border-radius: 3px 3px 0 0; + min-height: 2em; +} +.logo { + height: 2em; + float: left; + margin-right: 0.5em; } + + a { color:blue; diff --git a/templates/bug.html b/templates/bug.html index c8c2c70..a428576 100644 --- a/templates/bug.html +++ b/templates/bug.html @@ -4,12 +4,11 @@ Hemiptera Bugtracker at {{DOMAIN}} - - + {{ macros.head() }}
-

Hemiptera Bugtracker at {{DOMAIN}}

+ {{ macros.h1(DOMAIN) }}

{{prname}}

{{ replies[0]["Subject"]|e }} diff --git a/templates/buglist.html b/templates/buglist.html index 2664e00..15806e8 100644 --- a/templates/buglist.html +++ b/templates/buglist.html @@ -4,14 +4,12 @@ Hemiptera Bugtracker at {{DOMAIN}} - - + + {{ macros.head() }}
-

- Hemiptera Bugtracker at {{DOMAIN}} -

+ {{ macros.h1(DOMAIN) }}

Bugs in {{prname}}

diff --git a/templates/macros.html b/templates/macros.html index a84624f..76fad97 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -11,3 +11,12 @@ {% endmacro %} + +{% macro h1(DOMAIN) %} +

Hemiptera Bugtracker at {{DOMAIN}}

+{% endmacro %} +{% macro head() %} + + + +{% endmacro %} diff --git a/templates/main_page.html b/templates/main_page.html index dabb1ee..f7ffbe3 100644 --- a/templates/main_page.html +++ b/templates/main_page.html @@ -1,13 +1,18 @@ +{% import "macros.html" as macros %} Hemiptera Bugtracker at {{DOMAIN}} - - + {{ macros.head() }} - List of projects +
+ + {{ macros.h1(DOMAIN) }} +

List of projects

+
+
Name -- cgit v1.2.3