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 01bfa5f1c998e1d80906c2b292ac9d1b6dcd48c3
parent c48ab721fb03f8babc7771b78d60b09eac8e98a6
Author: parazyd <parazyd@dyne.org>
Date:   Mon, 21 Jan 2019 23:02:02 +0100

More html improvements.

Diffstat:
Mtemplates/footer.html | 8+++-----
Mtemplates/gallery.html | 4+++-
Mtemplates/index.html | 1+
Mtemplates/profile.html | 41+----------------------------------------
4 files changed, 8 insertions(+), 46 deletions(-)

diff --git a/templates/footer.html b/templates/footer.html @@ -1,9 +1,7 @@ - <footer> - <img src="/static/img/slatkisi.png" width="150"> - </footer> + <footer> + <img src="/static/img/slatkisi.png" width="150"> + </footer> - </div> - </main> </body> </html> diff --git a/templates/gallery.html b/templates/gallery.html @@ -39,7 +39,7 @@ </div> <p class="text-muted text-right"> - {% if i['email'] %} + {% if i['email'] and profiles %} by <a href="/profile?id={{ profiles['email'] }}">{{ i['name'] }}</a><br> {% else %} by {{ i['name'] }}<br> @@ -60,6 +60,7 @@ </div> </div> + {% if cc %} <div class="container"> <div class="countrylist-bottom"> {% if request.endpoint == 'dashboard' %} @@ -82,3 +83,4 @@ {% endfor %} </div> </div> + {% endif %} diff --git a/templates/index.html b/templates/index.html @@ -53,5 +53,6 @@ useful.</p> </div> + </main> {% include 'footer.html' %} diff --git a/templates/profile.html b/templates/profile.html @@ -9,46 +9,7 @@ <h1 class="cover-heading">Diaries by {{ name }}</h1> <hr> - <div class="album py-5 bg-light"> - <div class="container"> - - {% for i in stories %} - {% if loop.index % 3 == 1 %} - <div class="row"> - {% endif %} - - <div class="col-md-4"> - <div class="card-body"> - <p class="card-text"> - {{ i['abstract'] }} - </p> - - <div class="d-flex justify-content-between align-items-center"> - <div class="btn-group"> - <a href="/view?id={{ i['id'] }}" class="btn btn-sm btn-outline-secondary">Read</a> - </div> - - <img style="height: 1em;" src="/static/img/flags/{{ i['embark'] }}.png" alt="{{ i['embarkname'] }}" title="{{ i['embarkname' ]}}"><span class="fa fa-anchor"></span><img style="height: 1em;" src="/static/img/flags/{{ i['disembark'] }}.png" alt="{{ i['disembarkname'] }}" title="{{ i['disembarkname'] }}"> - - <small class="text-muted"> - {{ i['name'] }}<br> - {{ i['date'] }}<br> - {{ i['time'] }} - </small> - </div> - </div> - </div> - - {% if loop.index % 3 == 0 or loop.last %} - </div> - {% if not loop.last %} - <hr> - {% endif %} - {% endif %} - - {% endfor %} - </div> - </div> +{% include 'gallery.html' %} {% if current_user.is_active %} <hr>