trying a few table layouts and designs
[gwvp.git] / gwvplib / gwvprepoadmin.php
index 7a2b476..66cb85b 100644 (file)
@@ -144,13 +144,14 @@ function gwvp_RepoAdminPageBody()
                echo "<h3>Your Repo's</h3>";
                $ownreps = gwvp_getOwnedRepos($_SESSION["id"]);
                if($ownreps != false) {
-                       echo "<table>";
-                       echo "<tr><th>Repo Name</th></tr>";
+                       echo "<table border=\"1\">";
+                       echo "<tr><th>Repo Name</th><th>Repo description</th></tr>";
                        foreach($ownreps as $repos) {
                                $mjay = print_r($repos, true);
                                error_log("snafu: $mjay");
                                $reponame = $repos["name"];
-                               echo "<tr><td>$reponame</td></tr>";
+                               $repodesc = $repos["description"];
+                               echo "<tr><td>$reponame</td><td>$repodesc</td><td><a href=\"$BASE_URL/admin/repos/manageown\">Manage</a></td></tr>";
                        }
                        echo "</table>";
                } else {
@@ -164,13 +165,13 @@ function gwvp_RepoAdminPageBody()
        // i must also remember that the home page will also contain a list of repos and that this page is solely for maintance
        // and creation of repos - so i dont need to get over-worked about the info stored on this page outside of those activities
        $rlist = gwvp_GetRepoList();
-       echo "<table border=\"1\"><tr><th>Repo Name</th><th>Repo Description</th><th>Repo Owner</th><th>Control</th></tr>";
+       echo "<table border=\"1\"><tr><th>Repo Name</th><th>Repo Description</th><th>Repo Owner</th></tr>";
        foreach($rlist as $u_res) {
                $rid = $u_res["id"];
                $rname = $u_res["name"];
                $rdesc = $u_res["description"];
                $rown = gwvp_getUserName($u_res["owner"]);
-               echo "<tr><td>$rname</td><td>$rdesc</td><td>$rown</td><td><a href=\"$BASE_URL/admin/repos/modify/$rid\">Modify</a></td></tr>";
+               echo "<tr><td>$rname</td><td>$rdesc</td><td>$rown</td><td><a href=\"$BASE_URL/admin/repos/modify/$rid\">Details</a></td></tr>";
        }
        echo "</table>";