Commit 8bdd2de5e3774ea6f081f6d237e3017d21644547
1 parent
71ba3006
Exists in
master
and in
2 other branches
Fixing identation
Showing
2 changed files
with
6 additions
and
5 deletions
Show diff stats
ConfJuvApp/www/html/_proposal_list.html
@@ -10,6 +10,7 @@ | @@ -10,6 +10,7 @@ | ||
10 | {{proposal.body | htmlToPlainText | limitTo:140}}... | 10 | {{proposal.body | htmlToPlainText | limitTo:140}}... |
11 | </div> | 11 | </div> |
12 | <div class="card-footer"> | 12 | <div class="card-footer"> |
13 | + <a ng-click="showProposal(proposal.id)">Acessar</a> | ||
13 | </div> | 14 | </div> |
14 | </div> | 15 | </div> |
15 | </ion-item> | 16 | </ion-item> |
ConfJuvApp/www/js/controllers.js
@@ -7,12 +7,12 @@ angular.module('confjuvapp.controllers', []) | @@ -7,12 +7,12 @@ angular.module('confjuvapp.controllers', []) | ||
7 | L O G I N | 7 | L O G I N |
8 | ******************************************************************************/ | 8 | ******************************************************************************/ |
9 | 9 | ||
10 | - $scope.loginFormDisplayed = false; | 10 | + $scope.loginFormDisplayed = false; |
11 | 11 | ||
12 | - $scope.displayLoginForm = function() { | ||
13 | - $scope.loginFormDisplayed = true; | 12 | + $scope.displayLoginForm = function() { |
13 | + $scope.loginFormDisplayed = true; | ||
14 | $scope.registerFormDisplayed = false; | 14 | $scope.registerFormDisplayed = false; |
15 | - }; | 15 | + }; |
16 | 16 | ||
17 | // Function to open the modal | 17 | // Function to open the modal |
18 | $scope.openModal = function() { | 18 | $scope.openModal = function() { |
@@ -198,7 +198,7 @@ angular.module('confjuvapp.controllers', []) | @@ -198,7 +198,7 @@ angular.module('confjuvapp.controllers', []) | ||
198 | 198 | ||
199 | $scope.loadProposals = function(token, topic_id) { | 199 | $scope.loadProposals = function(token, topic_id) { |
200 | $scope.loading = true; | 200 | $scope.loading = true; |
201 | - var params = '?private_token=' + token + '&fields=title,image,body,abstract&content_type=ProposalsDiscussionPlugin::Proposal'; | 201 | + var params = '?private_token=' + token + '&fields=title,image,body,abstract,id&content_type=ProposalsDiscussionPlugin::Proposal'; |
202 | var path = 'articles/' + topic_id + '/children' + params; | 202 | var path = 'articles/' + topic_id + '/children' + params; |
203 | 203 | ||
204 | $http.get(ConfJuvAppUtils.pathTo(path)) | 204 | $http.get(ConfJuvAppUtils.pathTo(path)) |