habitica/views/app/modals.html

88 lines
4 KiB
HTML
Raw Normal View History

2013-02-17 05:55:52 +00:00
<modals:>
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 />
<app:alerts:modals />
2013-05-03 15:19:19 +00:00
<app:rewards:modals />
2013-05-03 17:18:28 +00:00
<app:tasks:modals />
<!-- Game Over Modal -->
<div style="{#unless lt(_user.stats.hp,1)}display:none;{/}">
2013-02-17 05:55:52 +00:00
<app:modals:modal noDismiss=true modalId='dead-modal'>
<div class='row-fluid'>
<div class='span4'>
<figure class="notification-character">
<img src="/img/sprites/dead.png">
</figure>
</div>
<div class='span8'>
<h2>You Died!</h2>
</div>
</div>
<div class='row-fluid'>
<div class='span4'>
<p><a x-bind=click:revive class="btn btn-danger btn-large notification-action">Continue</a></p>
</div>
<div class='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!</p>
</div>
</div>
2013-02-17 05:55:52 +00:00
</app:modals:modal>
</div>
<!-- Re-Roll modal -->
2013-02-17 05:55:52 +00:00
<app:modals:modal modalId='reroll-modal' header="Reset Your Tasks">
2013-05-12 11:39:54 +00:00
<app:rewards:user-gems />
<p>Purchasing a Re-Roll will reset all your tasks to a neutral (yellow) state, as if you'd just added them. Consider this an option of last resort! <a target="_blank" href="https://github.com/lefnire/habitrpg#all-my-tasks-are-red-im-dying-too-fast">Red tasks provide good incentive to improve</a>. But if all that red fills you with despair, and the beginning of each new day proves lethal, spend the Gems and catch a reprieve!</p>
2013-05-10 16:30:13 +00:00
<@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 Gems</a><span class='gem-cost'>Not enough Gems</span>
2013-02-17 05:55:52 +00:00
{else}
<a data-dismiss="modal" x-bind=click:buyReroll class="btn btn-danger btn-large">Re-Roll</a><span class='gem-cost'>4 Gems</span>
2013-02-17 05:55:52 +00:00
{/}
</@footer>
</app:modals:modal>
2013-05-10 16:30:13 +00:00
<!-- Buy more Gems modal -->
<app:modals:modal modalId='more-gems-modal' header="Out Of Gems">
2013-05-12 11:39:54 +00:00
<app:rewards:user-gems />
<p>Oops, out of Gems, which are used to buy special items! Habit is an open source project, and can use all the help it can get - buy more Gems to receive this pet, and consider it a donation to the contributors.</p>
<@footer>
<a data-dismiss="modal" x-bind="click:showStripe" class="btn btn-success btn-large">Buy More Gems</a><span class='gem-cost'>Not enough Gems</span>
</@footer>
2013-02-17 05:55:52 +00:00
</app:modals:modal>
2013-03-16 23:10:58 +00:00
<app:modals:modal modalId="why-ads-modal" header="Why Ads?">
<p>
2013-05-14 16:51:38 +00:00
Habit is an open source project, and can use all the help it can get - consider this a donation to the contributors. You also get 20 Gems from the purchase, which you can use to buy special items.
2013-03-16 23:10:58 +00:00
</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>
<!-- $modal-template -->
2013-02-17 05:55:52 +00:00
<modal: nonvoid>
{{#if @noDismiss}}
<div data-action="backdrop" class="modal-backdrop"></div>
{{/}}
<div class="modal {{#unless @noDismiss}}hide{{/}}" id={{@modalId}} role="dialog">
{#if @header}
<div class="modal-header">
{{#unless @noDismiss}}<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>{{/}}
<h3>{unescaped @header}</h3>
</div>
{/}
<div class="modal-body">{@content}</div>
{{#if @footer}}
<div class="modal-footer">{{@footer}}</div>
{{/}}
2013-05-14 16:51:38 +00:00
</div>