mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-14 16:02:14 +00:00
feat(views): Create generic message alert modal
This commit is contained in:
parent
d36755b64a
commit
ef25956ba3
3 changed files with 11 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
|||
include ./message-modal
|
||||
include ./achievements
|
||||
include ./reroll
|
||||
include ./death
|
||||
|
|
|
|||
9
website/views/shared/modals/message-modal.jade
Normal file
9
website/views/shared/modals/message-modal.jade
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
script(type='text/ng-template', id='modals/message-modal.html')
|
||||
.modal-header
|
||||
h3.text-center {{::messageModal.title}}
|
||||
.modal-body
|
||||
p {{::messageModal.body}}
|
||||
p {{:: env.t('some') }}
|
||||
.modal-footer(ng-if='::!messageModal.noFooter')
|
||||
a.btn.btn-primary(ng-click='$close()')
|
||||
=env.t('close')}}
|
||||
|
|
@ -33,6 +33,7 @@ html(ng-app='habitrpg')
|
|||
body
|
||||
div(ng-controller='AuthCtrl')
|
||||
include ./login-modal
|
||||
include ../shared/modals/message-modal
|
||||
nav.navbar.navbar-inverse.navbar-fixed-top
|
||||
.navbar-header
|
||||
button.navbar-toggle(type='button', ng-click='isNavbarCollapsed = !isNavbarCollapsed', ng-init='isNavbarCollapsed = true')
|
||||
|
|
|
|||
Loading…
Reference in a new issue