From 445a2b55523f447eb9e4d9bce70fabfaa859b86b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 27 Jan 2019 15:14:32 +0100 Subject: [PATCH] update (partially) for new gadjo style --- panikdb/static/css/style.css | 24 ++++++++++++++++++- .../templates/emissions/episode_detail.html | 14 +++++------ .../emissions/newscategory_list.html | 2 +- panikdb/templates/home.html | 16 +++++++------ 4 files changed, 40 insertions(+), 16 deletions(-) diff --git a/panikdb/static/css/style.css b/panikdb/static/css/style.css index d0668c8..d4764e5 100644 --- a/panikdb/static/css/style.css +++ b/panikdb/static/css/style.css @@ -17,6 +17,7 @@ div#top { div#top a { padding: 0 1ex; + color: white; } div#main-content { @@ -226,9 +227,11 @@ a.big-friendly-button:hover { } a.actually-not-that-friendly { - background: #F52F2D; + border-color: #F52F2D; + color: #F52F2D; position: absolute; right: -10px; + padding: 0 1ex; } a.actually-not-that-friendly:hover { @@ -592,3 +595,22 @@ form#track-search p { form#track-search button { margin-top: 2.5ex; } + +#more-user-links a { + background: white; + border: 1px solid #386ede; + padding: 1ex; + border-radius: 3px; + font-weight: bold; +} + +.home .block { + background: white; + padding: 1rem; + margin-bottom: 1rem; + border-radius: 3px; +} + +.home .block hr { + border-color: white; +} diff --git a/panikdb/templates/emissions/episode_detail.html b/panikdb/templates/emissions/episode_detail.html index ca952c3..fe3ff7a 100644 --- a/panikdb/templates/emissions/episode_detail.html +++ b/panikdb/templates/emissions/episode_detail.html @@ -9,23 +9,23 @@ {% if can_manage %}

-Modifier +Modifier {% if perms.emissions.add_diffusion %} -Ajouter une diffusion +Ajouter une diffusion {% endif %} -Ajouter un son +Ajouter un son {% if episode.effective_start and episode.effective_end %} {% if internal_ip %} - Télécharger l'enregistrement + Télécharger l'enregistrement {% endif %} {% elif not soundfiles %} {% if episode.effective_start %} - Arrêter l'enregistrement + Arrêter l'enregistrement {% else %} - Démarrer l'enregistrement + Démarrer l'enregistrement {% endif %} {% endif %} -Supprimer +Supprimer

{% endif %} diff --git a/panikdb/templates/emissions/newscategory_list.html b/panikdb/templates/emissions/newscategory_list.html index bbf5f9c..a06b507 100644 --- a/panikdb/templates/emissions/newscategory_list.html +++ b/panikdb/templates/emissions/newscategory_list.html @@ -13,7 +13,7 @@ {% if perms.emissions.add_newsitem %}

-Ajouter une actu +Ajouter une actu

{% endif %} diff --git a/panikdb/templates/home.html b/panikdb/templates/home.html index eb4545b..be36ff5 100644 --- a/panikdb/templates/home.html +++ b/panikdb/templates/home.html @@ -1,5 +1,7 @@ {% extends "base.html" %} +{% block bodyargs %}class="home"{% endblock %} + {% block appbar %} {% if perms.emissions.change_emission %} Toutes les émissions @@ -34,14 +36,14 @@

Émissions

{% for emission in emissions %} -
+

{{ emission.title }}

-Ajouter un épisode +Ajouter un épisode -Ajouter une actu +Ajouter une actu -Modifier le profil de l'émission +Modifier le profil de l'émission
@@ -80,10 +82,10 @@ Aucune actu. {% for news_category in news_categories %} -
+

Actu : {{ news_category.title }}

-Ajouter une actu +Ajouter une actu
    {% for newsitem in news_category.get_sorted_newsitems|slice:":10" %} @@ -99,7 +101,7 @@ Aucune actu. {% endfor %} {% if perms.emissions.add_focus %} -
    +

    Focus

      -- GitLab