Commit 082bcb659834732daedc14f165e02db8ca5177f8
1 parent
005d8a38
Exists in
production
Ticket #126: Show badges and points
Showing
2 changed files
with
16 additions
and
1 deletions
Show diff stats
www/html/_profile.html
... | ... | @@ -11,6 +11,21 @@ |
11 | 11 | <a class="back icon-left ion-reply" ng-click="closeProfile()">Voltar</a> |
12 | 12 | </h1> |
13 | 13 | |
14 | + <p class="level-and-points">Nível {{profile.level}}. Você possui {{profile.points}} pontos.</p> | |
15 | + <div id="game-bar"><div id="game-bar-inner" ng-style="{ 'width': profile.gamification_plugin_level_percent + '%' }">{{profile.gamification_plugin_level_percent.toFixed(2)}}%</div></div> | |
16 | + | |
17 | + <hr /> | |
18 | + | |
19 | + <h2>Suas Medalhas</h2> | |
20 | + | |
21 | + <div id="badges"> | |
22 | + <div ng-repeat="badge in profile.badges" class="badge"> | |
23 | + <span>{{badge.level}}</span> | |
24 | + <img ng-src="img/badges/{{badge.name}}.png" /> | |
25 | + <p>Level {{badge.level}}</p> | |
26 | + </div> | |
27 | + </div> | |
28 | + | |
14 | 29 | <h2>Nome</h2> |
15 | 30 | <p>{{profile.name}}</p> |
16 | 31 | ... | ... |
www/js/controllers.js
... | ... | @@ -1405,7 +1405,7 @@ angular.module('confjuvapp.controllers', []) |
1405 | 1405 | $scope.profileModal.show(); |
1406 | 1406 | } |
1407 | 1407 | else { |
1408 | - $ionicModal.fromTemplateUrl('html/_profile.html?2', { | |
1408 | + $ionicModal.fromTemplateUrl('html/_profile.html?1', { | |
1409 | 1409 | scope: $scope, |
1410 | 1410 | animation: 'slide-in-up' |
1411 | 1411 | }).then(function(modal) { | ... | ... |