Commit 95604afd authored by Kevin Gutierrez's avatar Kevin Gutierrez
Browse files

Format some html files

parent a05a47fb
...@@ -19,9 +19,9 @@ ...@@ -19,9 +19,9 @@
<a class="image-choice" href="{% if will_select_format %}{% url 'wagtailvideos:chooser_select_format' video.id %}{% else %}{% url 'wagtailvideos:video_chosen' video.id %}{% endif %}"> <a class="image-choice" href="{% if will_select_format %}{% url 'wagtailvideos:chooser_select_format' video.id %}{% else %}{% url 'wagtailvideos:video_chosen' video.id %}{% endif %}">
<div class="image"> <div class="image">
{% if video.thumbnail %} {% if video.thumbnail %}
<img src='{{video.thumbnail.url}}' width="165" height="165" class="show-transparency"> <img src="{{video.thumbnail.url}}" width="165" height="165" class="show-transparency" alt="{% trans 'Video thumbnail' %}"/>
{% else %} {% else %}
<img width="165" height="165" class="show-transparency"> <img width="165" height="165" class="show-transparency" alt=""/>
{% endif %} {% endif %}
</div> </div>
<h3>{{ video.title|ellipsistrim:60 }}</h3> <h3>{{ video.title|ellipsistrim:60 }}</h3>
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<div class="nice-padding"> <div class="nice-padding">
<div class="drop-zone"> <div class="drop-zone">
<p>{% trans "Drag and drop videos into this area to upload immediately." %}</p> <p>{% trans "Drag and drop videos into this area to upload immediately." %}</p>
<p>{{ help_text }} <p>{{ help_text }}</p>
<form action="{% url 'wagtailvideos:add_multiple' %}" method="POST" enctype="multipart/form-data"> <form action="{% url 'wagtailvideos:add_multiple' %}" method="POST" enctype="multipart/form-data">
<div class="replace-file-input"> <div class="replace-file-input">
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
max_file_size: "{{ error_max_file_size }}", max_file_size: "{{ error_max_file_size }}",
accepted_file_types: "{{ error_accepted_file_types }}" accepted_file_types: "{{ error_accepted_file_types }}"
} }
} };
window.tagit_opts = { window.tagit_opts = {
autocomplete: {source: "{{ autocomplete_url|addslashes }}"} autocomplete: {source: "{{ autocomplete_url|addslashes }}"}
}; };
......
...@@ -10,14 +10,14 @@ ...@@ -10,14 +10,14 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
<li> <li>
<input class='button' type="submit" value="{% trans 'Update' %}" /> <input class="button" type="submit" value="{% trans 'Update' %}" />
<a href="{% url 'wagtailvideos:delete_multiple' video.id %}" class="delete button button-secondary no">{% trans "Delete" %}</a> <a href="{% url 'wagtailvideos:delete_multiple' video.id %}" class="delete button button-secondary no">{% trans "Delete" %}</a>
</li> </li>
</ul> </ul>
</form> </form>
<div data-video-thumb="{{ video.id }}" class='thumb icon icon-media hasthumb'> <div data-video-thumb="{{ video.id }}" class="thumb icon icon-media hasthumb">
{% if video.thumbnail %} {% if video.thumbnail %}
<img src="{{ video.thumbnail.url }}" /> <img src="{{ video.thumbnail.url }}" alt="{% trans 'Video thumbnail' %}" />
{% endif %} {% endif %}
</div> </div>
<script> <script>
......
{% extends "wagtailadmin/widgets/chooser.html" %} {% extends "wagtailadmin/widgets/chooser.html" %}
{% load i18n %}
{% block chooser_class %}image-chooser{% endblock %} {% block chooser_class %}image-chooser{% endblock %}
{% block chosen_state_view %} {% block chosen_state_view %}
<div class="preview-image"> <div class="preview-image">
{% if video and video.thumbnail %} {% if video and video.thumbnail %}
<img src="{{video.thumbnail.url}}" width="165" height="165" class="show-transparency"> <img src="{{video.thumbnail.url}}" width="165" height="165" class="show-transparency" alt="{% trans 'Video thumbnail' %}"/>
{% else %} {% else %}
<img width="165" height="165" class="show-transparency"> <img width="165" height="165" class="show-transparency" alt=""/>
{% endif %} {% endif %}
</div> </div>
{% endblock %} {% endblock %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment