Commit a67c49e2779bdca7766f8c664960037ba0101f3b
1 parent
62bdd5f0
Exists in
master
and in
5 other branches
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,7 +373,7 @@ | ||
| 373 | <div class="results-content hide"> | 373 | <div class="results-content hide"> |
| 374 | <a href="#" class="vote-result"><span class="sr-only">Fechar</span><span class="fa fa-times"></span></a> | 374 | <a href="#" class="vote-result"><span class="sr-only">Fechar</span><span class="fa fa-times"></span></a> |
| 375 | <h2>Resultados</h2> | 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 | <div class="updated-at"> | 377 | <div class="updated-at"> |
| 378 | <span>Última atualização </span> | 378 | <span>Última atualização </span> |
| 379 | <span class="timeago" title="{{updated_at}}"></span> | 379 | <span class="timeago" title="{{updated_at}}"></span> |
js/main.js
| @@ -164,6 +164,9 @@ define(['handlebars', 'fastclick', 'handlebars_helpers'], function(Handlebars, F | @@ -164,6 +164,9 @@ define(['handlebars', 'fastclick', 'handlebars_helpers'], function(Handlebars, F | ||
| 164 | page: page, | 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 | $resultsContainer.html(resultsTemplate(data)); | 170 | $resultsContainer.html(resultsTemplate(data)); |
| 168 | $resultsContainer.find('.loading').hide(); | 171 | $resultsContainer.find('.loading').hide(); |
| 169 | $resultsContainer.find('.results-content').show(); | 172 | $resultsContainer.find('.results-content').show(); |
sass/style.sass
| @@ -853,11 +853,29 @@ td | @@ -853,11 +853,29 @@ td | ||
| 853 | display: table | 853 | display: table |
| 854 | table-layout: fixed | 854 | table-layout: fixed |
| 855 | width: 100% | 855 | width: 100% |
| 856 | + @media (max-width: 567px) | ||
| 857 | + width: 90% | ||
| 856 | .truncated | 858 | .truncated |
| 857 | overflow-x: hidden | 859 | overflow-x: hidden |
| 858 | text-overflow: ellipsis | 860 | text-overflow: ellipsis |
| 859 | white-space: nowrap | 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 | // 6.15 - paginador | 879 | // 6.15 - paginador |
| 862 | .paging | 880 | .paging |
| 863 | padding: $gutter * 0.25 | 881 | padding: $gutter * 0.25 |