summaryrefslogtreecommitdiff
path: root/web/html
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-11-23 00:12:05 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-11-23 00:12:05 -0500
commit1fc3ca62eeb334f55fc1ac6503df00f7e06edbb1 (patch)
treeca1853072a5c8cd87764f7796861c2c3c9821cdf /web/html
parent7e38e6d48957f60feaddda9a3eaf31d12b5b8548 (diff)
Make the instance name and domain configurable.
Diffstat (limited to 'web/html')
-rw-r--r--web/html/home.php28
-rw-r--r--web/html/login.php4
-rw-r--r--web/html/passreset.php2
-rw-r--r--web/html/pkgdel.php4
-rw-r--r--web/html/rss.php8
5 files changed, 26 insertions, 20 deletions
diff --git a/web/html/home.php b/web/html/home.php
index 3252876..6a2de59 100644
--- a/web/html/home.php
+++ b/web/html/home.php
@@ -15,14 +15,17 @@ html_header( __("Home") );
<div id="content-left-wrapper">
<div id="content-left">
<div id="intro" class="box">
- <h2>AUR <?= __("Home"); ?></h2>
+ <h2><?= config_get('options', 'branding_shortname'); ?> <?= __("Home"); ?></h2>
<p>
<?php
echo __(
- 'Welcome to the AUR! Please read the %sAUR User Guidelines%s and %sAUR TU Guidelines%s for more information.',
+ 'Welcome to the %s! Please read the %s%s User Guidelines%s and %s%s TU Guidelines%s for more information.',
+ config_get('options', 'branding_shortname'),
'<a href="https://wiki.archlinux.org/index.php/AUR_User_Guidelines">',
+ config_get('options', 'branding_shortname'),
'</a>',
'<a href="https://wiki.archlinux.org/index.php/AUR_Trusted_User_Guidelines">',
+ config_get('options', 'branding_shortname'),
'</a>'
);
?>
@@ -58,7 +61,7 @@ html_header( __("Home") );
</p>
<ul>
<li><em><?= __('Orphan Request') ?></em>: <?= __('Request a package to be disowned, e.g. when the maintainer is inactive and the package has been flagged out-of-date for a long time.') ?></li>
- <li><em><?= __('Deletion Request') ?></em>: <?= __('Request a package to be removed from the Arch User Repository. Please do not use this if a package is broken and can be fixed easily. Instead, contact the package maintainer and file orphan request if necessary.') ?></li>
+ <li><em><?= __('Deletion Request') ?></em>: <?= __('Request a package to be removed from the %s. Please do not use this if a package is broken and can be fixed easily. Instead, contact the package maintainer and file orphan request if necessary.', config_get('options', 'branding_longname')) ?></li>
<li><em><?= __('Merge Request') ?></em>: <?= __('Request a package to be merged into another one. Can be used when a package needs to be renamed or replaced by a split package.') ?></li>
</ul>
<p>
@@ -76,7 +79,8 @@ html_header( __("Home") );
<p>
<?php
echo __(
- 'Git over SSH is now used to submit packages to the AUR. See the %sSubmitting packages%s section of the Arch User Repository ArchWiki page for more details.',
+ 'Git over SSH is now used to submit packages to the %s. See the %sSubmitting packages%s section of the Arch User Repository ArchWiki page for more details.',
+ config_get('options', 'branding_shortname'),
'<a href="https://wiki.archlinux.org/index.php/Arch_User_Repository#AUR_4">',
'</a>'
);
@@ -84,7 +88,7 @@ html_header( __("Home") );
</p>
<?php if (config_section_exists('fingerprints')): ?>
<p>
- <?= __('The following SSH fingerprints are used for the AUR:') ?>
+ <?= __('The following SSH fingerprints are used for the %s:', config_get('options', 'branding_shortname')) ?>
</p>
<ul>
<?php foreach (config_items('fingerprints') as $type => $fingerprint): ?>
@@ -98,11 +102,12 @@ html_header( __("Home") );
<p>
<?php
echo __(
- 'General discussion regarding the Arch User Repository (AUR) and Trusted User structure takes place on %saur-general%s. For discussion relating to the development of the AUR web interface, use the %saur-dev%s mailing list.',
- '<a href="https://mailman.archlinux.org/mailman/listinfo/aur-general">',
- '</a>',
- '<a href="https://mailman.archlinux.org/mailman/listinfo/aur-dev">',
- '</a>'
+ 'General discussion regarding the %s (%s) and Trusted User structure takes place on %s. For discussion relating to the development of the %s web interface (aurweb), use the %s mailing list.',
+ config_get('options', 'branding_longname'),
+ config_get('options', 'branding_shortname'),
+ '<a href="https://mailman.archlinux.org/mailman/listinfo/aur-general">aur-general</a>',
+ config_get('options', 'branding_shortname'),
+ '<a href="https://mailman.archlinux.org/mailman/listinfo/aur-dev">aur-dev</a>'
);
?>
</p>
@@ -112,7 +117,8 @@ html_header( __("Home") );
<p>
<?php
echo __(
- 'If you find a bug in the AUR web interface, please fill out a bug report on our %sbug tracker%s. Use the tracker to report bugs in the AUR %sonly%s. To report packaging bugs contact the package maintainer or leave a comment on the appropriate package page.',
+ 'If you find a bug in the %s web interface (aurweb), please fill out a bug report on our %sbug tracker%s. Use the tracker to report bugs in aurweb %sonly%s. To report packaging bugs contact the package maintainer or leave a comment on the appropriate package page.',
+ config_get('options', 'branding_shortname'),
'<a href="https://bugs.archlinux.org/index.php?project=2">',
'</a>',
'<strong>',
diff --git a/web/html/login.php b/web/html/login.php
index ab7bac9..f0dbb7c 100644
--- a/web/html/login.php
+++ b/web/html/login.php
@@ -11,10 +11,10 @@ if (!$disable_http_login || (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'])) {
$login_error = $login['error'];
}
-html_header('AUR ' . __("Login"));
+html_header(config_get('options', 'branding_shortname') . ' ' . __("Login"));
?>
<div id="dev-login" class="box">
- <h2>AUR <?= __('Login') ?></h2>
+ <h2><?= config_get('options', 'branding_shortname'); ?> <?= __('Login') ?></h2>
<?php if (isset($_COOKIE["AURSID"])): ?>
<p>
<?= __("Logged-in as: %s", '<strong>' . username_from_sid($_COOKIE["AURSID"]) . '</strong>'); ?>
diff --git a/web/html/passreset.php b/web/html/passreset.php
index 951266a..e77e5b6 100644
--- a/web/html/passreset.php
+++ b/web/html/passreset.php
@@ -46,7 +46,7 @@ if (isset($_GET['resetkey'], $_POST['email'], $_POST['password'], $_POST['confir
if (empty($email)) {
$error = __('Missing a required field.');
} else {
- $subject = 'AUR Password Reset';
+ $subject = __('%s Password Reset', config_get('options', 'branding_shortname'));
$body = __('A password reset request was submitted for the ' .
'account %s associated with your e-mail address. ' .
'If you wish to reset your password follow the ' .
diff --git a/web/html/pkgdel.php b/web/html/pkgdel.php
index eb20967..f631af2 100644
--- a/web/html/pkgdel.php
+++ b/web/html/pkgdel.php
@@ -14,8 +14,8 @@ if (has_credential(CRED_PKGBASE_DELETE)): ?>
<div class="box">
<h2><?= __('Delete Package: %s', htmlspecialchars($pkgbase_name)) ?></h2>
<p>
- <?= __('Use this form to delete the package base %s%s%s and the following packages from the AUR: ',
- '<strong>', htmlspecialchars($pkgbase_name), '</strong>'); ?>
+ <?= __('Use this form to delete the package base %s%s%s and the following packages from the %s: ',
+ '<strong>', htmlspecialchars($pkgbase_name), '</strong>', config_get('options', 'branding_shortname')); ?>
</p>
<ul>
<?php foreach(pkgbase_get_pkgnames($base_id) as $pkgname): ?>
diff --git a/web/html/rss.php b/web/html/rss.php
index 2470d99..a88a6ef 100644
--- a/web/html/rss.php
+++ b/web/html/rss.php
@@ -26,15 +26,15 @@ $rss->xslStyleSheet = false;
$rss->encoding = "UTF-8";
#All the general RSS setup
-$rss->title = "AUR Newest Packages";
-$rss->description = "The latest and greatest packages in the AUR";
+$rss->title = config_get('options', 'branding_shortname') . " Newest Packages";
+$rss->description = "The latest and greatest packages in the " . config_get('options', 'branding_shortname');
$rss->link = "${protocol}://{$host}";
$rss->syndicationURL = "{$protocol}://{$host}" . get_uri('/rss/');
$image = new FeedImage();
-$image->title = "AUR";
+$image->title = config_get('options', 'branding_shortname');
$image->url = "{$protocol}://{$host}/images/AUR-logo-80.png";
$image->link = $rss->link;
-$image->description = "AUR Newest Packages Feed";
+$image->description = config_get('options', 'branding_shortname') . " Newest Packages Feed";
$rss->image = $image;
#Get the latest packages and add items for them