X-Git-Url: http://git.pjr.cc/?p=gwvp.git;a=blobdiff_plain;f=gwvplib%2Fgwvprepoadmin.php;fp=gwvplib%2Fgwvprepoadmin.php;h=cc78ba4d066139b8ce118cc873dc2fcad852b0d3;hp=bcf9d2554b5ef9189e2c11b5032383f58f9de799;hb=c968cf55b0f366830676c8555cf61e9765277e44;hpb=e8df3c10e12e4381cc07845a0f04e85f05c81f35 diff --git a/gwvplib/gwvprepoadmin.php b/gwvplib/gwvprepoadmin.php index bcf9d25..cc78ba4 100644 --- a/gwvplib/gwvprepoadmin.php +++ b/gwvplib/gwvprepoadmin.php @@ -28,6 +28,9 @@ function gwvp_RepoAdminCallMe() case "updateperms": return "gwvp_UpdateRepoPerms"; break; + case "details": + return "gwvp_RepoDetailsPage"; + break; default: return "gwvp_RepoAdminPage"; } @@ -57,6 +60,16 @@ function gwvp_CreateRepoPage() gwvp_goMainPage("gwvp_CreateRepoPageBody"); } +function gwvp_RepoDetailsPage() +{ + gwvp_goMainPage("gwvp_RepoDetailsPageBody"); +} + +function gwvp_RepoDetailsPageBody() +{ + echo "I am a repo details page"; +} + function gwvp_UpdateRepoPerms() { global $LOGIN_TYPE, $BASE_URL; @@ -241,6 +254,7 @@ function gwvp_RepoAdminPageBody() // next we need a repo list - with perms checking - ug // 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 + echo "

All Repositories

"; $rlist = gwvp_GetRepoList(); echo ""; foreach($rlist as $u_res) { @@ -248,7 +262,15 @@ function gwvp_RepoAdminPageBody() $rname = $u_res["name"]; $rdesc = $u_res["description"]; $rown = gwvp_getUserName($u_res["owner"]); - echo ""; + $manordetslink = "details"; + $manordets = "Details"; + if(isset($_SESSION["id"])) { + if(gwvp_canManageRepo($_SESSION["id"], $rid)) { + $manordetslink = "manage"; + $manordets = "Manage"; + } + } + echo ""; } echo "
Repo NameRepo DescriptionRepo Owner
$rname$rdesc$rownDetails
$rname$rdesc$rown$manordets
"; @@ -304,6 +326,8 @@ function gwvp_ManageRepoPageBody() echo "
"; echo ""; + + echo "

Repository Permissions

"; echo "
"; echo ""; echo "";
VisibilityRead/CloneWrite/Push