mason/dhandler, mason/.perl-lib/TrivGal: Publish and use `$SRCURL'.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 12 May 2022 10:51:42 +0000 (11:51 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 12 May 2022 10:51:42 +0000 (11:51 +0100)
mason/.perl-lib/TrivGal.pm
mason/dhandler

index 4a41612..b9231b0 100644 (file)
@@ -138,6 +138,9 @@ our $CACHEURL //= "$ROOTURL/tgal-cache";
 our $STATICURL //= "$ROOTURL/tgal-static";
 our $SCRIPTURL;
 
+export qw{$SRCURL};
+our $SRCURL = "https://git.distorted.org.uk/~mdw/tgal/";
+
 export qw{%SIZE};
 our %SIZE = (smallthumb => 96,
             medthumb => 144,
index 24b5026..88febcf 100755 (executable)
@@ -290,8 +290,7 @@ Failed to find &lsquo;<% $path |h %>&rsquo;.
     terms of the
     <a rel=license href="https://www.gnu.org/licenses/agpl-3.0.en.html">GNU Affero
     General Public License version 3</a>.
-    Browse or download
-    the <a href="https://git.distorted.org.uk/~mdw/tgal/">source code</a>.
+    Browse or download the <a href="<% $SRCURL %>">source code</a>.
   </div>
 % my $user =
 %   find_covering_file $IMGROOT, $path, ".tgal-footer.html";