From: Joey Schulze Date: Tue, 10 May 2016 19:12:17 +0000 (+0200) Subject: Move page source to git X-Git-Url: https://git.infodrom.org/?p=infodrom.org%2Fservice.infodrom.org;a=commitdiff_plain;h=540f38f995ab2f03ef1c86bb1b742b38339667ed Move page source to git --- diff --git a/Styles/basic.style b/Styles/basic.style index c06e815..399ce4a 100644 --- a/Styles/basic.style +++ b/Styles/basic.style @@ -26,7 +26,7 @@ <: - $cvsurl = "http://cvs.infodrom.org/service.infodrom.org/%s%s?cvsroot=infodrom.org"; + $giturl = "http://git.infodrom.org/?p=infodrom.org/service.infodrom.org;a=%s;f=%s%s"; @months = ("Dummy", "January","February","March","April","May","June", "July","August","September","October","November","December"); @@ -34,17 +34,14 @@ $date = sprintf ("%s %d, %d", $months[$2], $3, $1); if (length ("")) { - if ("" ne ".") { - $url = ""; - } else { - $url = ''; - } + $url_history = ''; } else { "/" =~ /.*\/(src\/.*)$/; - $url = sprintf ($cvsurl, $1, ""); + $url_history = sprintf($giturl, "history", $1, ""); + $url_source = sprintf($giturl, "blob_plain", $1, ""); } - if (length ($url)) { - $url = sprintf (', page source', $url); + if (length ($url_history)) { + $url = sprintf(', page source history', $url_source, $url_history); } :>