Commit 0edb5714cda2b9b43a587d0676b52faf20f2db01
Exists in
master
and in
5 other branches
Merge branch 'master' of https://gitlab.com/participa/proposal-app
Showing
4 changed files
with
19 additions
and
6 deletions
Show diff stats
index.html
| @@ -146,6 +146,7 @@ | @@ -146,6 +146,7 @@ | ||
| 146 | <a href="#/temas/{{slug}}/{{id}}" class="proposal-link" data-target="proposal-item-{{id}}"> | 146 | <a href="#/temas/{{slug}}/{{id}}" class="proposal-link" data-target="proposal-item-{{id}}"> |
| 147 | <span class="icon icon-theme icon-{{slug}}"></span> | 147 | <span class="icon icon-theme icon-{{slug}}"></span> |
| 148 | <span class="themes-name">{{name}}</span> | 148 | <span class="themes-name">{{name}}</span> |
| 149 | + <span class="fa fa-angle-right hidden-xs"></span> | ||
| 149 | </a> | 150 | </a> |
| 150 | <!-- <div class="arrow-box" style="display: none"></div> --> | 151 | <!-- <div class="arrow-box" style="display: none"></div> --> |
| 151 | </li> | 152 | </li> |
| @@ -180,7 +181,7 @@ | @@ -180,7 +181,7 @@ | ||
| 180 | <input placeholder="palavra chave" id="search-input" type="text" name="search" /> | 181 | <input placeholder="palavra chave" id="search-input" type="text" name="search" /> |
| 181 | </div> | 182 | </div> |
| 182 | --> | 183 | --> |
| 183 | - <a class="ver-todos" href="#/programas" role="tab" aria-controls="proposal-group">Ver todos os programas</a> | 184 | + <a class="ver-todos" href="#/programas" role="tab" aria-controls="proposal-group"><span class="fa fa-angle-right"></span>Ver todos os programas</a> |
| 184 | <h2 class="name">Programas</h2> | 185 | <h2 class="name">Programas</h2> |
| 185 | 186 | ||
| 186 | <ul class="proposal-list row"> | 187 | <ul class="proposal-list row"> |
| @@ -426,7 +427,6 @@ | @@ -426,7 +427,6 @@ | ||
| 426 | <div class="row"> | 427 | <div class="row"> |
| 427 | <div class="actions col-sm-4"> | 428 | <div class="actions col-sm-4"> |
| 428 | <input type="submit" class="login-action button col-sm-12" value="Acessar"/> | 429 | <input type="submit" class="login-action button col-sm-12" value="Acessar"/> |
| 429 | - <a href="http://www.participa.br/account/forgot_password" target="_blank" class="forgot-password">Esqueci minha senha</a> | ||
| 430 | </div> | 430 | </div> |
| 431 | <div class="oauth col-sm-8"> | 431 | <div class="oauth col-sm-8"> |
| 432 | <span class="label">Ou acesse usando <i>»</i></span> | 432 | <span class="label">Ou acesse usando <i>»</i></span> |
js/handlebars-helpers.js
| @@ -82,7 +82,7 @@ define(['handlebars'], function(Handlebars){ | @@ -82,7 +82,7 @@ define(['handlebars'], function(Handlebars){ | ||
| 82 | 82 | ||
| 83 | Handlebars.registerHelper('proposal_action', function(discussion, target) { | 83 | Handlebars.registerHelper('proposal_action', function(discussion, target) { |
| 84 | if(discussion.setting && discussion.setting.moderate_proposals) { | 84 | if(discussion.setting && discussion.setting.moderate_proposals) { |
| 85 | - return '/api/v1/articles/'+target.id+'/children/suggest'; | 85 | + return '/api/v1/proposals_discussion_plugin/'+target.id+'/propose'; |
| 86 | } else { | 86 | } else { |
| 87 | return '/api/v1/articles/'+target.id+'/children'; | 87 | return '/api/v1/articles/'+target.id+'/children'; |
| 88 | } | 88 | } |
js/main.js
| @@ -108,7 +108,7 @@ define(['handlebars', 'fastclick', 'handlebars_helpers'], function(Handlebars, F | @@ -108,7 +108,7 @@ define(['handlebars', 'fastclick', 'handlebars_helpers'], function(Handlebars, F | ||
| 108 | } | 108 | } |
| 109 | 109 | ||
| 110 | if(!logged_in) { | 110 | if(!logged_in) { |
| 111 | - $(this).closest('.support-proposal').find('.send-button a').click(); | 111 | + $(this).closest('.support-proposal').find('.button-send a').click(); |
| 112 | e.preventDefault(); | 112 | e.preventDefault(); |
| 113 | return; | 113 | return; |
| 114 | } | 114 | } |
| @@ -644,12 +644,12 @@ define(['handlebars', 'fastclick', 'handlebars_helpers'], function(Handlebars, F | @@ -644,12 +644,12 @@ define(['handlebars', 'fastclick', 'handlebars_helpers'], function(Handlebars, F | ||
| 644 | Main.updateHash(newHash); | 644 | Main.updateHash(newHash); |
| 645 | }); | 645 | }); |
| 646 | 646 | ||
| 647 | - $( '.send-button a' ).on('click', function(e){ | 647 | + $( '.button-send a' ).on('click', function(e){ |
| 648 | e.preventDefault(); | 648 | e.preventDefault(); |
| 649 | 649 | ||
| 650 | //display form to send proposal (or login form for non-logged users) | 650 | //display form to send proposal (or login form for non-logged users) |
| 651 | var $this = $(this); | 651 | var $this = $(this); |
| 652 | - loginButton = $this.parents('.send-button'); | 652 | + loginButton = $this.parents('.button-send'); |
| 653 | loginButton.hide(); | 653 | loginButton.hide(); |
| 654 | $this.parents('.success-proposal-sent').hide(); | 654 | $this.parents('.success-proposal-sent').hide(); |
| 655 | $wrapper = $this.parents('.make-proposal'); | 655 | $wrapper = $this.parents('.make-proposal'); |
sass/style.sass
| @@ -411,6 +411,14 @@ h1 | @@ -411,6 +411,14 @@ h1 | ||
| 411 | +hover(#fff,$darken) | 411 | +hover(#fff,$darken) |
| 412 | &:hover,&:focus | 412 | &:hover,&:focus |
| 413 | text-decoration: none | 413 | text-decoration: none |
| 414 | + .fa | ||
| 415 | + color: #898989 | ||
| 416 | + float: right | ||
| 417 | + font-size: 45px | ||
| 418 | + &-name | ||
| 419 | + display: inline-block | ||
| 420 | + width: 50% | ||
| 421 | + vertical-align: middle | ||
| 414 | .arrow-box | 422 | .arrow-box |
| 415 | position: relative | 423 | position: relative |
| 416 | top: $gutter | 424 | top: $gutter |
| @@ -427,6 +435,10 @@ h1 | @@ -427,6 +435,10 @@ h1 | ||
| 427 | // 6.7 - listagem dos programas aleatorios | 435 | // 6.7 - listagem dos programas aleatorios |
| 428 | .ver-todos | 436 | .ver-todos |
| 429 | float: right | 437 | float: right |
| 438 | + .fa | ||
| 439 | + font-size: $theme-size-header | ||
| 440 | + margin-right: $gutter * 0.5 | ||
| 441 | + vertical-align: bottom | ||
| 430 | .proposal | 442 | .proposal |
| 431 | &-container | 443 | &-container |
| 432 | border-radius: $radius | 444 | border-radius: $radius |
| @@ -1136,6 +1148,7 @@ h3.titulo-destaque | @@ -1136,6 +1148,7 @@ h3.titulo-destaque | ||
| 1136 | font-size: 0 | 1148 | font-size: 0 |
| 1137 | &-name | 1149 | &-name |
| 1138 | display: block | 1150 | display: block |
| 1151 | + width: 100% | ||
| 1139 | li | 1152 | li |
| 1140 | display: inline-block | 1153 | display: inline-block |
| 1141 | font-size: $font-size-base | 1154 | font-size: $font-size-base |