challenges: simply display names of challenges in groups, with "visit

the challenges tab for more info".
This commit is contained in:
Tyler Renelle 2013-06-02 18:28:33 -04:00
parent e4c7275201
commit 47453d6133

View file

@ -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>