mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-01 23:40:25 +00:00
71 lines
No EOL
3.2 KiB
HTML
71 lines
No EOL
3.2 KiB
HTML
<modals:>
|
|
|
|
<app:avatar:modals />
|
|
<app:settings:modals />
|
|
<app:pets:modals />
|
|
<app:alerts:modals />
|
|
|
|
<!-- Game Over Modal -->
|
|
<div style="{#unless equal(_user.stats.lvl,0)}display:none;{/}">
|
|
<app:modals:modal noDismiss=true modalId='dead-modal'>
|
|
<figure class="notification-character">
|
|
<img src="/img/sprites/dead.png">
|
|
</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>
|
|
</app:modals:modal>
|
|
</div>
|
|
|
|
<!-- Re-Roll modal -->
|
|
<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>
|
|
<@footer>
|
|
{#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>
|
|
|
|
<!-- Buy more tokens modal -->
|
|
<app:modals:modal modalId='more-tokens-modal' header="Out Of Tokens">
|
|
<app:rewards:userTokens/>
|
|
<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>
|
|
<@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>
|
|
</app:modals:modal>
|
|
|
|
<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>
|
|
<p>
|
|
"Hey, I backed the Kickstarter!" - follow <a target="_blank" href="http://community.habitrpg.com/node/22">these instructions</a>.
|
|
</p>
|
|
<@footer>
|
|
<button data-dismiss="modal" class="btn btn-success">Ok</button>
|
|
</@footer>
|
|
</app:modals:modal>
|
|
|
|
|
|
|
|
<!-- $modal-template -->
|
|
<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">×</button>{{/}}
|
|
<h3>{unescaped @header}</h3>
|
|
</div>
|
|
{/}
|
|
<div class="modal-body">{@content}</div>
|
|
{{#if @footer}}
|
|
<div class="modal-footer">{{@footer}}</div>
|
|
{{/}}
|
|
</div> |