feat(views): Create generic message alert modal

This commit is contained in:
Blade Barringer 2015-12-26 18:44:46 -06:00
parent d36755b64a
commit ef25956ba3
3 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,4 @@
include ./message-modal
include ./achievements
include ./reroll
include ./death

View 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')}}

View file

@ -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')