diff --git a/bartenders/templates/board.html b/bartenders/templates/board.html index 2725fc8..c037b1f 100644 --- a/bartenders/templates/board.html +++ b/bartenders/templates/board.html @@ -38,7 +38,7 @@
{% translate "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..118f34c --- /dev/null +++ b/gallery/templates/admin/gallery/change_form.html @@ -0,0 +1,12 @@ +{% extends "admin/change_form.html" %} +{% load jfutags %} +{% load i18n %} +{% block content %} +{{ block.super }} +{% translate "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..ba11357 --- /dev/null +++ b/gallery/templates/admin/gallery/upload_form.html @@ -0,0 +1,55 @@ +{% extends 'jfu/upload_form.html' %} +{% load i18n %} +{% block CSS_BOOTSTRAP %} + +{% endblock %} +{% block CSS_EXTRA %} + +{% 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..94509a4 --- /dev/null +++ b/gallery/templates/album.html @@ -0,0 +1,89 @@ +{% extends 'base.html' %} +{% load i18n %} + +{% load bootstrap5 bootstrap_icons %} + +{% block title %}{{ album.year }} / {{ album.title }}{% endblock title %} + +{% block canonical_url %}{% url 'album' year=album.year album_slug=album.slug %}{% endblock canonical_url %} + +{% block content %} + +{% if edit_visibility_link %} +{% translate "Udvælg billeder" %}
++{{ visible_count }} +{% blocktranslate count visible_count=visible_count %} +synlig +{% plural %} +synlige +{% endblocktranslate %} +{% translate "og" %} +{{ hidden_count }} +{% blocktranslate count hidden_count=hidden_count %} +skjult +{% plural %} +skjulte +{% endblocktranslate %} +{% translate "hvoraf" %} +{{ new_count }} +{% blocktranslate count new_count=new_count %} +er ny +{% plural %} +er nye +{% endblocktranslate %}. +
+ +{% endif %} ++ {{ files|length }} + {% blocktranslate count c=files|length %} + billede + {% plural %} + billeder + {% endblocktranslate %} + {% if album.publish_date %} {% translate "fra d." %} {{ album.publish_date }}{% endif %} +
+{% translate "Albummet" %} '{{ album.title }}' {% translate "har ingen billeder endnu." %}
++ {% translate "Ingen albums med billeder fundet." %} +
+