habitica/views/app/modals.html

87 lines
3.7 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'>
2013-05-10 14:38:22 +00:00
<p>You've lost your GP, 1 level and 1 gear piece. Be sure to complete your dailies to prevent this from happening again!</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">
<app:rewards: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>
2013-05-10 16:30:13 +00:00
<@footer>
2013-02-17 05:55:52 +00:00
{#if lt(_user.balance,1)}
2013-05-10 16:30:13 +00:00
<a data-dismiss="modal" x-bind="click:showStripe" class="btn btn-success btn-large">Buy More Gems</a><span class='token-cost'>Not enough Gems</span>
2013-02-17 05:55:52 +00:00
{else}
2013-05-10 16:30:13 +00:00
<a data-dismiss="modal" x-bind=click:buyReroll class="btn btn-danger btn-large">Re-Roll</a><span class='token-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-tokens-modal' header="Out Of Gems">
<app:rewards:userTokens/>
2013-05-10 16:30:13 +00:00
<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>
2013-05-10 16:30:13 +00:00
<a data-dismiss="modal" x-bind="click:showStripe" class="btn btn-success btn-large">Buy More Gems</a><span class='token-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-10 16:30:13 +00:00
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 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>
{{/}}
</div>