~hristoast/mousikofidi

923adf9ce58406dbbe2486cdc3cb2482f939424c — Hristos N. Triantafillou 9 months ago caf1319
DRY up code and prevent a dupe link
1 files changed, 7 insertions(+), 10 deletions(-)

M mousikofidi/templates/playlist.html
M mousikofidi/templates/playlist.html => mousikofidi/templates/playlist.html +7 -10
@@ 1,19 1,15 @@
{% extends 'base.html' %}
{% block content %}

  {% if not audio_list and not video_list %}
    {% if page_name == "Queue" %}
      {% if playlists %}
        <h2 class="center"><a href="{{ url_for('.playlists') }}">{% if icons %}<i class="fas fa-list"></i> {% endif %}View All Playlists</a></h2>
      {% else %}
        <p class="bold center">There are no playlists.  You can create one by browsing and adding tracks with the "+" button.</p>
      {% endif %}
    {% endif %}
  {% endif %}

  {% if page_name == "Queue" %}

    {% if playlists %}
      <h2 class="center"><a href="{{ url_for('.playlists') }}">{% if icons %}<i class="fas fa-list"></i> {% endif %}View All Playlists</a></h2>
    {% else %}
      <p class="bold center">There are no playlists.  You can create one by browsing and adding tracks with the "+" button.</p>
    {% endif %}

    {% if playlists %}
      <form action="{{ url_for('.playlistctl', cmd='load', path='load') }}" class="center" id="playlistctl" method="post">
        {% if playlist_save %}
          <input class="center" id="delete" name="delete" title="Delete the selected playlist file." value="Delete Playlist" type="submit" />


@@ 26,6 22,7 @@
        </select>
      </form>
    {% endif %}

  {% endif %}

  {% if audio_list or video_list %}