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
d672ac13
Commit
d672ac13
authored
Mar 02, 2021
by
Kevin Gutierrez
Browse files
Use spaces
parent
4e3eb54b
Changes
6
Hide whitespace changes
Inline
Side-by-side
wagtailvideos/static/wagtailvideos/css/edit-video.css
View file @
d672ac13
.transcode-error
{
.transcode-error
{
color
:
red
;
color
:
red
;
}
}
.processing
{
.processing
{
opacity
:
0.8
;
opacity
:
0.8
;
font-weight
:
bold
;
font-weight
:
bold
;
}
}
wagtailvideos/static/wagtailvideos/js/add-multiple.js
View file @
d672ac13
...
@@ -39,7 +39,11 @@ $(function() {
...
@@ -39,7 +39,11 @@ $(function() {
});
});
}).
done
(
function
()
{
}).
done
(
function
()
{
data
.
context
.
find
(
'
.start
'
).
prop
(
'
disabled
'
,
false
);
data
.
context
.
find
(
'
.start
'
).
prop
(
'
disabled
'
,
false
);
if
(
that
.
_trigger
(
'
added
'
,
e
,
data
)
!==
false
&&
(
options
.
autoUpload
||
data
.
autoUpload
)
&&
data
.
autoUpload
!==
false
)
{
if
(
that
.
_trigger
(
'
added
'
,
e
,
data
)
!==
false
&&
(
options
.
autoUpload
||
data
.
autoUpload
)
&&
data
.
autoUpload
!==
false
)
{
data
.
submit
();
data
.
submit
();
}
}
}).
fail
(
function
()
{
}).
fail
(
function
()
{
...
@@ -64,7 +68,7 @@ $(function() {
...
@@ -64,7 +68,7 @@ $(function() {
return
false
;
return
false
;
}
}
var
progress
=
Math
.
floor
(
(
data
.
loaded
/
data
.
total
)
*
100
);
var
progress
=
Math
.
floor
(
data
.
loaded
/
data
.
total
*
100
);
data
.
context
.
each
(
function
()
{
data
.
context
.
each
(
function
()
{
$
(
this
)
$
(
this
)
.
find
(
'
.progress
'
)
.
find
(
'
.progress
'
)
...
@@ -77,7 +81,7 @@ $(function() {
...
@@ -77,7 +81,7 @@ $(function() {
},
},
progressall
:
function
(
e
,
data
)
{
progressall
:
function
(
e
,
data
)
{
var
progress
=
parseInt
(
(
data
.
loaded
/
data
.
total
)
*
100
,
10
);
var
progress
=
parseInt
(
data
.
loaded
/
data
.
total
*
100
,
10
);
$
(
'
#overall-progress
'
)
$
(
'
#overall-progress
'
)
.
addClass
(
'
active
'
)
.
addClass
(
'
active
'
)
.
attr
(
'
aria-valuenow
'
,
progress
)
.
attr
(
'
aria-valuenow
'
,
progress
)
...
...
wagtailvideos/templates/wagtailvideos/homepage/videos_summary.html
View file @
d672ac13
...
@@ -8,4 +8,4 @@
...
@@ -8,4 +8,4 @@
<span>
{{ total }}
</span>
Videos
<span
class=
"visuallyhidden"
>
created in {{ site_name }}
</span>
<span>
{{ total }}
</span>
Videos
<span
class=
"visuallyhidden"
>
created in {{ site_name }}
</span>
{% endblocktrans %}
{% endblocktrans %}
</a>
</a>
</li>
</li>
\ No newline at end of file
wagtailvideos/templates/wagtailvideos/multiple/add.html
View file @
d672ac13
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
{% block titletag %}{% trans "Add multiple videos" %}{% endblock %}
{% block titletag %}{% trans "Add multiple videos" %}{% endblock %}
{% block extra_css %}
{% block extra_css %}
{{ block.super }}
{{ block.super }}
<!-- it's cheating but we're just going to use wagtailimages css since they should look identical anyways -->
<!-- it's cheating but we're just going to use wagtailimages css since they should look identical anyways -->
<link
rel=
"stylesheet"
href=
"{% static 'wagtailimages/css/add-multiple.css' %}"
type=
"text/css"
/>
<link
rel=
"stylesheet"
href=
"{% static 'wagtailimages/css/add-multiple.css' %}"
type=
"text/css"
/>
{% endblock %}
{% endblock %}
...
...
wagtailvideos/templates/wagtailvideos/multiple/edit_form.html
View file @
d672ac13
...
@@ -17,11 +17,10 @@
...
@@ -17,11 +17,10 @@
</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 }}"
alt=
"{% trans 'Video thumbnail' %}"
/>
<img
src=
"{{ video.thumbnail.url }}"
alt=
"{% trans 'Video thumbnail' %}"
/>
{% endif %}
{% endif %}
</div>
</div>
<script>
<script>
var
thumb
=
$
(
"
[data-video-thumb=
\"
"
+
{{
video
.
id
}}
+
"
\"
]
"
);
var
thumb
=
$
(
"
[data-video-thumb=
\"
"
+
{{
video
.
id
}}
+
"
\"
]
"
);
$
(
"
[data-thumb-target=
\"
"
+
{{
video
.
id
}}
+
"
\"
]
"
).
append
(
thumb
);
$
(
"
[data-thumb-target=
\"
"
+
{{
video
.
id
}}
+
"
\"
]
"
).
append
(
thumb
);
</script>
</script>
wagtailvideos/templates/wagtailvideos/videos/results.html
View file @
d672ac13
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<a
class=
"image-choice"
href=
"{% url 'wagtailvideos:edit' video.id %}"
>
<a
class=
"image-choice"
href=
"{% url 'wagtailvideos:edit' video.id %}"
>
<div
class=
"image"
>
<div
class=
"image"
>
{% if video.thumbnail %}
{% 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 %}
{% endif %}
</div>
</div>
<h3>
{{ video.title|ellipsistrim:60 }}
</h3>
<h3>
{{ video.title|ellipsistrim:60 }}
</h3>
...
...
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