Got that first API call done
Had to work out the API parent class a bit. Also closing #8 as the API docs are about done. Time to knock out the rest of the API calls so I can start using this shit.
This commit is contained in:
parent
7b18541a61
commit
1006cbd436
5 changed files with 100 additions and 21 deletions
|
@ -22,15 +22,14 @@ if ($this->module['leaderboards'])
|
|||
</tr></thead>
|
||||
<tbody>
|
||||
<?php
|
||||
foreach ($this->module['leaderboards'] as $uid => $updated_at)
|
||||
foreach ($this->module['leaderboards'] as $uid => $data)
|
||||
{
|
||||
$data = $this->module['data'][$uid];
|
||||
?>
|
||||
<tr class="lead">
|
||||
<td><?php echo $uid; ?></td>
|
||||
<td><a href="/leaderboard/<?php echo $uid; ?>"><?php echo $data['name']; ?></a></td>
|
||||
<td><?php echo Time::ago($data['created_at']); ?></td>
|
||||
<td><?php echo Time::ago($updated_at); ?></td>
|
||||
<td><?php echo Time::ago($data['updated_at']); ?></td>
|
||||
<td class="text-right">
|
||||
<div class="btn-group">
|
||||
<a class="btn btn-danger" href="/leaderboard/delete/<?php echo $uid; ?>">Delete</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue