From 4a372bfc98abccd5b65f6fe683f1146051e8cb4e Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Sun, 25 Aug 2013 21:40:14 -0400 Subject: [PATCH] rewrite2 add death --- views/modals/death.jade | 15 +++++++++++++++ views/modals/index.jade | 3 ++- views/shared/modals.html | 31 ------------------------------- 3 files changed, 17 insertions(+), 32 deletions(-) create mode 100644 views/modals/death.jade diff --git a/views/modals/death.jade b/views/modals/death.jade new file mode 100644 index 0000000000..769adddcb4 --- /dev/null +++ b/views/modals/death.jade @@ -0,0 +1,15 @@ +div(modal='user.stats.hp <= 0', options='{backdrop:true, keyboard:false, backdropClick:false}') + .modal-body + .row-fluid + .span4 + figure.notification-character + img(src='/img/sprites/dead.png') + .span8 + h2 You Died! + .row-fluid + .span4 + p + a.btn.btn-danger.btn-large.notification-action(ng-click='revive()') Continue + .span8 + p + | You've lost a level, all your gold, and a random piece of equipment. Arise, Habiteer, and try again! Curb those negative Habits, be vigilant in completion of Dailies, and hold death at arm's length with a Potion if you falter! diff --git a/views/modals/index.jade b/views/modals/index.jade index 9dc7bd591c..15f116705b 100644 --- a/views/modals/index.jade +++ b/views/modals/index.jade @@ -1,3 +1,4 @@ include ./achievements include ./login -include ./reroll \ No newline at end of file +include ./reroll +include ./death \ No newline at end of file diff --git a/views/shared/modals.html b/views/shared/modals.html index 06c1387ea8..790946c92e 100644 --- a/views/shared/modals.html +++ b/views/shared/modals.html @@ -1,36 +1,5 @@ - - - - - - - - -
- -
-
-
- -
-
-
-

You Died!

-
-
-
-
-

Continue

-
-
-

You've lost a level, all your gold, and a random piece of equipment. Arise, Habiteer, and try again! Curb those negative Habits, be vigilant in completion of Dailies, and hold death at arm's length with a Potion if you falter!

-
-
- -
-