mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-01 11:40:25 +00:00
pets: move inventory into <menus>
This commit is contained in:
parent
102c693d7c
commit
ae53675014
1 changed files with 19 additions and 17 deletions
|
|
@ -31,26 +31,28 @@
|
|||
<div class='row-fluid'>
|
||||
<div class='span6 well'>
|
||||
<menu type="list">
|
||||
<h3>Eggs</h3>
|
||||
{#if not(_user.items.eggs)}
|
||||
<p>You don't have any eggs yet.</p>
|
||||
{/if}
|
||||
<li class="customize-menu">
|
||||
{#each _user.items.eggs as :egg}
|
||||
<div>
|
||||
<button class="customize-option Pet_Egg_{{:egg.name}}" x-bind="click: chooseEgg"></button>
|
||||
<p>{:egg.text}</p>
|
||||
</div>
|
||||
{/each}
|
||||
{#if not(_user.items.eggs)}
|
||||
<p>You don't have any eggs yet.</p>
|
||||
{/if}
|
||||
<menu label="Eggs">
|
||||
{#each _user.items.eggs as :egg}
|
||||
<div>
|
||||
<button class="customize-option Pet_Egg_{{:egg.name}}" x-bind="click: chooseEgg"></button>
|
||||
<p>{:egg.text}</p>
|
||||
</div>
|
||||
{/each}
|
||||
</menu>
|
||||
</li>
|
||||
<h3>Food</h3>
|
||||
{#if not(_user.items.food)}
|
||||
<p>You don't have any food yet.</p>
|
||||
{/if}
|
||||
<li class="customize-menu">
|
||||
{#each _user.items.food as :food}
|
||||
<button class="customize-option" x-bind="click: chooseFood">{:food}</button>
|
||||
{/each}
|
||||
{#if not(_user.items.food)}
|
||||
<p>You don't have any food yet.</p>
|
||||
{/if}
|
||||
<menu label="Food">
|
||||
{#each _user.items.food as :food}
|
||||
<button class="customize-option" x-bind="click: chooseFood">{:food}</button>
|
||||
{/each}
|
||||
</menu>
|
||||
</li>
|
||||
</menu>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue