Commit a67c49e2779bdca7766f8c664960037ba0101f3b

Authored by Leonardo Merlin
1 parent 62bdd5f0

Small improvments on table of results (fix #297 fix #299)

Showing 3 changed files with 23 additions and 2 deletions   Show diff stats
index.html
... ... @@ -373,7 +373,7 @@
373 373 <div class="results-content hide">
374 374 <a href="#" class="vote-result"><span class="sr-only">Fechar</span><span class="fa fa-times"></span></a>
375 375 <h2>Resultados</h2>
376   - <span class="total">Total de propostas: <strong class="value">{{pagination.total}}</strong></span>
  376 + <span class="total">Total de propostas para o programa {{title}}: <strong class="value">{{pagination.total}}</strong></span>
377 377 <div class="updated-at">
378 378 <span>Última atualização </span>
379 379 <span class="timeago" title="{{updated_at}}"></span>
... ...
js/main.js
... ... @@ -164,6 +164,9 @@ define([&#39;handlebars&#39;, &#39;fastclick&#39;, &#39;handlebars_helpers&#39;], function(Handlebars, F
164 164 page: page,
165 165 };
166 166  
  167 + // hack: add title to result table
  168 + data.title = $resultsContainer.closest('.categories').find('.proposal-header .title').text();
  169 +
167 170 $resultsContainer.html(resultsTemplate(data));
168 171 $resultsContainer.find('.loading').hide();
169 172 $resultsContainer.find('.results-content').show();
... ...
sass/style.sass
... ... @@ -853,11 +853,29 @@ td
853 853 display: table
854 854 table-layout: fixed
855 855 width: 100%
  856 + @media (max-width: 567px)
  857 + width: 90%
856 858 .truncated
857 859 overflow-x: hidden
858 860 text-overflow: ellipsis
859 861 white-space: nowrap
860   -
  862 + &.phone
  863 + .footable-toggle
  864 + float: right
  865 + padding: 5px 0 !important
  866 + width: 10%
  867 + text-align: center
  868 + background-color: #e0e0e0
  869 + .footable-row-detail-row
  870 + display: inline-block
  871 + &:not(:last-child)
  872 + margin-right: 10px
  873 + padding-right: 10px
  874 + border-right: 1px solid #ccc
  875 + .footable-row-detail-inner
  876 + margin: 0 auto
  877 + .footable-row-detail-cell
  878 + background-color: #e0e0e0
861 879 // 6.15 - paginador
862 880 .paging
863 881 padding: $gutter * 0.25
... ...