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 / >
2013-03-08 17:55:04 +00:00
< app:pets:modals / >
2013-05-02 15:48:24 +00:00
< app:alerts: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-03-16 23:21:27 +00:00
< app:rewards:userTokens / >
2013-02-17 05:25:34 +00:00
< 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-03-16 23:21:27 +00:00
< app:rewards:userTokens / >
2013-03-28 07:49:57 +00:00
< p > Oops, out of tokens, which are used to buy special items! Habit is an open source project, and can use all the help it can get - buy more tokens to receive this pet, and consider it a donation to the contributors< / p >
2013-02-17 05:25:34 +00:00
< @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
2013-03-16 23:10:58 +00:00
< app:modals:modal modalId = "why-ads-modal" header = "Why Ads?" >
< p >
Habit an open source project, and can use all the help it can get - consider this a donation to the contributors. You also get 20 tokens from the purchase, which you can use to buy special items.
< / p >
2013-03-28 07:49:57 +00:00
< p >
"Hey, I backed the Kickstarter!" - follow < a target = "_blank" href = "http://community.habitrpg.com/node/22" > these instructions< / a > .
< / p >
2013-03-16 23:10:58 +00:00
< @footer>
< button data-dismiss = "modal" class = "btn btn-success" > Ok< / button >
< /@footer>
< / 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 >