Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Websites UFRPE
Wagtail Videos
Commits
95604afd
Commit
95604afd
authored
Mar 02, 2021
by
Kevin Gutierrez
Browse files
Format some html files
parent
a05a47fb
Changes
5
Hide whitespace changes
Inline
Side-by-side
wagtailvideos/static/wagtailvideos/css/summary-override.css
View file @
95604afd
...
...
@@ -14,5 +14,5 @@ section.summary > .stats > li {
@media
only
screen
and
(
max-width
:
50em
)
{
section
.summary
>
.stats
{
grid-template-columns
:
repeat
(
2
,
1
fr
);
}
}
\ No newline at end of file
}
}
wagtailvideos/templates/wagtailvideos/chooser/results.html
View file @
95604afd
...
...
@@ -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 %}"
>
<div
class=
"image"
>
{% 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 %}
<img
width=
"165"
height=
"165"
class=
"show-transparency"
>
<img
width=
"165"
height=
"165"
class=
"show-transparency"
alt=
""
/
>
{% endif %}
</div>
<h3>
{{ video.title|ellipsistrim:60 }}
</h3>
...
...
wagtailvideos/templates/wagtailvideos/multiple/add.html
View file @
95604afd
...
...
@@ -14,7 +14,7 @@
<div
class=
"nice-padding"
>
<div
class=
"drop-zone"
>
<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"
>
<div
class=
"replace-file-input"
>
...
...
@@ -84,7 +84,7 @@
max_file_size
:
"
{{ error_max_file_size }}
"
,
accepted_file_types
:
"
{{ error_accepted_file_types }}
"
}
}
}
;
window
.
tagit_opts
=
{
autocomplete
:
{
source
:
"
{{ autocomplete_url|addslashes }}
"
}
};
...
...
wagtailvideos/templates/wagtailvideos/multiple/edit_form.html
View file @
95604afd
...
...
@@ -10,14 +10,14 @@
{% endif %}
{% endfor %}
<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>
</li>
</ul>
</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 %}
<img
src=
"{{ video.thumbnail.url }}"
/>
<img
src=
"{{ video.thumbnail.url }}"
alt=
"{% trans 'Video thumbnail' %}"
/>
{% endif %}
</div>
<script>
...
...
wagtailvideos/templates/wagtailvideos/widgets/video_chooser.html
View file @
95604afd
{% extends "wagtailadmin/widgets/chooser.html" %}
{% load i18n %}
{% block chooser_class %}image-chooser{% endblock %}
{% block chosen_state_view %}
<div
class=
"preview-image"
>
{% 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 %}
<img
width=
"165"
height=
"165"
class=
"show-transparency"
>
<img
width=
"165"
height=
"165"
class=
"show-transparency"
alt=
""
/
>
{% endif %}
</div>
{% endblock %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment