mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-03 08:21:07 +00:00
Added quest image and info to quest invitation modal
This commit is contained in:
parent
a77a46c543
commit
d8e09884a0
1 changed files with 17 additions and 3 deletions
|
|
@ -67,10 +67,24 @@ script(type='text/ng-template', id='modals/buyQuest.html')
|
|||
script(type='text/ng-template', id='modals/questInvitation.html')
|
||||
.modal-header
|
||||
h4=env.t('questInvitation')
|
||||
| {{Content.quests[party.quest.key].text()}}
|
||||
| {{::Content.quests[party.quest.key].text()}}
|
||||
.modal-body
|
||||
div(ng-bind-html='Content.quests[party.quest.key].notes()')
|
||||
quest-rewards(key='{{party.quest.key}}')
|
||||
.pull-right-sm.text-center
|
||||
.col-centered(class='quest_{{::Content.quests[party.quest.key].key}}')
|
||||
div(ng-if='::Content.quests[party.quest.key].boss')
|
||||
h4 {{::Content.quests[party.quest.key].boss.name()}}
|
||||
p
|
||||
strong=env.t('bossHP') + ': '
|
||||
='{{::Content.quests[party.quest.key].boss.hp}} ' + env.t('hp')
|
||||
p
|
||||
strong=env.t('bossStrength') + ': '
|
||||
| {{::Content.quests[party.quest.key].boss.str}}
|
||||
div(ng-if='::Content.quests[party.quest.key].collect')
|
||||
p(ng-repeat='(k,v) in ::Content.quests[party.quest.key].collect')
|
||||
strong=env.t('collect') + ': '
|
||||
| {{::Content.quests[party.quest.key].collect[k].count}} {{::Content.quests[party.quest.key].collect[k].text()}}
|
||||
div(ng-bind-html='::Content.quests[party.quest.key].notes()')
|
||||
quest-rewards(key='{{::party.quest.key}}')
|
||||
.modal-footer
|
||||
button.btn.btn-default(ng-click='questHold = true; $close()')=env.t('askLater')
|
||||
button.btn.btn-default(ng-click='party.$questReject(); $close()')=env.t('reject')
|
||||
|
|
|
|||
Loading…
Reference in a new issue