Commit a0ee516a07416fd8ce4d1933262c886213d8d043
Exists in
master
and in
6 other branches
Merge branch 'fix-issues'
Showing
5 changed files
with
24 additions
and
6 deletions
Show diff stats
src/app/components/article-service/article.service.js
@@ -13,6 +13,7 @@ | @@ -13,6 +13,7 @@ | ||
13 | apiArticles: $rootScope.basePath + '/api/v1/articles/', | 13 | apiArticles: $rootScope.basePath + '/api/v1/articles/', |
14 | apiCommunities: $rootScope.basePath + '/api/v1/communities/', | 14 | apiCommunities: $rootScope.basePath + '/api/v1/communities/', |
15 | apiProposals: $rootScope.basePath + '/api/v1/proposals_discussion_plugin/', | 15 | apiProposals: $rootScope.basePath + '/api/v1/proposals_discussion_plugin/', |
16 | + apiSearch: $rootScope.basePath + '/api/v1/search/', | ||
16 | getArticleById: getArticleById, | 17 | getArticleById: getArticleById, |
17 | getArticleBySlug: getArticleBySlug, | 18 | getArticleBySlug: getArticleBySlug, |
18 | getCategories: getCategories, | 19 | getCategories: getCategories, |
@@ -234,7 +235,7 @@ | @@ -234,7 +235,7 @@ | ||
234 | 235 | ||
235 | function searchTopics (params, cbSuccess, cbError) { | 236 | function searchTopics (params, cbSuccess, cbError) { |
236 | // Ex.: /api/v1/search/article?type=ProposalsDiscussionPlugin::Topic&query=cisternas | 237 | // Ex.: /api/v1/search/article?type=ProposalsDiscussionPlugin::Topic&query=cisternas |
237 | - var url = '/api/v1/search/article'; | 238 | + var url = service.apiSearch + '/article'; |
238 | var paramsExtended = angular.extend({ | 239 | var paramsExtended = angular.extend({ |
239 | // 'fields[]': ['id', 'title', 'slug', 'abstract', 'categories', 'setting', 'children_count', 'hits'], | 240 | // 'fields[]': ['id', 'title', 'slug', 'abstract', 'categories', 'setting', 'children_count', 'hits'], |
240 | 'type': 'ProposalsDiscussionPlugin::Topic' | 241 | 'type': 'ProposalsDiscussionPlugin::Topic' |
@@ -249,7 +250,7 @@ | @@ -249,7 +250,7 @@ | ||
249 | 250 | ||
250 | function searchProposals (params, cbSuccess, cbError) { | 251 | function searchProposals (params, cbSuccess, cbError) { |
251 | // Ex.: /api/v1/search/article?type=ProposalsDiscussionPlugin::Proposal&query=cisternas | 252 | // Ex.: /api/v1/search/article?type=ProposalsDiscussionPlugin::Proposal&query=cisternas |
252 | - var url = '/api/v1/search/article'; | 253 | + var url = service.apiSearch + '/article'; |
253 | var paramsExtended = angular.extend({ | 254 | var paramsExtended = angular.extend({ |
254 | page: 1, | 255 | page: 1, |
255 | per_page: 20, | 256 | per_page: 20, |
src/app/components/cadastro-proposta/cadastro-proposta.html
@@ -21,10 +21,16 @@ | @@ -21,10 +21,16 @@ | ||
21 | <div class="col-sm-8"> | 21 | <div class="col-sm-8"> |
22 | <label for="proposta-textarea">Descrição da proposta*</label> | 22 | <label for="proposta-textarea">Descrição da proposta*</label> |
23 | <a tabindex="0" class="btn btn-link btn-question" role="button" data-toggle="popover" data-trigger="focus">?</a> | 23 | <a tabindex="0" class="btn btn-link btn-question" role="button" data-toggle="popover" data-trigger="focus">?</a> |
24 | - <textarea id="proposta-textarea" name="proposta" class="texto-proposta form-control" | 24 | + <textarea |
25 | + id="proposta-textarea" | ||
26 | + name="proposta" | ||
27 | + class="texto-proposta form-control" | ||
25 | ng-class="{ 'has-error' : formPropostas.proposta.$invalid && formPropostas.proposta.$touched }" | 28 | ng-class="{ 'has-error' : formPropostas.proposta.$invalid && formPropostas.proposta.$touched }" |
26 | ng-model="proposta" | 29 | ng-model="proposta" |
27 | - required ng-maxlength="200" ></textarea> | 30 | + ng-trim="false" |
31 | + ng-maxlength="200" | ||
32 | + maxlength="200" | ||
33 | + required></textarea> | ||
28 | <validation-messages field="formPropostas.proposta" maxlength="'Ops, esse campo não pode ser maior que 200 caracteres.'"></validation-messages> | 34 | <validation-messages field="formPropostas.proposta" maxlength="'Ops, esse campo não pode ser maior que 200 caracteres.'"></validation-messages> |
29 | <div class="row"> | 35 | <div class="row"> |
30 | <div class="col-xs-6"> | 36 | <div class="col-xs-6"> |
@@ -32,6 +38,7 @@ | @@ -32,6 +38,7 @@ | ||
32 | </div> | 38 | </div> |
33 | <div class="col-xs-6 text-right"> | 39 | <div class="col-xs-6 text-right"> |
34 | <span>Máx. 200 caracteres</span> | 40 | <span>Máx. 200 caracteres</span> |
41 | + <span ng-if="proposta.length > 0">(restam {{(200 - proposta.length)}} caracteres)</span> | ||
35 | </div> | 42 | </div> |
36 | </div> | 43 | </div> |
37 | </div> | 44 | </div> |
src/app/components/proposal-carousel/proposal-carousel.html
@@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
8 | <div class="proposal-carousel-top-triggers" ng-if="vm.proposals"> | 8 | <div class="proposal-carousel-top-triggers" ng-if="vm.proposals"> |
9 | <ul class="list-inline"> | 9 | <ul class="list-inline"> |
10 | <li class="item-dot" ng-repeat="proposal in vm.proposals"> | 10 | <li class="item-dot" ng-repeat="proposal in vm.proposals"> |
11 | - <button type="button" ng-class="{'active': vm.activeIndex === $index}" ng-click="vm.switchProposal($index)" title="Apersentar proposta na posição {{$index}}"></button> | 11 | + <button type="button" ng-class="{'active': vm.activeIndex === $index}" ng-click="vm.switchProposal($index)" title="Apersentar proposta {{ ( $index + 1 ) }}"></button> |
12 | </li> | 12 | </li> |
13 | </ul> | 13 | </ul> |
14 | </div> | 14 | </div> |
src/app/pages/programas/programas.scss
@@ -81,9 +81,19 @@ | @@ -81,9 +81,19 @@ | ||
81 | .program-preview--share { | 81 | .program-preview--share { |
82 | margin-bottom: 20px; | 82 | margin-bottom: 20px; |
83 | position: relative; | 83 | position: relative; |
84 | + | ||
84 | .dropdown { | 85 | .dropdown { |
85 | display: inline-block; | 86 | display: inline-block; |
86 | position: relative; | 87 | position: relative; |
88 | + | ||
89 | + @media screen and (max-width: $screen-xs) { | ||
90 | + display: block; | ||
91 | + | ||
92 | + .dropdown-menu-right { | ||
93 | + left: 0; | ||
94 | + right: auto; | ||
95 | + } | ||
96 | + } | ||
87 | } | 97 | } |
88 | 98 | ||
89 | .dropdown-menu { | 99 | .dropdown-menu { |
src/app/pages/ranking/ranking.controller.js
@@ -28,7 +28,7 @@ | @@ -28,7 +28,7 @@ | ||
28 | var vm = this; | 28 | var vm = this; |
29 | 29 | ||
30 | vm.page = 1; | 30 | vm.page = 1; |
31 | - vm.per_page = 20; | 31 | + vm.per_page = 10; |
32 | vm.themes = null; | 32 | vm.themes = null; |
33 | vm.selectedTheme = null; | 33 | vm.selectedTheme = null; |
34 | vm.filtredPrograms = null; | 34 | vm.filtredPrograms = null; |