diff options
author | Eric Wong <e@80x24.org> | 2016-07-21 01:55:48 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-07-21 02:00:26 +0000 |
commit | 10e38b3b0fdad7e2881f0571f9b2717df2151f7a (patch) | |
tree | 827d6653b2f01338bf684dba8fca20690c8b367c /lib/PublicInbox | |
parent | aed2002eec05e5c51d6cac8775866667d6518361 (diff) | |
download | public-inbox-10e38b3b0fdad7e2881f0571f9b2717df2151f7a.tar.gz |
This should make it easier for folks to run their own forks.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r-- | lib/PublicInbox/WwwStream.pm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/PublicInbox/WwwStream.pm b/lib/PublicInbox/WwwStream.pm index de457b48..ec9ae0cf 100644 --- a/lib/PublicInbox/WwwStream.pm +++ b/lib/PublicInbox/WwwStream.pm @@ -7,8 +7,9 @@ use strict; use warnings; use PublicInbox::Hval qw(ascii_html); use URI; -use constant PI_URL => 'https://public-inbox.org/'; our $TOR_URL = 'https://www.torproject.org/'; +our $CODE_URL = 'https://public-inbox.org/'; +our $PROJECT = 'public-inbox'; sub close {} @@ -87,12 +88,12 @@ sub _html_end { $urls .= "\n note: .onion URLs require Tor: "; $urls .= qq[<a\nhref="$TOR_URL">$TOR_URL</a>]; } - my $url = PublicInbox::Hval::prurl($ctx->{env}, PI_URL); + my $url = PublicInbox::Hval::prurl($ctx->{env}, $CODE_URL); '<hr><pre>'.join("\n\n", $desc, $urls, - 'Served with public-inbox: '. - qq(git clone <a\nhref="$url">$url</a> public-inbox) + 'Code for this site: '. + qq(git clone <a\nhref="$url">$url</a> $PROJECT) ).'</pre></body></html>'; } |