]> git.0d.be Git - panikweb-esperanzah.git/commitdiff
add embed soundfile dialog
authorFrédéric Péters <fpeters@0d.be>
Thu, 4 Aug 2022 12:43:07 +0000 (14:43 +0200)
committerFrédéric Péters <fpeters@0d.be>
Thu, 4 Aug 2022 12:43:07 +0000 (14:43 +0200)
panikweb_esperanzah/static/css/style.scss
panikweb_esperanzah/templates/includes/audio.html

index c90962232f3e2a3fdbc9585abc095dfb7860245b..08ada9fe4d4b629d6cff384a1f7b202786b78795 100644 (file)
@@ -1443,6 +1443,7 @@ div.topikcellcontent h2 {
 div#dialog-background {
        display: flex;
 }
+
 div#dialog-embed {
        position: relative;
        background: white;
@@ -1451,16 +1452,20 @@ div#dialog-embed {
        text-align: left;
        padding: 1ex;
        color: black;
-}
+       textarea {
+               width: 100%;
+               max-width: none;
+       }
 
-div#dialog-embed textarea {
-       width: 100%;
-       max-width: none;
-}
+       #close-button {
+               position: absolute;
+               right: 1ex;
+       }
 
-div#dialog-embed #close-button {
-       position: absolute;
-       right: 1ex;
+       h2, h3 {
+               margin: 0;
+               font-size: 1.6rem;
+       }
 }
 
 body#embed {
index 4d36d011157d5fa0adbc13a234b490d47ee0e125..b98005f69ee296303f473c87fd455b9276b41835 100644 (file)
                / <a href="{{ sound|format_url:'mp3' }}" download>Télécharger</a>
                {% endif %}
 
+               {% if not embed %}
+                /
+               <a
+                       href=""
+                       data-popup-href="{% url 'soundfile-dialog-embed-view' emission_slug=sound.episode.emission.slug episode_slug=sound.episode.slug pk=sound.pk %}"
+                       >Intégrer</a>
+               {% endif %}
+
                <button class="icons icon-play-sign"
                        title="{% trans "Pause" %}"
                        data-player-audio="Audio-{{ sound.file.url|slugify }}"