Skip to content

Commit

Permalink
Merge pull request #1482 from ushahidi/video-label
Browse files Browse the repository at this point in the history
Video label
  • Loading branch information
Angamanga authored Apr 3, 2020
2 parents a62c56d + 9513dbe commit f83e981
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
5 changes: 1 addition & 4 deletions app/common/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -844,10 +844,7 @@
"error_in_upload": "Your image is too large (maximum size is 1MB) or has the wrong format (allowed formats are gif, png, jpg and jpeg), please check and try again!"
},
"video" : {
"enter_a" : "Enter a",
"or" : " or ",
"vimeo" : " Vimeo",
"video_url" : " video URL"
"enter_a_url": "Enter a video URL from Youtube or Vimeo."
},
"unstructured" : {
"add_survey" : {
Expand Down
8 changes: 1 addition & 7 deletions app/main/posts/modify/video.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@
<form>
<div class="form-field video_embed">
<label>{{label}}</label>
<p>
<span translate="post.video.enter_a">Enter a</span>

<img src="/img/youtube.png" class="wordmark-replace">
<span translate="post.video.or"> or </span>
<img src="/img/vimeo.png" class="wordmark-replace">
<span translate="post.video.video_url"> video URL</span>
<p translate="post.video.enter_a_url">Enter a video URL from Youtube or Vimeo.
</p>
<input type="text" ng-model="videoUrl" ng-blur="constructIframe(videoUrl)" placeholder="https://youtu.be/123456">

Expand Down
5 changes: 4 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ module.exports = {
{
test: /\.png/,
use: {
loader: 'url-loader?limit=10000'
loader: 'url-loader?limit=10000',
options: {
esModule:false
}
}
},
{
Expand Down

0 comments on commit f83e981

Please sign in to comment.