From c54aa3f903a001890f91acb07b796f35b2294025 Mon Sep 17 00:00:00 2001 From: Adabriand Furtado Date: Sat, 10 Sep 2016 18:51:09 -0300 Subject: [PATCH] Fix goals labels --- assets/css/base.css | 1 + assets/js/signs/video-fix.directive.js | 7 ++++--- assets/templates/sections.html | 10 +++++----- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/assets/css/base.css b/assets/css/base.css index 1d01fc6..0fcb54c 100644 --- a/assets/css/base.css +++ b/assets/css/base.css @@ -391,6 +391,7 @@ img { /* Signs and Ranking Section */ #wl-signs-and-ranking { + position: relative; z-index: 1; background: #ffffff; height: 100vh; diff --git a/assets/js/signs/video-fix.directive.js b/assets/js/signs/video-fix.directive.js index 0217fd0..f2b0dbd 100644 --- a/assets/js/signs/video-fix.directive.js +++ b/assets/js/signs/video-fix.directive.js @@ -1,12 +1,13 @@ (function () { 'use strict'; - angular.module('wikilibras.signs').directive('html5vfix', function() { + angular.module('wikilibras.signs').directive('html5vfix', ['$sce', function($sce) { return { restrict: 'A', link: function(scope, element, attr) { - attr.$set('src', attr.vsrc); + attr.$set('src', $sce.trustAsResourceUrl(attr.vsrc)); + document.getElementById("sign-modal-video").load(); } } - }); + }]); }()); \ No newline at end of file diff --git a/assets/templates/sections.html b/assets/templates/sections.html index 57fc750..d878b24 100644 --- a/assets/templates/sections.html +++ b/assets/templates/sections.html @@ -40,7 +40,7 @@
- Feitos: {{ progress.uploaded_signs.n_completed_tasks }} + Enviados: {{ progress.uploaded_signs.n_completed_tasks }}
Meta: {{ progress.uploaded_signs.goal_n_tasks }} @@ -62,7 +62,7 @@
- Feitos: {{ progress.wikilibras.n_completed_tasks }} + ConstruĂ­dos: {{ progress.wikilibras.n_completed_tasks }}
Meta: {{ progress.wikilibras.goal_n_tasks }} @@ -84,7 +84,7 @@
- Feitos: {{ progress.corretor_sinais.n_completed_tasks }} + Corrigidos: {{ progress.corretor_sinais.n_completed_tasks }}
Meta: {{ progress.corretor_sinais.goal_n_tasks }} @@ -106,7 +106,7 @@
- Feitos: {{ progress.validador_sinais.n_completed_tasks }} + Avaliados: {{ progress.validador_sinais.n_completed_tasks }}
Meta: {{ progress.validador_sinais.goal_n_tasks }} @@ -230,7 +230,7 @@