From a0a106529536b94dd4a865f0a0e875940d805b14 Mon Sep 17 00:00:00 2001 From: Dietrich Date: Tue, 9 Feb 2021 14:19:48 +0100 Subject: [PATCH] Make the links and users list scrollable closes #6 --- templates/admin.html | 6 ++-- templates/edit_link.html | 46 +++++++++++++------------- templates/edit_profile.html | 36 +++++++++++---------- templates/index.html | 64 +++++++++++++++++++------------------ templates/index_users.html | 60 +++++++++++++++++----------------- templates/signup.html | 34 ++++++++++---------- templates/submission.html | 32 ++++++++++--------- templates/view_link.html | 62 ++++++++++++++++++----------------- templates/view_profile.html | 36 +++++++++++---------- 9 files changed, 195 insertions(+), 181 deletions(-) diff --git a/templates/admin.html b/templates/admin.html index 1cdf997..b0b0464 100644 --- a/templates/admin.html +++ b/templates/admin.html @@ -21,9 +21,7 @@ -
- {% block admin %} - {% endblock %} -
+ {% block admin %} + {% endblock %} {% endblock %} \ No newline at end of file diff --git a/templates/edit_link.html b/templates/edit_link.html index ea9b19f..b2f95b2 100644 --- a/templates/edit_link.html +++ b/templates/edit_link.html @@ -1,26 +1,28 @@ {% extends "admin.html" %} {% block admin %} -

Link Editieren: {{ link.title }}

-
-
- - -
-
- - -
-
- - -
-
-

Achtung!

-

Werden schon veröffentlichte Links gelöscht oder editiert sind die Links z.B. aus einem Buch - nicht mehr gültig! UNBEDINGT VERMEIDEN!

- - Delete -
-
+
+

Link Editieren: {{ link.title }}

+
+
+ + +
+
+ + +
+
+ + +
+
+

Achtung!

+

Werden schon veröffentlichte Links gelöscht oder editiert sind die Links z.B. aus einem Buch + nicht mehr gültig! UNBEDINGT VERMEIDEN!

+ + Delete +
+
+
{% endblock %} \ No newline at end of file diff --git a/templates/edit_profile.html b/templates/edit_profile.html index 99ed0a8..60e5861 100644 --- a/templates/edit_profile.html +++ b/templates/edit_profile.html @@ -1,21 +1,23 @@ {% extends "admin.html" %} {% block admin %} -

Profil von {{user.username}}

-
-
- - -
-
- - -
-
- - -
- -
-

 

+
+

Profil von {{user.username}}

+
+
+ + +
+
+ + +
+
+ + +
+ +
+

 

+
{% endblock %} \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 85a4f32..58ba119 100644 --- a/templates/index.html +++ b/templates/index.html @@ -6,37 +6,39 @@ {% endblock %} {% block admin %} - +
+
- - - - - - {% for links_user in links_per_users %} - {% set l = links_user[0] %} - {% set u = links_user[1] %} - - - - + + + + + {% for links_user in links_per_users %} + {% set l = links_user[0] %} + {% set u = links_user[1] %} + + + + - - {% endfor %} -
- Kürzel - - Ziellink - - Benutzername -
- {{l.code}} - - - {{ l.target }} - - +
+ Kürzel + + Ziellink + + Benutzername +
+ {{l.code}} + + + {{ l.target }} + + - {{ u.username }} - -
+ {{ u.username }} + + + + {% endfor %} + + {% endblock %} \ No newline at end of file diff --git a/templates/index_users.html b/templates/index_users.html index bbf454e..ddcf4ed 100644 --- a/templates/index_users.html +++ b/templates/index_users.html @@ -6,35 +6,37 @@ {% endblock %} {% block admin %} - +
+
- - - - - - {% for user in users %} - - - - + + + + + {% for user in users %} + + + + - - {% endfor %} -
- Kürzel - - Ziellink - - Benutzername -
- {{user.id}} - - - {{ user.email }} - - +
+ Kürzel + + Ziellink + + Benutzername +
+ {{user.id}} + + + {{ user.email }} + + - {{ user.username }} - -
+ {{ user.username }} + + + + {% endfor %} + + {% endblock %} \ No newline at end of file diff --git a/templates/signup.html b/templates/signup.html index 09bcfb3..e41beb1 100644 --- a/templates/signup.html +++ b/templates/signup.html @@ -1,20 +1,22 @@ {% extends "admin.html" %} {% block admin %} -
-
- - -
-
- - -
-
- - -
- -
-

 

+
+
+
+ + +
+
+ + +
+
+ + +
+ +
+

 

+
{% endblock %} \ No newline at end of file diff --git a/templates/submission.html b/templates/submission.html index be13268..aeda5f8 100644 --- a/templates/submission.html +++ b/templates/submission.html @@ -1,19 +1,21 @@ {% extends "admin.html" %} {% block admin %} -
-
- - -
-
- - -
-
- - -
- -
+
+
+
+ + +
+
+ + +
+
+ + +
+ +
+
{% endblock %} \ No newline at end of file diff --git a/templates/view_link.html b/templates/view_link.html index b198ba5..69d83a7 100644 --- a/templates/view_link.html +++ b/templates/view_link.html @@ -1,35 +1,37 @@ {% extends "admin.html" %} {% block admin %} -

{{ link.title }}

- - - - - - - - - - - - - - - - - - - - - -
Beschreibung:{{ link.title }}
Code:{{ link.code }}
Kurzlink:https://fhs.li/{{ link.code }}
Ziel:{{ link.target }}
QR-Code - {{ qr | trim_start_matches(pat= - '.*?>') - | safe }} - -
-
- Editieren +
+

{{ link.title }}

+ + + + + + + + + + + + + + + + + + + + + +
Beschreibung:{{ link.title }}
Code:{{ link.code }}
Kurzlink:https://fhs.li/{{ link.code }}
Ziel:{{ link.target }}
QR-Code + {{ qr | trim_start_matches(pat= + '.*?>') + | safe }} + +
+
+ Editieren +
{% endblock %} \ No newline at end of file diff --git a/templates/view_profile.html b/templates/view_profile.html index 4613f1b..3b219db 100644 --- a/templates/view_profile.html +++ b/templates/view_profile.html @@ -1,23 +1,25 @@ {% extends "admin.html" %} {% block admin %} -

Profil von {{user.username}}

-
-
- - +
+

Profil von {{user.username}}

+ +
+ + +
+
+ + +
+
+ + +
+ + -
- - -
-
- - -
- -
- Editieren +

 

-

 

{% endblock %} \ No newline at end of file