Commit 451a76eb37bd1671a79a43276109964c9d090610

Authored by Caio Almeida
1 parent 5f9beaad

Just display tag button for my proposals

ConfJuvApp/www/html/_proposal.html
... ... @@ -11,7 +11,7 @@
11 11 <button class="button report-abuse" ng-click="openReportAbuseForm()">
12 12 <i class="icon ion-alert"></i> Denunciar
13 13 </button>
14   - <button class="button tag" ng-click="openTagForm()">
  14 + <button class="button tag" ng-click="openTagForm()" ng-show="proposal.author.id == user.id">
15 15 <i class="icon ion-pricetags"></i> Adicionar Tag
16 16 </button>
17 17 <button class="button comment" ng-click="openCommentForm()">
... ... @@ -21,7 +21,6 @@
21 21 <img ng-src="https://img.shields.io/badge/tema-{{proposal.topic.title}}-ff9800.svg" alt="" />
22 22 <img ng-repeat="tag in proposal.tag_list" ng-src="https://img.shields.io/badge/tag-{{tag}}-4db6ac.svg" alt="" />
23 23  
24   - <p>{{proposal.categories | categoryType:"state"}} -> {{proposal.categories | categoryType:"city"}}</p>
25 24 <p>{{proposal.body | htmlToPlainText}}</p>
26 25  
27 26 <h2>Comentários</h2>
... ...
ConfJuvApp/www/js/controllers.js
... ... @@ -364,7 +364,7 @@ angular.module(&#39;confjuvapp.controllers&#39;, [])
364 364 }
365 365 else {
366 366 // Initiate the modal
367   - $ionicModal.fromTemplateUrl('html/_proposal.html?1', {
  367 + $ionicModal.fromTemplateUrl('html/_proposal.html?2', {
368 368 scope: $scope,
369 369 animation: 'slide-in-up'
370 370 }).then(function(modal) {
... ...