diasporadiaries

a platform for writing stories with personal accounts and messages
git clone git://parazyd.org/diasporadiaries.git
Log | Files | Refs | Submodules | README | LICENSE

commit 412325db64ae974bc748357565ce78c6c972498c
parent 205f93a0814b0aa398646849483b8ba1bca2cc6c
Author: parazyd <parazyd@dyne.org>
Date:   Mon, 21 Jan 2019 22:13:31 +0100

Move <hr> style to css.

Diffstat:
Mstatic/css/diaspora.css | 5+++++
Mtemplates/contact.html | 2+-
Mtemplates/country.html | 2+-
Mtemplates/dashboard.html | 2+-
Mtemplates/fail.html | 2+-
Mtemplates/gallery.html | 2+-
Mtemplates/index.html | 2+-
Mtemplates/messages.html | 8++++----
Mtemplates/profile.html | 6+++---
Mtemplates/success_approve.html | 2+-
Mtemplates/success_delete.html | 2+-
Mtemplates/success_edit.html | 2+-
Mtemplates/success_hide.html | 2+-
Mtemplates/success_write.html | 2+-
Mtemplates/users.html | 2+-
Mtemplates/view.html | 6+++---
16 files changed, 27 insertions(+), 22 deletions(-)

diff --git a/static/css/diaspora.css b/static/css/diaspora.css @@ -13,6 +13,11 @@ html, body { font-size: 1em; } +hr { + width: 100%; + height: 2px; +} + nav { font-family: 'Libre Baskerville', serif; font-style: italic; diff --git a/templates/contact.html b/templates/contact.html @@ -7,7 +7,7 @@ <main role="main" class="container cover"> <h1 class="cover-heading">Contact</h1> - <hr style="width: 100%; height: 2px;"> + <hr> <p class="lead">You can contact us at <a href="mailto:elena@dyne.org">elena@dyne.org</a> and <a href="mailto:parazyd@dyne.org">parazyd.dyne.org</a></p> 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;"> + <hr> {% include 'gallery.html' %} diff --git a/templates/dashboard.html b/templates/dashboard.html @@ -7,7 +7,7 @@ <main role="main" class="container cover"> <h1 class="cover-heading">Dashboard - {{ listtype }} stories</h1> - <hr style="width: 100%; height: 2px;"> + <hr> {% include 'gallery.html' %} diff --git a/templates/fail.html b/templates/fail.html @@ -7,7 +7,7 @@ <main role="main" class="container cover"> <h1 class="cover-heading">Sorry!</h1> - <hr style="width: 100%; height: 2px;"> + <hr> <p class="lead">{{ msg }}</p> diff --git a/templates/gallery.html b/templates/gallery.html @@ -53,7 +53,7 @@ {% if loop.index % 3 == 0 or loop.last %} </div> {% if not loop.last %} - <hr style="width: 100%; height: 2px"> + <hr> {% endif %} {% endif %} {% endfor %} diff --git a/templates/index.html b/templates/index.html @@ -7,7 +7,7 @@ <main role="main" class="container cover"> <h1 class="cover-heading">Diaspora Diaries</h1> - <hr style="width: 100%; height: 2px;"> + <hr> <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,7 +11,7 @@ {% else %} <h1 class="cover-heading">Messages</h1> {% endif %} - <hr style="width: 100%; height: 2px;"> + <hr> {% if not single %} <div class="table-responsive"> @@ -38,7 +38,7 @@ <form action="/sendmsg" method="POST" id="msgform"> <div class="form-group"> - <hr style="width: 100%; height: 2px;"> + <hr> <p class="lead">Reply:</p> <input type="hidden" name="Id" value="{{ them['id'] }}"> <input type="hidden" name="Us" value="{{ current_user.id }}"> @@ -52,14 +52,14 @@ {% endif %} {% for i in messages %} - <hr style="width: 100%; height: 2px;"> + <hr> <blockquote class="blockquote"> <p>{{ i['message']}}</p> <footer class="blockquote-footer">{{ i['from'] }} - {{ i['time'] }}</footer> </blockquote> {% endfor %} - <hr style="width: 100%; height: 2px;"> + <hr> <a href="/messages">&lt; back</a> {% endif %} 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;"> + <hr> <div class="album py-5 bg-light"> <div class="container"> @@ -42,7 +42,7 @@ {% if loop.index % 3 == 0 or loop.last %} </div> {% if not loop.last %} - <hr style="width: 100%; height: 2px;"> + <hr> {% endif %} {% endif %} @@ -51,7 +51,7 @@ </div> {% if current_user.is_active %} - <hr style="width: 100%; height: 2px;"> + <hr> <div class="container text-center"> <a href="/messages?from={{ uid }}" class="btn btn-outline-primary">Send PM</a> </div> diff --git a/templates/success_approve.html b/templates/success_approve.html @@ -7,7 +7,7 @@ <main role="main" class="container cover"> <h1 class="cover-heading">Story approved!</h1> - <hr style="width: 100%; height: 2px;"> + <hr> <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,7 +7,7 @@ <main role="main" class="container cover"> <h1 class="cover-heading">Story deleted!</h1> - <hr style="width: 100%; height: 2px;"> + <hr> <p class="lead">We're sorry you deleted your story.</p> diff --git a/templates/success_edit.html b/templates/success_edit.html @@ -7,7 +7,7 @@ <main role="main" class="container cover"> <h1 class="cover-heading">Story redacted!</h1> - <hr style="width: 100%; height: 2px;"> + <hr> <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,7 +7,7 @@ <main role="main" class="container cover"> <h1 class="cover-heading">Story hidden.</h1> - <hr style="width: 100%; height: 2px;"> + <hr> <p class="lead">You can return to the <a href="/dashboard?list=published">dashboard</a> now.</p> diff --git a/templates/success_write.html b/templates/success_write.html @@ -7,7 +7,7 @@ <main role="main" class="container cover"> <h1 class="cover-heading">Story submitted!</h1> - <hr style="width: 100%; height: 2px;"> + <hr> <p class="lead">Thank you for writing your story!</p> diff --git a/templates/users.html b/templates/users.html @@ -7,7 +7,7 @@ <main role="main" class="container-fluid"> <h1 class="cover-heading">Users</h1> - <hr style="width: 100%; height: 2px;"> + <hr> <div class="table-responsive"> <table class="table table-sm table-striped table-hover"> diff --git a/templates/view.html b/templates/view.html @@ -9,18 +9,18 @@ {% if story %} <h1 class="cover-heading">{{ story['name'] }} in {{ story['disembarkname'] }}</h1> - <hr style="width: 100%; height: 2px;"> + <hr> <p>by {{ story['name'] }}, {{ story['date'] }} {{ story['time'] }}</p> {% if current_user.is_admin %} <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> - <hr style="width: 100%; height: 2px;"> + <hr> {% endif %} {{ story['story']|safe }} - <hr style="width: 100%; height: 2px;"> + <hr> <a href="/country?id={{ story['disembark'] }}">&lt; back</a> {% else %}