diff --git a/assets/css/base.css b/assets/css/base.css
index e7349c0..7734125 100644
--- a/assets/css/base.css
+++ b/assets/css/base.css
@@ -82,9 +82,10 @@ img {
bottom: 0;
}
-.wl-scroll-links span {
+.wl-scroll-links a {
padding-right: 22px;
cursor: pointer;
+ color: #2d2d2d;
}
.wl-login-btn-wrapper {
@@ -94,14 +95,14 @@ img {
}
.wl-login-link {
- float: right;
+ float: left;
font-weight: bold;
color: #33a0d1;
padding: 10px 35px 0 0;
}
.wl-participate-btn {
- float: right;
+ float: left;
padding: 9px 12px;
}
@@ -131,8 +132,14 @@ img {
}
.wl-sections-link-wrapper .section-link {
- padding-left: 20px;
+ padding: 0 20px 0 0;
cursor: pointer;
+ color: white;
+}
+
+.wl-sections-link-wrapper .section-link:hover,
+ .wl-sections-link-wrapper .section-link:focus {
+ background-color: transparent;
}
/* Sections */
@@ -151,6 +158,7 @@ img {
}
.wl-section-title .title {
+ color: white;
padding: 5px 0;
background-color: #0f78a7;
-webkit-border-radius: 6px;
@@ -158,6 +166,10 @@ img {
border-radius: 6px;
}
+.wl-section-title a {
+ text-decoration: none;
+}
+
.wl-section-description {
margin-top: 90px;
font-size: 14px;
@@ -390,10 +402,7 @@ img {
/* Signs and Ranking Section */
#wl-signs-and-ranking {
- position: relative;
- z-index: 1;
background: #ffffff;
- height: 100vh;
}
.wl-signs-and-ranking-container {
@@ -401,6 +410,7 @@ img {
flex-direction: row;
flex-wrap: wrap;
background: white;
+ height: 100vh;
}
.wl-signs-and-ranking-wrapper {
diff --git a/assets/js/main.controller.js b/assets/js/main.controller.js
index 856fc5c..8168e3c 100644
--- a/assets/js/main.controller.js
+++ b/assets/js/main.controller.js
@@ -1,9 +1,5 @@
(function () {
'use strict';
- angular.module('wikilibras').controller('wikilibrasCtrl', ['$scope', '$window', '$document', function ($scope, $window) {
- $scope.openUrl = function(url) {
- $window.open(url, "_self");
- };
- }]);
+ angular.module('wikilibras').controller('wikilibrasCtrl', ['$scope', function ($scope) {}]);
}());
\ No newline at end of file
diff --git a/assets/js/ranking/ranking.service.js b/assets/js/ranking/ranking.service.js
index 123a359..f7bc163 100644
--- a/assets/js/ranking/ranking.service.js
+++ b/assets/js/ranking/ranking.service.js
@@ -4,13 +4,29 @@
angular.module('wikilibras.ranking').service("rankingService", ['$http', '$q', function ($http, $q) {
var PROJECT_CONF_URL = 'conf/app-conf.json';
var RANKING_ENDPOINT = '/api/leaderboard?limit=20';
+ var NUMBER_OF_COLUMNS = 2;
+
+ function splitToChunks(array, chunk) {
+ if (array && array.length < 1 || chunk === 0) return array;
+
+ var result = [];
+ for (var i = 0; i < array.length; i += chunk) {
+ result.push(array.slice(i, i+chunk));
+ }
+ return result;
+ }
return {
getRankingData: function() {
return $http.get(PROJECT_CONF_URL).then(function(response) {
var baseApiUrl = response.data.pybossa_url;
return $http.get(baseApiUrl + RANKING_ENDPOINT).then(function(response) {
- console.log(response);
+
+ angular.forEach(response.data, function(obj, key) {
+ response.data[key] = splitToChunks(obj, NUMBER_OF_COLUMNS);
+ console.log(response.data[key]);
+ });
+ console.log(response.data);
return response.data;
});
});
diff --git a/assets/templates/header.html b/assets/templates/header.html
index c003dfc..1bfa59a 100644
--- a/assets/templates/header.html
+++ b/assets/templates/header.html
@@ -27,21 +27,23 @@
diff --git a/assets/templates/sections.html b/assets/templates/sections.html
index 6c9c50e..b52fc9b 100644
--- a/assets/templates/sections.html
+++ b/assets/templates/sections.html
@@ -2,7 +2,9 @@
@@ -14,11 +16,13 @@
@@ -27,7 +31,7 @@
O Wikilibras é uma plataforma colaborativa para construção de dicionário em LIBRAS.
- Acompanhe abaixo o progresso alçado pela comunidade WikiLibras.
+ Acompanhe abaixo o progresso conquistado pela comunidade WikiLibras.
@@ -126,21 +130,23 @@
-

+
-
+
Grave seu sinal e envie para nossa comunidade.
@@ -152,12 +158,12 @@
-

+
-
+
Ensine Ícaro, o nosso avatar, a fazer um sinal.
@@ -170,12 +176,12 @@
-

+
-
+
O sinal está incorreto? Colabore corrigindo-o.
@@ -190,8 +196,10 @@
-
@@ -207,9 +215,11 @@
Confira alguns sinais que a comunidade WikiLibras já produziu.
@@ -224,12 +234,33 @@
+
+
+
+
+
+
+
+
+ {{ getSignData(activeSignId).signName }}
+ criado por: {{ getSignData(activeSignId).userId }}
+
+
+
+
+
-
-
-
+
+
+
-
![]()
+
- {{ $index+1 }}.
+ {{ user.rank }}.
@@ -284,16 +315,16 @@
-
-
+
+
-
![]()
+
- {{ $index+1 }}.
+ {{ user.rank }}.
@@ -305,20 +336,20 @@
-
-
+
+
-
![]()
+
- {{ $index+1 }}.
+ {{ user.rank }}.
- {{ user.fullname }}
+ {{ user.name }}
@@ -332,7 +363,7 @@
-
![]()
+
{{ $index+1 }}.
@@ -350,23 +381,4 @@
-
-
-
-
-
-
-
-
-
- {{ getSignData(activeSignId).signName }}
- criado por: {{ getSignData(activeSignId).userId }}
-
-
-
-
-
\ No newline at end of file
+
\ No newline at end of file
--
libgit2 0.21.2