Commit 3a7858157010008e9008f505a0baac3505c393d2
1 parent
44444ee8
Exists in
master
and in
2 other branches
adding tag_list visualization
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
ConfJuvApp/www/html/_proposal.html
... | ... | @@ -10,7 +10,7 @@ |
10 | 10 | <button class="button comment" ng-click="openCommentForm()"> |
11 | 11 | <i class="icon ion-chatbox-working"></i> Comentar |
12 | 12 | </button> |
13 | - <img ng-src="https://img.shields.io/badge/tag-{{proposal.topic.title}}-ff9800.svg" alt="" /> | |
13 | + <img ng-src="https://img.shields.io/badge/tag-{{proposal.topic.title}} {{proposal.tag_list.join(' ').replace('-', '--')}}-ff9800.svg" alt="" /> | |
14 | 14 | <p>{{proposal.body | htmlToPlainText}}</p> |
15 | 15 | |
16 | 16 | <h2>Comentários</h2> | ... | ... |
ConfJuvApp/www/js/controllers.js
... | ... | @@ -291,7 +291,7 @@ angular.module('confjuvapp.controllers', []) |
291 | 291 | |
292 | 292 | $scope.loadProposals = function(token, topic) { |
293 | 293 | $scope.loading = true; |
294 | - var params = '?private_token=' + token + '&fields=title,image,body,abstract,id&content_type=ProposalsDiscussionPlugin::Proposal'; | |
294 | + var params = '?private_token=' + token + '&fields=title,image,body,abstract,id,tag_list&content_type=ProposalsDiscussionPlugin::Proposal'; | |
295 | 295 | var path = 'articles/' + topic.id + '/children' + params; |
296 | 296 | |
297 | 297 | $http.get(ConfJuvAppUtils.pathTo(path)) | ... | ... |