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
170268c2
Commit
170268c2
authored
Mar 02, 2021
by
Kevin Gutierrez
Browse files
Fix tabs
parent
d672ac13
Changes
4
Show whitespace changes
Inline
Side-by-side
wagtailvideos/static/wagtailvideos/js/video-chooser-modal.js
View file @
170268c2
var
VIDEO_CHOOSER_MODAL_ONLOAD_HANDLERS
=
{
'
chooser
'
:
function
(
modal
,
jsonData
)
{
chooser
:
function
(
modal
,
jsonData
)
{
var
searchUrl
=
$
(
'
form.video-search
'
,
modal
.
body
).
attr
(
'
action
'
);
/* currentTag stores the tag currently being filtered on, so that we can
...
...
@@ -101,8 +101,8 @@ var VIDEO_CHOOSER_MODAL_ONLOAD_HANDLERS = {
// autocomplete: {source: "{{ autocomplete_url|addslashes }}"}
// });
},
'
video_chosen
'
:
function
(
modal
,
jsonData
)
{
video_chosen
:
function
(
modal
,
jsonData
)
{
modal
.
respond
(
'
videoChosen
'
,
jsonData
[
'
result
'
]);
modal
.
close
();
}
,
}
};
wagtailvideos/templates/wagtailvideos/chooser/results.html
View file @
170268c2
...
...
@@ -19,7 +19,7 @@
<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"
alt=
"{% trans 'Video thumbnail' %}"
/>
<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"
alt=
""
/>
{% endif %}
...
...
wagtailvideos/templates/wagtailvideos/videos/results.html
View file @
170268c2
...
...
@@ -21,7 +21,7 @@
<a
class=
"image-choice"
href=
"{% url 'wagtailvideos:edit' video.id %}"
>
<div
class=
"image"
>
{% if video.thumbnail %}
<img
src=
"{{video.thumbnail.url}}"
height=
"165"
width=
"165"
class=
"show-transparency"
alt=
"{% trans 'Video thumbnail' %}"
/>
<img
src=
"{{
video.thumbnail.url
}}"
height=
"165"
width=
"165"
class=
"show-transparency"
alt=
"{% trans 'Video thumbnail' %}"
/>
{% endif %}
</div>
<h3>
{{ video.title|ellipsistrim:60 }}
</h3>
...
...
wagtailvideos/templates/wagtailvideos/widgets/video_chooser.html
View file @
170268c2
...
...
@@ -6,7 +6,7 @@
{% 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"
alt=
"{% trans 'Video thumbnail' %}"
/>
<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"
alt=
""
/>
{% endif %}
...
...
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