Commit 445a2b55 authored by fred's avatar fred

update (partially) for new gadjo style

parent 185ca3d0
Pipeline #59 failed with stages
......@@ -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;
}
......@@ -9,23 +9,23 @@
{% if can_manage %}
<p>
<a class="big-friendly-button" href="edit/">Modifier</a>
<a class="button" href="edit/">Modifier</a>
{% if perms.emissions.add_diffusion %}
<a class="big-friendly-button" id="add-diffusion-link" href="#">Ajouter une diffusion</a>
<a class="button" id="add-diffusion-link" href="#">Ajouter une diffusion</a>
{% endif %}
<a class="big-friendly-button" id="add-soundfile-link" href="#">Ajouter un son</a>
<a class="button" id="add-soundfile-link" href="#">Ajouter un son</a>
{% if episode.effective_start and episode.effective_end %}
{% if internal_ip %}
<a class="big-friendly-button" id="download-recording" download href="{{ episode.get_pige_download_url }}">Télécharger l'enregistrement</a>
<a class="button" id="download-recording" download href="{{ episode.get_pige_download_url }}">Télécharger l'enregistrement</a>
{% endif %}
{% elif not soundfiles %}
{% if episode.effective_start %}
<a class="big-friendly-button" id="stop-recording" href="stop">Arrêter l'enregistrement</a>
<a class="button" id="stop-recording" href="stop">Arrêter l'enregistrement</a>
{% else %}
<a class="big-friendly-button" id="start-recording" href="start">Démarrer l'enregistrement</a>
<a class="button" id="start-recording" href="start">Démarrer l'enregistrement</a>
{% endif %}
{% endif %}
<a class="big-friendly-button actually-not-that-friendly" href="delete/">Supprimer</a>
<a class="button actually-not-that-friendly" href="delete/">Supprimer</a>
</p>
{% endif %}
......
......@@ -13,7 +13,7 @@
{% if perms.emissions.add_newsitem %}
<p>
<a class="big-friendly-button" href="{% url 'newsitem-add' %}">Ajouter une actu</a>
<a class="button" href="{% url 'newsitem-add' %}">Ajouter une actu</a>
</p>
{% endif %}
......
{% extends "base.html" %}
{% block bodyargs %}class="home"{% endblock %}
{% block appbar %}
{% if perms.emissions.change_emission %}
<span><a href="{% url 'emission-list' %}">Toutes les émissions</a>
......@@ -34,14 +36,14 @@
<h2>Émissions</h2>
{% for emission in emissions %}
<div class="emission">
<div class="emission block">
<h3><a href="{% url 'emission-view' slug=emission.slug %}">{{ emission.title }}</a></h3>
<a class="big-friendly-button" href="{% url 'episode-add' emission_slug=emission.slug %}">Ajouter un épisode</a>
<a class="button" href="{% url 'episode-add' emission_slug=emission.slug %}">Ajouter un épisode</a>
<a class="big-friendly-button" href="{% url 'emission-newsitem-add' emission_slug=emission.slug %}">Ajouter une actu</a>
<a class="button" href="{% url 'emission-newsitem-add' emission_slug=emission.slug %}">Ajouter une actu</a>
<a class="big-friendly-button" href="{% url 'emission-update' slug=emission.slug %}">Modifier le profil de l'émission</a>
<a class="button" href="{% url 'emission-update' slug=emission.slug %}">Modifier le profil de l'émission</a>
<div class="two-columns">
......@@ -80,10 +82,10 @@ Aucune actu.
{% for news_category in news_categories %}
<div class="newsitems">
<div class="newsitems block">
<h3>Actu : {{ news_category.title }}</h3>
<a class="big-friendly-button" href="{% url 'newsitem-add' slug=news_category.slug %}">Ajouter une actu</a>
<a class="button" href="{% url 'newsitem-add' slug=news_category.slug %}">Ajouter une actu</a>
<ul class="episode-list">
{% for newsitem in news_category.get_sorted_newsitems|slice:":10" %}
......@@ -99,7 +101,7 @@ Aucune actu.
{% endfor %}
{% if perms.emissions.add_focus %}
<div class="newsitems">
<div class="newsitems block">
<h3>Focus</h3>
<ul class="episode-list">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment