diff options
author | Camil Staps | 2017-02-07 22:30:58 +0100 |
---|---|---|
committer | Camil Staps | 2017-02-07 22:30:58 +0100 |
commit | ace4c15d01d2fc4c9a8a34273daf93a2f8836479 (patch) | |
tree | 4d0cecde160afc6cf39a717bb459e99b153a27b4 | |
parent | Buildslave update log; run every 10 minutes (diff) |
Frontend fixes
-rw-r--r-- | frontend/index.php | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/frontend/index.php b/frontend/index.php index 373052f..21d8a8a 100644 --- a/frontend/index.php +++ b/frontend/index.php @@ -77,7 +77,7 @@ else : foreach ($pkgs as $pkg) { echo "<tr> - <td>{$pkg->name}</td> + <td><a href='/repo/{$pkg->name}'>{$pkg->name}</a></td> <td>" . $pkg->getAuthor()->name . "</td> <td>{$pkg->desc}</td>"; @@ -87,13 +87,13 @@ else : echo "<td>&endash;</td>"; echo "<td>"; - foreach ($pkg->getVersions() as $v) - echo "{$v->major}.{$v->minor}.{$v->revision} ({$v->time_added})"; + foreach ($pkg->getVersions() as $v) { + $vs = $v->major . '.' . $v->minor . '.' . $v->revision; + echo "<a href='/repo/{$pkg->name}/$vs'>$vs</a> ({$v->time_added})"; + } echo "</td>"; - echo - "<td>{$pkg->name}</td> - </tr>"; + echo "</tr>"; } ?> </table> @@ -103,29 +103,6 @@ endif; <hr/> -<h2>Create an account</h2> -You only need an account to add new packages. -<form method="post"> - <table> - <tr> - <th>Name</th> - <td><input name="create_name"/></td> - <td>Posted publicly.</td> - </tr> - <tr> - <th>Email</th> - <td><input type="email" name="create_email"/></td> - <td>Kept private.</td> - </tr> - <tr> - <th></th> - <td><input type="submit" name="create" value="Create"/></td> - </tr> - </table> -</form> - -<hr/> - <?php if (isset($_SESSION['logged_in_id'])) : ?> @@ -205,6 +182,29 @@ if (isset($_SESSION['logged_in_id'])) : <?php else : // Not logged in ?> + <h2>Create an account</h2> + You only need an account to add new packages. + <form method="post"> + <table> + <tr> + <th>Name</th> + <td><input name="create_name"/></td> + <td>Posted publicly.</td> + </tr> + <tr> + <th>Email</th> + <td><input type="email" name="create_email"/></td> + <td>Kept private.</td> + </tr> + <tr> + <th></th> + <td><input type="submit" name="create" value="Create"/></td> + </tr> + </table> + </form> + + <hr/> + <h2>Login</h2> <form method="post"> <table> |