habitica/views/shared/modals/members.jade
Tyler Renelle 979d7d85a4 refactor(avatar): avatar separated into two mixins: +heroBox() and
+avatar(). Mobile will be sharing jade files with web, we'll need more
modular markup
2014-04-26 15:12:03 -06:00

32 lines
1.3 KiB
Text

script(type='text/ng-template', id='modals/member.html')
.modal-header(bindonce='profile')
h4
span {{profile.profile.name}}
span(ng-if='profile.contributor.level') - {{contribText(profile.contributor, profile.backer)}}
.modal-body(bindonce='profile')
.container-fluid
.row
.col-md-6
img(ng-show='profile.profile.imageUrl', ng-src='{{profile.profile.imageUrl}}')
markdown(ng-show='profile.profile.blurb', ng-model='profile.profile.blurb')
ul.muted.list-unstyled(ng-if='profile.auth.timestamps')
li {{profile._id}}
li(ng-show='profile.auth.timestamps.created')
| 
=env.t('memberSince')
| 
| {{timestamp(profile.auth.timestamps.created)}} -
li(ng-show='profile.auth.timestamps.loggedin')
| 
=env.t('lastLoggedIn')
| 
| {{timestamp(profile.auth.timestamps.loggedin)}} -
h3=env.t('stats')
.label.label-info {{ {warrior:'Warrior',wizard:'Mage',healer:'Healer',rogue:'Rogue'}[profile.stats.class] }}
include ../profiles/stats
.col-md-6
+herobox()
h3 Achievements
include ../profiles/achievements
.modal-footer
button.btn.btn-default(ng-click='$close()')=env.t('ok')