challenges: can delete challenge

This commit is contained in:
Tyler Renelle 2013-05-31 18:31:41 -04:00
parent a4e6025185
commit 28f45baf7b

View file

@ -85,6 +85,9 @@
<textarea cols=3 class='option-content' placeholder='Description'>{@challenge.description}</textarea> <textarea cols=3 class='option-content' placeholder='Description'>{@challenge.description}</textarea>
<input type=number class='option-content' placeholder='Gems Prize' value={@challenge.prize} /> <input type=number class='option-content' placeholder='Gems Prize' value={@challenge.prize} />
</div> </div>
{{#with @challenge}}
<a class='btn btn-small btn-danger' x-bind=click:removeAt >Delete</a>
{{/}}
{/} {/}
<!-- elseif breaks here, have to start a new if ---> <!-- elseif breaks here, have to start a new if --->
{#if and(not(_editing.challenges[@challenge.id]),equal(@challenge.uid,_user.id))} {#if and(not(_editing.challenges[@challenge.id]),equal(@challenge.uid,_user.id))}