2013-02-17 05:55:52 +00:00
< modals: >
2013-02-17 05:25:34 +00:00
2013-02-17 05:42:42 +00:00
< app:avatar:modals / >
< app:settings:modals / >
< app:party:modals / >
2013-02-17 05:25:34 +00:00
<!-- Game Over Modal -->
< div style = "{#unless equal(_user.stats.lvl,0)}display:none;{/}" >
2013-02-17 05:55:52 +00:00
< app:modals:modal noDismiss = true modalId = 'dead-modal' >
2013-02-17 05:25:34 +00:00
< figure class = "notification-character" >
2013-02-28 01:24:57 +00:00
< img src = "/img/sprites/dead.png" >
2013-02-17 05:25:34 +00:00
< / figure >
< h3 class = "notification-message" > You died! Game Over.< / h3 >
< a x-bind = click:revive class = "btn btn-danger btn-large notification-action" > Continue< / a >
2013-02-17 05:55:52 +00:00
< / app:modals:modal >
2013-02-17 05:25:34 +00:00
< / div >
<!-- Re - Roll modal -->
2013-02-17 05:55:52 +00:00
< app:modals:modal modalId = 'reroll-modal' header = "Reset Your Tasks" >
2013-02-17 05:25:34 +00:00
< app:userTokens / >
< p > Highly discouraged because red tasks provide good incentive to improve (< a target = "_blank" href = "https://github.com/lefnire/habitrpg#all-my-tasks-are-red-im-dying-too-fast" > read more< / a > ). However, this becomes necessary after long bouts of bad habits.< / p >
< @footer>
2013-02-17 05:55:52 +00:00
{#if lt(_user.balance,1)}
< a data-dismiss = "modal" x-bind = "click:showStripe" class = "btn btn-success btn-large" > Buy More Tokens< / a > < span class = 'token-cost' > Not enough tokens< / span >
{else}
< a data-dismiss = "modal" x-bind = click:buyReroll class = "btn btn-danger btn-large" > Re-Roll< / a > < span class = 'token-cost' > 4 Tokens< / span >
{/}
< /@footer>
< / app:modals:modal >
2013-02-17 05:25:34 +00:00
<!-- Buy more tokens modal -->
2013-02-17 05:55:52 +00:00
< app:modals:modal modalId = 'more-tokens-modal' header = "Out Of Tokens" >
2013-02-17 05:25:34 +00:00
< app:userTokens / >
< p > You're out of tokens, which are used to buy pets and mounts.< / p >
< @footer>
< a data-dismiss = "modal" x-bind = "click:showStripe" class = "btn btn-success btn-large" > Buy More Tokens< / a > < span class = 'token-cost' > Not enough tokens< / span >
< /@footer>
2013-02-17 05:55:52 +00:00
< / app:modals:modal >
2013-02-17 05:25:34 +00:00
<!-- $modal - template -->
2013-02-17 05:55:52 +00:00
< modal: nonvoid >
2013-02-17 06:51:40 +00:00
{{#if @noDismiss}}
< div data-action = "backdrop" class = "modal-backdrop" > < / div >
{{/}}
2013-02-17 05:25:34 +00:00
< div class = "modal {{#unless @noDismiss}}hide{{/}}" id = {{@modalId}} role = "dialog" >
2013-02-17 06:51:40 +00:00
{#if @header}
< div class = "modal-header" >
{{#unless @noDismiss}}< button type = "button" class = "close" data-dismiss = "modal" aria-hidden = "true" > × < / button > {{/}}
< h3 > {unescaped @header}< / h3 >
< / div >
{/}
2013-02-17 05:25:34 +00:00
< div class = "modal-body" > {@content}< / div >
{{#if @footer}}
2013-02-17 06:51:40 +00:00
< div class = "modal-footer" > {{@footer}}< / div >
2013-02-17 05:25:34 +00:00
{{/}}
< / div >