Commit 451a76eb37bd1671a79a43276109964c9d090610
1 parent
5f9beaad
Exists in
master
and in
2 other branches
Just display tag button for my proposals
Showing
2 changed files
with
2 additions
and
3 deletions
Show diff stats
ConfJuvApp/www/html/_proposal.html
@@ -11,7 +11,7 @@ | @@ -11,7 +11,7 @@ | ||
11 | <button class="button report-abuse" ng-click="openReportAbuseForm()"> | 11 | <button class="button report-abuse" ng-click="openReportAbuseForm()"> |
12 | <i class="icon ion-alert"></i> Denunciar | 12 | <i class="icon ion-alert"></i> Denunciar |
13 | </button> | 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 | <i class="icon ion-pricetags"></i> Adicionar Tag | 15 | <i class="icon ion-pricetags"></i> Adicionar Tag |
16 | </button> | 16 | </button> |
17 | <button class="button comment" ng-click="openCommentForm()"> | 17 | <button class="button comment" ng-click="openCommentForm()"> |
@@ -21,7 +21,6 @@ | @@ -21,7 +21,6 @@ | ||
21 | <img ng-src="https://img.shields.io/badge/tema-{{proposal.topic.title}}-ff9800.svg" alt="" /> | 21 | <img ng-src="https://img.shields.io/badge/tema-{{proposal.topic.title}}-ff9800.svg" alt="" /> |
22 | <img ng-repeat="tag in proposal.tag_list" ng-src="https://img.shields.io/badge/tag-{{tag}}-4db6ac.svg" alt="" /> | 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 | <p>{{proposal.body | htmlToPlainText}}</p> | 24 | <p>{{proposal.body | htmlToPlainText}}</p> |
26 | 25 | ||
27 | <h2>Comentários</h2> | 26 | <h2>Comentários</h2> |
ConfJuvApp/www/js/controllers.js
@@ -364,7 +364,7 @@ angular.module('confjuvapp.controllers', []) | @@ -364,7 +364,7 @@ angular.module('confjuvapp.controllers', []) | ||
364 | } | 364 | } |
365 | else { | 365 | else { |
366 | // Initiate the modal | 366 | // Initiate the modal |
367 | - $ionicModal.fromTemplateUrl('html/_proposal.html?1', { | 367 | + $ionicModal.fromTemplateUrl('html/_proposal.html?2', { |
368 | scope: $scope, | 368 | scope: $scope, |
369 | animation: 'slide-in-up' | 369 | animation: 'slide-in-up' |
370 | }).then(function(modal) { | 370 | }).then(function(modal) { |