Commit 11c5d473fdb12e0edb419921a337bf8b04317ea5
Exists in
master
and in
4 other branches
Merge branch 'master' into staging
Showing
5 changed files
with
27 additions
and
4 deletions
Show diff stats
src/app/components/category-list/category-list.directive.js
src/app/components/category-list/category-list.html
@@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
6 | <b>Filtrar</b> por Tema <span class="glyphicon glyphicon-filter pull-right"></span> | 6 | <b>Filtrar</b> por Tema <span class="glyphicon glyphicon-filter pull-right"></span> |
7 | </h3> | 7 | </h3> |
8 | <!-- <div class="list-group ng-hide" ng-show="!vm.isCollapsed" ng-class="vm.selectedCategory.slug"> --> | 8 | <!-- <div class="list-group ng-hide" ng-show="!vm.isCollapsed" ng-class="vm.selectedCategory.slug"> --> |
9 | - <div class="list-group" ng-class="vm.selectedCategory.slug"> | 9 | + <div class="list-group is-mobile" ng-class="vm.selectedCategory.slug"> |
10 | <button type="button" class="list-group-item category-list--item" | 10 | <button type="button" class="list-group-item category-list--item" |
11 | ng-repeat="category in vm.categories" | 11 | ng-repeat="category in vm.categories" |
12 | ng-class="{active: vm.selectedCategory.slug === category.slug}" | 12 | ng-class="{active: vm.selectedCategory.slug === category.slug}" |
src/app/components/category-list/category-list.scss
@@ -124,6 +124,12 @@ | @@ -124,6 +124,12 @@ | ||
124 | // height: 0; | 124 | // height: 0; |
125 | // line-height: 0; | 125 | // line-height: 0; |
126 | } | 126 | } |
127 | + | ||
128 | + &.is-mobile { | ||
129 | + @media(max-width: $screen-sm) { | ||
130 | + display: none; | ||
131 | + } | ||
132 | + } | ||
127 | } | 133 | } |
128 | 134 | ||
129 | .list-group-item.active, | 135 | .list-group-item.active, |
src/app/components/proposal-box/proposal-box.html
@@ -141,7 +141,7 @@ | @@ -141,7 +141,7 @@ | ||
141 | <div class="proposal-box--program color-theme-bg">{{vm.topic.title}}</div> | 141 | <div class="proposal-box--program color-theme-bg">{{vm.topic.title}}</div> |
142 | 142 | ||
143 | <!-- Apagar o bloco abaixo --> | 143 | <!-- Apagar o bloco abaixo --> |
144 | - <span style="background: green;">{{::vm.proposal.body}} | 144 | + <span style="background: green;">{{::vm.proposal}} |
145 | </div> | 145 | </div> |
146 | <div class="proposal-box--middle"> | 146 | <div class="proposal-box--middle"> |
147 | <div class="proposal-box--content"> | 147 | <div class="proposal-box--content"> |
src/app/pages/respostas/respostas.controller.js
@@ -169,7 +169,25 @@ | @@ -169,7 +169,25 @@ | ||
169 | var params = { | 169 | var params = { |
170 | page: page, | 170 | page: page, |
171 | per_page: per_page, | 171 | per_page: per_page, |
172 | - has_children: true | 172 | + has_children: true, |
173 | + 'fields[]': [ | ||
174 | + 'id', | ||
175 | + 'body', | ||
176 | + 'abstract', | ||
177 | + 'hits', | ||
178 | + 'ranking_position', | ||
179 | + 'votes_against', | ||
180 | + 'votes_count', | ||
181 | + 'votes_for', | ||
182 | + 'parent', | ||
183 | + 'categories', | ||
184 | + 'slug', | ||
185 | + 'url', // parent.image.url | ||
186 | + 'image', | ||
187 | + 'title', | ||
188 | + 'archived', | ||
189 | + 'has_children', | ||
190 | + ] | ||
173 | }; | 191 | }; |
174 | 192 | ||
175 | if (vm.selectedTheme) { | 193 | if (vm.selectedTheme) { |