Browse Source

a bit of css wrangling

pull/12/head
crunk 4 months ago
parent
commit
475a412354
  1. 9
      verse/describer/templates/describe_files/describe.html
  2. 2
      verse/static/css/style.css

9
verse/describer/templates/describe_files/describe.html

@ -26,15 +26,16 @@
</a> </a>
</div> </div>
</div> </div>
<div id="mainworkflow">
<div class="distribusi_files"> <div class="distribusi_files">
{% for id, describe_form in distribusi_file_forms.items() %} {% for id, describe_form in distribusi_file_forms.items() %}
<div class="distribusi_file"> <div class="distribusi_file">
{% if describe_form.type == "image" %} {% if describe_form.type == "image" %}
<img src="{{describe_form.file_path}}" alt="" /> <img src="{{describe_form.file_path}}" alt="" data-src="{{describe_form.file_path}}" loading="lazy"/>
{% elif describe_form.type == "video" %} {% elif describe_form.type == "video" %}
<video src="{{describe_form.file_path}}" preload="auto" alt="" controls></video> <video src="{{describe_form.file_path}}" preload="auto" alt="" controls loading="lazy"></video>
{% elif describe_form.type == "audio" %} {% elif describe_form.type == "audio" %}
<audio src="{{describe_form.file_path}}" preload="auto" alt="" controls></audio> <audio src="{{describe_form.file_path}}" preload="auto" alt="" controls loading="lazy"> </audio>
{% else %} {% else %}
<a href="{{describe_form.file_path}}">file: {{describe_form.file_path}}</a> <a href="{{describe_form.file_path}}">file: {{describe_form.file_path}}</a>
{% endif %} {% endif %}
@ -69,5 +70,5 @@
</div> </div>
{% endfor%} {% endfor%}
</div> </div>
</div>
{% endblock %} {% endblock %}

2
verse/static/css/style.css

@ -177,8 +177,6 @@ a:active {
.distribusi_file { .distribusi_file {
margin-top: 1em; margin-top: 1em;
padding: 0.5em; padding: 0.5em;
padding-left: auto;
padding-right: auto;
width: 45em; width: 45em;
background-color:#fdfdfd; background-color:#fdfdfd;
text-decoration: none; text-decoration: none;

Loading…
Cancel
Save