commit c98898cb0403f66377711920d87d66de15492219
parent f99908fcdb0a00ef7f9a70d11d773edfb9405e2c
Author: parazyd <parazyd@dyne.org>
Date: Mon, 21 Jan 2019 15:40:46 +0100
Add a <hr> under a page title in the templates.
Diffstat:
13 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/static/css/diaspora.css b/static/css/diaspora.css
@@ -10,7 +10,7 @@ html, body {
height: 100%;
font-family: 'Libre Baskerville', serif;
font-style: italic;
- font-size: 1.2em;
+ font-size: 1em;
}
nav {
diff --git a/templates/country.html b/templates/country.html
@@ -11,7 +11,7 @@
{% else %}
<h1 class="cover-heading">{{ country }} diaries</h1>
{% endif %}
-
+ <hr style="width: 100%; height: 2px;">
<div class="album py-5 bg-light">
<div class="container">
diff --git a/templates/dashboard.html b/templates/dashboard.html
@@ -7,6 +7,7 @@
<main role="main" class="container cover">
<h1 class="cover-heading">Dashboard - {{ listtype }} stories</h1>
+ <hr style="width: 100%; height: 2px;">
<div class="album py-5 bg-light">
<div class="container">
diff --git a/templates/fail.html b/templates/fail.html
@@ -7,6 +7,7 @@
<main role="main" class="container cover">
<h1 class="cover-heading">Sorry!</h1>
+ <hr style="width: 100%; height: 2px;">
<p class="lead">{{ msg }}</p>
diff --git a/templates/index.html b/templates/index.html
@@ -7,6 +7,7 @@
<main role="main" class="container cover">
<h1 class="cover-heading">Diaspora Diaries</h1>
+ <hr style="width: 100%; height: 2px;">
<p>This is a place where everyone that has an experience with living abroad
can write down their story.</p>
diff --git a/templates/messages.html b/templates/messages.html
@@ -11,6 +11,7 @@
{% else %}
<h1 class="cover-heading">Messages</h1>
{% endif %}
+ <hr style="width: 100%; height: 2px;">
{% if not single %}
<div class="table-responsive">
diff --git a/templates/profile.html b/templates/profile.html
@@ -7,7 +7,7 @@
<main role="main" class="container cover">
<h1 class="cover-heading">Diaries by {{ name }}</h1>
-
+ <hr style="width: 100%; height: 2px;">
<div class="album py-5 bg-light">
<div class="container">
diff --git a/templates/success_approve.html b/templates/success_approve.html
@@ -7,6 +7,7 @@
<main role="main" class="container cover">
<h1 class="cover-heading">Story approved!</h1>
+ <hr style="width: 100%; height: 2px;">
<p class="lead">You can return to the <a href="/dashboard?list=pending">dashboard</a> now.</p>
diff --git a/templates/success_delete.html b/templates/success_delete.html
@@ -7,6 +7,7 @@
<main role="main" class="container cover">
<h1 class="cover-heading">Story deleted!</h1>
+ <hr style="width: 100%; height: 2px;">
<p class="lead">We're sorry you deleted your story.</p>
diff --git a/templates/success_edit.html b/templates/success_edit.html
@@ -7,6 +7,7 @@
<main role="main" class="container cover">
<h1 class="cover-heading">Story redacted!</h1>
+ <hr style="width: 100%; height: 2px;">
<p class="lead">You can return to the <a href="/dashboard">dashboard</a> now.</p>
diff --git a/templates/success_hide.html b/templates/success_hide.html
@@ -7,6 +7,7 @@
<main role="main" class="container cover">
<h1 class="cover-heading">Story hidden.</h1>
+ <hr style="width: 100%; height: 2px;">
<p class="lead">You can return to the <a href="/dashboard?list=published">dashboard</a> now.</p>
diff --git a/templates/users.html b/templates/users.html
@@ -7,6 +7,7 @@
<main role="main" class="container-fluid">
<h1 class="cover-heading">Users</h1>
+ <hr style="width: 100%; height: 2px;">
<div class="table-responsive">
<table class="table table-sm table-striped table-hover">
diff --git a/templates/view.html b/templates/view.html
@@ -9,14 +9,14 @@
{% if story %}
<h1 class="cover-heading">{{ story['name'] }} in {{ story['disembarkname'] }}</h1>
+ <hr style="width: 100%; height: 2px;">
<p>by {{ story['name'] }}, {{ story['date'] }} {{ story['time'] }}</p>
{% if current_user.is_admin %}
- <hr style="width:100%; height: 2px;">
<a href="/edit?id={{ story['id'] }}" class="btn btn-sm btn-outline-secondary">Edit</a>
<a href="/dashboard?hideid={{ story['id'] }}" class="btn btn-sm btn-outline-secondary">Hide</a>
- {% endif %}
<hr style="width: 100%; height: 2px;">
+ {% endif %}
{{ story['story']|safe }}