diff options
| author | scottbot <sbostler@gmail.com> | 2010-05-19 21:02:54 -0400 |
|---|---|---|
| committer | scottbot <sbostler@gmail.com> | 2010-05-19 21:02:54 -0400 |
| commit | 90de261feb9aabc17c3839848cf203e2404b4196 (patch) | |
| tree | e00f5634f2f3b83dce9bdcad95c38ebc570ca69d | |
| parent | c29bcd18d2b35dd901004f2cd021409c52e96f50 (diff) | |
Add numeric score to profile
| -rw-r--r-- | src/site.clj | 1 | ||||
| -rw-r--r-- | template/profile.st | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/site.clj b/src/site.clj index 11b6859..5f4463b 100644 --- a/src/site.clj +++ b/src/site.clj @@ -473,6 +473,7 @@ ORDER BY created_on DESC; (.setAttribute st "dumps" dumps)) (if (> (count raw-dumps) *dumps-per-page*) (.setAttribute st "next" (inc offset))) + (.setAttribute st "score" score) (.setAttribute st "score_ent" (score-to-entity score)) (if (not= offset 0) (.setAttribute st "prev" (max (dec offset) 0))) diff --git a/template/profile.st b/template/profile.st index 482665b..5744691 100644 --- a/template/profile.st +++ b/template/profile.st @@ -69,6 +69,7 @@ $if(score_ent)$ <div id="score" style="font-size: 500%"> <h3>score</h3> + $score$ $score_ent$ </div> $endif$ |
