challenges: slightly prettier graphs (i'm still not satisfied, but later)

This commit is contained in:
Tyler Renelle
2013-05-31 18:31:37 -04:00
parent fa0813dc9e
commit a4e6025185
2 changed files with 28 additions and 18 deletions
+10 -4
View File
@@ -122,12 +122,18 @@
<stats:>
<h5>{@header}</h5>
<div>
{#each @challenge[@taskType]s as :task}
<div>
<strong>{:task.text}</strong>: {round(@member[@taskType]s[:task.id].value)}
<div style='height:75px' class="challenge-{{@challenge.id}}-member-{{@member.id}}-history-{{:task.id}}"></div>
</div>
<table><tr>
<td>
<strong>{:task.text}</strong>: {round(@member[@taskType]s[:task.id].value)}
</td>
<td>
<div style='margin-left: 10px' class="challenge-{{@challenge.id}}-member-{{@member.id}}-history-{{:task.id}}"></div>
</td>
</tr></table>
{/}
</div>
<create-button:>
<a x-bind='click:challengeCreate' class='btn btn-large btn-success' data-type={{@type}} data-gid={{@gid}} >Create {{@text}} Challenge</a>