summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2018-07-19 20:24:07 +0200
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2018-07-19 20:24:07 +0200
commitbf9072e5a34cc3ab14b704fbef1fa4bb5dc14829 (patch)
treed75e42c1c2878c63375711bcd8e43970384f2cb2
parent9f22aba8091dd082ad98d5ab9cdb603899298c51 (diff)
downloadhemiptera-bf9072e5a34cc3ab14b704fbef1fa4bb5dc14829.tar.gz
hemiptera-bf9072e5a34cc3ab14b704fbef1fa4bb5dc14829.tar.bz2
hemiptera-bf9072e5a34cc3ab14b704fbef1fa4bb5dc14829.zip
added footer.
-rw-r--r--export/styles.css12
-rw-r--r--templates/bug.html2
-rw-r--r--templates/buglist.html2
-rw-r--r--templates/macros.html31
-rw-r--r--templates/main_page.html1
5 files changed, 33 insertions, 15 deletions
diff --git a/export/styles.css b/export/styles.css
index bb1cdfd..71c36d7 100644
--- a/export/styles.css
+++ b/export/styles.css
@@ -142,7 +142,8 @@ img {
table {
margin: 1em;
border-radius: 3px;
-
+ min-width: 42em;
+ max-width: 98% !important;
}
@@ -224,7 +225,7 @@ a:hover{
clear:both;
}
-.devavatars {
+.devavatars, footer {
border: 1px solid #aaa;
padding: 0.5em;
border-radius: 3px;
@@ -235,3 +236,10 @@ a:hover{
margin-bottom: 0.5em;
margin-top: 0.5em;
}
+
+footer {
+ max-width: 40em;
+ min-height: 2em;
+ margin: 1em;
+ padding: 1em;
+}
diff --git a/templates/bug.html b/templates/bug.html
index a428576..2173268 100644
--- a/templates/bug.html
+++ b/templates/bug.html
@@ -39,6 +39,6 @@
{% endif %}
{{ macros.form(bug.id, DOMAIN, True) }}
-
+ {{ macros.footer() }}
</body>
diff --git a/templates/buglist.html b/templates/buglist.html
index 15806e8..eb16bf0 100644
--- a/templates/buglist.html
+++ b/templates/buglist.html
@@ -61,5 +61,5 @@
</table>
{{ macros.form(prname, DOMAIN) }}
-
+{{ macros.footer() }}
</body>
diff --git a/templates/macros.html b/templates/macros.html
index 76fad97..76e7f91 100644
--- a/templates/macros.html
+++ b/templates/macros.html
@@ -2,21 +2,30 @@
<form action="mailto:{{ to }}@{{ domain }}" method="GET" class="submit">
<a name="ReplyForm"></a>
{% if reply %}
- <h5 class="form" > Reply </h4>
-{% else %}
-<h5 class="form" > Submit a bug </h4>
-<label for="subject">Subject: </label><input name="subject" type="text" /><br>
-{% endif %}
-<label for="body">Description of bug:</label><br><textarea name="body"></textarea><br>
-<input type="submit" value="Open mail program to submit bug report" />
+ <h5 class="form" > Reply </h5>
+ {% else %}
+ <h5 class="form" > Submit a bug </h5>
+ <label for="subject">Subject: </label><input name="subject" type="text" /><br>
+ {% endif %}
+ <label for="body">Description of bug:</label><br><textarea name="body"></textarea><br>
+ <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>
+<h1><a href="/"> <img class="logo" src="/hemiptera.png" alt="Hemiptera Logo" > 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"/>
+<meta charset="utf-8">
+<link rel="stylesheet" type="text/css" href="/styles.css" >
+<link rel="icon" type="image/png" href="/hemiptera.png"/>
+{% endmacro %}
+
+
+{% macro footer() %}
+<footer>
+ <img class="logo" src="/hemiptera.png" alt="Hemiptera Logo" >Pages generated by Hemiptera.<br> Hemiptera is free software, licensed under AGPL v3. <a href="https://git.bananach.space/hemiptera.git" >Source code</a>
+
+</footer>
+
{% endmacro %}
diff --git a/templates/main_page.html b/templates/main_page.html
index f7ffbe3..ed18678 100644
--- a/templates/main_page.html
+++ b/templates/main_page.html
@@ -30,4 +30,5 @@
</tr>
{% endfor %}
</table>
+ {{ macros.footer() }}
</body>