|
Revision 77, 0.9 KB
(checked in by dez, 7 years ago)
|
|
Adds a bunch of Smarty templates
|
| Line | |
|---|
| 1 | {* Banana viewer template, classic style *} |
|---|
| 2 | |
|---|
| 3 | {if $mode == "detail"} |
|---|
| 4 | <div class="box"> |
|---|
| 5 | <div class="boxhead"><h2>Banana Details for {$who}</h2></div> |
|---|
| 6 | <div class="boxcontent"> |
|---|
| 7 | |
|---|
| 8 | {if $awards|@count < 1} |
|---|
| 9 | <p>{$who} doesn't have any bananas yet</p> |
|---|
| 10 | {else} |
|---|
| 11 | <table cellpadding="10"> |
|---|
| 12 | <tr> |
|---|
| 13 | <th colspan="2">Bananas</th> |
|---|
| 14 | <th>When</th> |
|---|
| 15 | <th>Why</th> |
|---|
| 16 | </tr> |
|---|
| 17 | {foreach name=awards from=$awards key=key item=award} |
|---|
| 18 | <tr> |
|---|
| 19 | <td>{$award.score}</td> |
|---|
| 20 | <td>{bananaprint score=$award.score}</td> |
|---|
| 21 | <td>{$award.whn}</td> |
|---|
| 22 | <td>Awarded by {$award.who}:<br/> |
|---|
| 23 | {$award.why} |
|---|
| 24 | </td> |
|---|
| 25 | </tr> |
|---|
| 26 | {/foreach} |
|---|
| 27 | </table> |
|---|
| 28 | {/if} |
|---|
| 29 | </div> |
|---|
| 30 | </div> |
|---|
| 31 | {/if} |
|---|
| 32 | |
|---|
| 33 | <h3>Banana Summary</h3> |
|---|
| 34 | <table border="0" cellpadding="5"> |
|---|
| 35 | |
|---|
| 36 | {foreach name=users from=$users key=key2 item=user} |
|---|
| 37 | <tr> |
|---|
| 38 | <td><a href="/Info/Bananas/{$user.username}">{$user.username}</a></td> |
|---|
| 39 | <td>{$user.sum}</td> |
|---|
| 40 | <td>{bananaprint score=$user.sum}</td> |
|---|
| 41 | </tr> |
|---|
| 42 | {/foreach} |
|---|
| 43 | </table> |
|---|