summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2018-07-18 13:09:26 +0200
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2018-07-18 13:09:26 +0200
commit9f22aba8091dd082ad98d5ab9cdb603899298c51 (patch)
treedeaf316a32475004692f92a8e8b7554fb2643831 /templates
parente557c1927edaf3271ee5d2dc763fa96cef0b2dee (diff)
downloadhemiptera-9f22aba8091dd082ad98d5ab9cdb603899298c51.tar.gz
hemiptera-9f22aba8091dd082ad98d5ab9cdb603899298c51.tar.bz2
hemiptera-9f22aba8091dd082ad98d5ab9cdb603899298c51.zip
Added logo, tweaked css and presentation
Diffstat (limited to 'templates')
-rw-r--r--templates/bug.html5
-rw-r--r--templates/buglist.html8
-rw-r--r--templates/macros.html9
-rw-r--r--templates/main_page.html11
4 files changed, 22 insertions, 11 deletions
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 @@
<title>
Hemiptera Bugtracker at {{DOMAIN}}
</title>
- <meta charset="utf-8">
- <link rel="stylesheet" type="text/css" href="/styles.css" >
+ {{ macros.head() }}
</head>
<body>
<header>
- <h1><a href="/"> Hemiptera Bugtracker at {{DOMAIN}}</a></h1>
+ {{ macros.h1(DOMAIN) }}
<h2><a href="/{{prname}}" >{{prname}}</a></h2>
<h3 class="subject" >
{{ 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 @@
<title>
Hemiptera Bugtracker at {{DOMAIN}}
</title>
- <meta charset="utf-8">
- <link rel="stylesheet" type="text/css" href="/styles.css" >
+
+ {{ macros.head() }}
</head>
<body>
<header>
- <h1>
- <a href="/" >Hemiptera Bugtracker at {{DOMAIN}}</a>
- </h1>
+ {{ macros.h1(DOMAIN) }}
<h3>
Bugs in {{prname}}
</h3>
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 @@
<input type="submit" value="Open mail program to submit bug report" />
</form>
{% endmacro %}
+
+{% macro h1(DOMAIN) %}
+<h1><a href="/"> <img class="logo" src="/hemiptera.png"> Hemiptera Bugtracker at {{DOMAIN}}</a></h1>
+{% endmacro %}
+{% macro head() %}
+ <meta charset="utf-8">
+ <link rel="stylesheet" type="text/css" href="/styles.css" >
+ <link rel="icon" type="image/png" href="/hemiptera.png"/>
+{% 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 %}
<!DOCTYPE html>
<head>
<title>
Hemiptera Bugtracker at {{DOMAIN}}
</title>
- <meta charset="utf-8">
- <link rel="stylesheet" type="text/css" href="/styles.css" >
+ {{ macros.head() }}
</head>
<body>
- List of projects
+ <header>
+
+ {{ macros.h1(DOMAIN) }}
+ <h2><a href="/" >List of projects</a></h2>
+ </header>
+
<table>
<thead>
<td>Name