Du kan tilføje billeder efter du har trykket på "Gem og forsæt med at redigere".
+{% endblock %} diff --git a/gallery/templates/admin/gallery/change_form.html b/gallery/templates/admin/gallery/change_form.html new file mode 100644 index 0000000..4f8aae1 --- /dev/null +++ b/gallery/templates/admin/gallery/change_form.html @@ -0,0 +1,11 @@ +{% extends "admin/change_form.html" %} +{% load jfutags %} +{% block content %} +{{ block.super }} +Du kan tilføje billeder efter du har trykket på "Gem og forsæt med at redigere".
+{% endif %} +{% endblock %} diff --git a/gallery/templates/admin/gallery/upload_form.html b/gallery/templates/admin/gallery/upload_form.html new file mode 100644 index 0000000..5271ed0 --- /dev/null +++ b/gallery/templates/admin/gallery/upload_form.html @@ -0,0 +1,45 @@ +{% extends 'jfu/upload_form.html' %} + +{% block CSS_BOOTSTRAP %} + +{% endblock %} + +{% block UPLOAD_FORM_BUTTON_BAR_CONTROL %} + +{% endblock %} + +{% block JS_INIT %} + + $('#fileupload').fileupload({ + + formData: [ + { name: "csrfmiddlewaretoken", value: "{{ csrf_token }}" }, + { name: "object_id", value: "{{ object_id }}" }, + ], + + {% block JS_OPTS %} + autoUpload: true, + {% endblock %} + + }); +{% endblock JS_INIT %} + + +{% comment %} + Remove all blueimp gallery related stuf. +{% endcomment %} + +{% block CSS_BLUEIMP_GALLERY %} +{% endblock %} + +{% block MODAL_GALLERY %} +{% endblock %} + +{% block JS_BLUEIMP_GALLERY %} +{% endblock %} diff --git a/gallery/templates/album.html b/gallery/templates/album.html new file mode 100644 index 0000000..6cb65de --- /dev/null +++ b/gallery/templates/album.html @@ -0,0 +1,52 @@ +{% extends 'base.html' %} + +{% block title %}{{ album.gfyear }} / {{ album.title }}{% endblock title %} + +{% block canonical_url %}{% url 'album' gfyear=album.gfyear album_slug=album.slug %}{% endblock canonical_url %} + +{% block content %} + +{% if edit_visibility_link %} + +{{ visible_count }} synlig{{ visible_count|pluralize:'e' }} +og {{ hidden_count }} skjult{{ hidden_count|pluralize:'e' }} +hvoraf {{ new_count }} er ny{{ new_count|pluralize:'e' }}. +
+ +{% endif %} ++ {{ files|length }} billede{{ files|length|pluralize:"r" }}{% if album.publish_date %} fra d. {{ album.publish_date }}{% endif %} +
+Albummet '{{ album.title }}' har ingen billeder endnu.
+ {% translate "Ingen albums med billeder fundet." %} +
+