mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-01 11:40:25 +00:00
challenges: simply display names of challenges in groups, with "visit
the challenges tab for more info".
This commit is contained in:
parent
e4c7275201
commit
47453d6133
1 changed files with 14 additions and 10 deletions
|
|
@ -101,8 +101,8 @@
|
|||
|
||||
{{#if equal(@type,'guild')}}
|
||||
<div>
|
||||
<input type='radio' name='new-challenge-privacy' checked="{equal('public',_new.group.privacy)}" >Public</input>
|
||||
<input type='radio' name='new-challenge-privacy' checked="{equal('private',_new.group.privacy)}" >Invite Only</input>
|
||||
<input type='radio' name='new-group-privacy' checked="{equal('public',_new.group.privacy)}" >Public</input>
|
||||
<input type='radio' name='new-group-privacy' checked="{equal('private',_new.group.privacy)}" >Invite Only</input>
|
||||
</div>
|
||||
{{/}}
|
||||
<input type="submit" class="btn" value="Create" />
|
||||
|
|
@ -231,15 +231,19 @@
|
|||
</div>
|
||||
<div id="accordion-{{@group.id}}-challenges" class="accordion-body collapse">
|
||||
<div class="accordion-inner">
|
||||
{#if @group.challenges}
|
||||
<table class="table table-striped">
|
||||
{{#each @group.challenges as :challenge}}
|
||||
{#each @group.challenges as :challenge}
|
||||
<tr><td>
|
||||
<a x-bind='click:goToChallenge'>{{:challenge.name}}</a>
|
||||
{:challenge.name}
|
||||
</td></tr>
|
||||
{{/}}
|
||||
{/}
|
||||
</table>
|
||||
Visit the <span class=label><i class=icon-bullhorn></i> Challenges</span> for more information.
|
||||
{else}
|
||||
No challenges yet, visit the <span class=label><i class=icon-bullhorn></i> Challenges</span> tab to create one.
|
||||
{/}
|
||||
</div>
|
||||
<input type='button' class=btn value='Create Challenge' />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue