summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/ishtar/blocks
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2023-01-30 12:26:32 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2023-01-30 12:26:32 +0100
commit400e66d6b554d6b87e025f84d15742df15ecd644 (patch)
treeecbbc58eba6627abf98a91fe8f459c392bfadcd6 /ishtar_common/templates/ishtar/blocks
parentdc1d0da3544d2ec9adb4c792c357fe06eaf752a7 (diff)
downloadIshtar-400e66d6b554d6b87e025f84d15742df15ecd644.tar.bz2
Ishtar-400e66d6b554d6b87e025f84d15742df15ecd644.zip
Sheet document: better UI for files
Diffstat (limited to 'ishtar_common/templates/ishtar/blocks')
-rw-r--r--ishtar_common/templates/ishtar/blocks/window_field_flex_file.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/window_field_flex_file.html b/ishtar_common/templates/ishtar/blocks/window_field_flex_file.html
new file mode 100644
index 000000000..0a79176d6
--- /dev/null
+++ b/ishtar_common/templates/ishtar/blocks/window_field_flex_file.html
@@ -0,0 +1,10 @@
+{% load i18n %}{% if link %}
+<dl class="col-12 col-md-6 col-lg-3 flex-wrap">
+ <dt>{% trans caption %}</dt>
+ <dd>
+ <a href="{{link|safe}}" class="btn btn-secondary" target="_blank">
+ {% if link_name %}{{link_name}}{% else %}{{link}}{% endif %}
+ </a>
+ </dd>
+</dl>
+{% endif%}