aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorU-AD\carlsoan <carlsoan@gophersjos7275.ad.uc.edu>2018-06-28 12:44:56 -0400
committerU-AD\carlsoan <carlsoan@gophersjos7275.ad.uc.edu>2018-06-28 12:44:56 -0400
commit38caf0aa1ddd168907c10f119b8329227d0b9b65 (patch)
treef39601de58f9c1a0b0672f2e66bd21ec62c179fd
parentcb0a8dec3d342d498bb0cd07eca89fdcdfca8e34 (diff)
modified portal help text
-rw-r--r--cgit.php.m449
1 files changed, 36 insertions, 13 deletions
diff --git a/cgit.php.m4 b/cgit.php.m4
index 4c1ca02..7dcda4a 100644
--- a/cgit.php.m4
+++ b/cgit.php.m4
@@ -1,4 +1,22 @@
-<table>
+<html>
+ <head>
+ <title>Cgit Portal</title>
+ <style>
+ .clonelinkhelp {
+ display:none;
+ position: relative;
+ }
+ .clonelink:hover .clonelinkhelp {
+ border:1px solid #000000;
+ display:block;
+ position:absolute;
+ background-color: #cccccc;
+ z-index:0;
+ }
+ </style>
+ </head>
+ <body>
+ <table>
<?php
$fileContents = array_unique(preg_grep("/^\/git.*\.git\//",explode("'",file_get_contents("CGITURL"))));
foreach ($fileContents as $thisLine) {
@@ -7,18 +25,23 @@ foreach ($fileContents as $thisLine) {
$repoTreeURL = $repoURL . "tree/";
$repoName = str_replace("/git/","",str_replace("/.git/","",$thisLine));
?>
- <tr>
- <td>
- <a href="<?php echo "$repoAboutURL"; ?>"><?php echo "$repoName"; ?></a>
- </td>
- <td>
- <a href="<?php echo "$repoTreeURL"; ?>">Code</a>
- </td>
- <td>
- <a onClick="return false;" href="<?php echo "$repoURL"; ?>" title="Right-click and copy clone URL">Clone</a>
- </td>
- </tr>
+ <tr>
+ <td>
+ <a href="<?php echo "$repoAboutURL"; ?>"><?php echo "$repoName"; ?></a>
+ </td>
+ <td>
+ <a href="<?php echo "$repoTreeURL"; ?>">Code</a>
+ </td>
+ <td>
+ <div class="clonelink">
+ <a onClick="return false;" href="<?php echo "$repoURL"; ?>">Clone</a>
+ <span class="clonelinkhelp">Right-click and copy clone link</span>
+ </div>
+ </td>
+ </tr>
<?php
}
?>
-</table>
+ </table>
+ </body>
+</html>