diff --git a/playlist/templates/Login.html b/playlist/templates/Login.html
index 1361f44..f59321f 100644
--- a/playlist/templates/Login.html
+++ b/playlist/templates/Login.html
@@ -4,7 +4,11 @@
{% include "head.html" %}
-
+
{% endif %}
-
{% endblock %}
diff --git a/playlist/templates/Vote.html b/playlist/templates/Vote.html
index 65e7a3c..3b2a562 100644
--- a/playlist/templates/Vote.html
+++ b/playlist/templates/Vote.html
@@ -8,22 +8,7 @@ Stemmen
{% if track %}
Welkom bij Muzak
diff --git a/playlist/templates/MediaPlayer.html b/playlist/templates/MediaPlayer.html
new file mode 100644
index 0000000..b84f109
--- /dev/null
+++ b/playlist/templates/MediaPlayer.html
@@ -0,0 +1,35 @@
+
+
+{% if track.album.image %}
+
+{% elif track.album.image_url %}
+
+{% else %}
+
+{% endif %}
+
+
+
+{% endif %}
+{{track.name}}
+{{track.artist}}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/playlist/templates/Settings.html b/playlist/templates/Settings.html
index 6edc5c6..7de9711 100644
--- a/playlist/templates/Settings.html
+++ b/playlist/templates/Settings.html
@@ -25,20 +25,7 @@
{% endfor %}
-
{% if error %}
-
{% else %}
{{ error }}
{% endif %}
-
-
- {% if track.album.image %}
-
- {% elif track.album.image_url %}
-
- {% else %}
-
- {% endif %}
-
-
-
- {% endif %}
- {{track.name}}
-{{track.artist}}
-
-
-
+ {% include 'MediaPlayer.html' with track=track %}
Je hebt niets meer om te stemmen. Lekker bezig! diff --git a/playlist/templates/head.html b/playlist/templates/head.html index 688cd43..1c8d248 100644 --- a/playlist/templates/head.html +++ b/playlist/templates/head.html @@ -45,12 +45,4 @@ localStorage.removeItem("position") } } - - - \ No newline at end of file