mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-03 08:21:07 +00:00
* Added a Grunt task to precompile website/views/shared/new-stuff.jade to a static html file. * Updated the new-stuff.jade modal template to use a $rootScope property. * Added a special case to openModal for the newStuff template, by which it fetches the flat file, marks it as trusted HTML, and sets it to the $rootScope property before rendering the modal.
12 lines
525 B
Text
12 lines
525 B
Text
script(type='text/ng-template', id='modals/newStuff.html')
|
|
.modal-header
|
|
| #{env.t('newStuff')} by
|
|
a(target='_blank', href='https://twitter.com/Mihakuu') Bailey
|
|
.modal-body.new-stuff-modal.modal-fixed-height
|
|
div(class="#{env.worldDmg.bailey ? 'npc_bailey_broken' : 'npc_bailey'}")
|
|
br
|
|
br
|
|
div(ng-bind-html='latestBaileyMessage')
|
|
.modal-footer
|
|
button.btn.btn-default(ng-click='$close()')=env.t('cool')
|
|
button.btn.btn-warning(ng-click='dismissAlert(); $close()')=env.t('dismissAlert')
|