diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-11-23 00:12:05 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-11-23 01:25:47 -0500 |
commit | 4ea091174ce896e1293689de76f7a5122c4e834e (patch) | |
tree | 0909a356f15366590510cf78957d1857bc5e445d | |
parent | e3dfb09aec084fc6bd119309ce949eaab714eae7 (diff) |
Make the instance name and domain configurable.
-rwxr-xr-x | aurweb/git/serve.py | 4 | ||||
-rwxr-xr-x | aurweb/scripts/mkpkglists.py | 6 | ||||
-rwxr-xr-x | aurweb/scripts/notify.py | 40 | ||||
-rw-r--r-- | conf/config.proto | 3 | ||||
-rw-r--r-- | web/html/home.php | 28 | ||||
-rw-r--r-- | web/html/login.php | 4 | ||||
-rw-r--r-- | web/html/pkgdel.php | 4 | ||||
-rw-r--r-- | web/html/rss.php | 8 | ||||
-rw-r--r-- | web/lib/DB.class.php | 2 | ||||
-rw-r--r-- | web/template/account_delete.php | 3 | ||||
-rw-r--r-- | web/template/account_edit_form.php | 2 | ||||
-rw-r--r-- | web/template/footer.php | 2 | ||||
-rw-r--r-- | web/template/header.php | 8 | ||||
-rw-r--r-- | web/template/stats/updates_table.php | 2 |
14 files changed, 65 insertions, 51 deletions
diff --git a/aurweb/git/serve.py b/aurweb/git/serve.py index 476aea8..3949dbf 100755 --- a/aurweb/git/serve.py +++ b/aurweb/git/serve.py @@ -10,6 +10,8 @@ import time import aurweb.config import aurweb.db +aur_shortname = aurweb.config.get('options', 'aur_shortname'); + notify_cmd = aurweb.config.get('notifications', 'notify-cmd') repo_path = aurweb.config.get('serve', 'repo-path') @@ -345,7 +347,7 @@ def main(): if enable_maintenance: if remote_addr not in maintenance_exc: - die("The AUR is down due to maintenance. We will be back soon.") + die("The %s is down due to maintenance. We will be back soon." % (aur_shortname)) if action == 'git' and cmdargv[1] in ('upload-pack', 'receive-pack'): action = action + '-' + cmdargv[1] diff --git a/aurweb/scripts/mkpkglists.py b/aurweb/scripts/mkpkglists.py index 8a0f2e9..7d0b5c5 100755 --- a/aurweb/scripts/mkpkglists.py +++ b/aurweb/scripts/mkpkglists.py @@ -8,14 +8,14 @@ import aurweb.db packagesfile = aurweb.config.get('mkpkglists', 'packagesfile') pkgbasefile = aurweb.config.get('mkpkglists', 'pkgbasefile') - +aur_shortname = aurweb.config.get('options', 'aur_shortname'); def main(): conn = aurweb.db.Connection() datestr = datetime.datetime.utcnow().strftime("%a, %d %b %Y %H:%M:%S GMT") - pkglist_header = "# AUR package list, generated on " + datestr - pkgbaselist_header = "# AUR package base list, generated on " + datestr + pkglist_header = "# " + aur_shortname + " package list, generated on " + datestr + pkgbaselist_header = "# " + aur_shortname + " package base list, generated on " + datestr with gzip.open(packagesfile, "w") as f: f.write(bytes(pkglist_header + "\n", "UTF-8")) diff --git a/aurweb/scripts/notify.py b/aurweb/scripts/notify.py index ddd6e49..e9458b4 100755 --- a/aurweb/scripts/notify.py +++ b/aurweb/scripts/notify.py @@ -10,11 +10,13 @@ import aurweb.db aur_location = aurweb.config.get('options', 'aur_location') aur_request_ml = aurweb.config.get('options', 'aur_request_ml') +aur_shortname = aurweb.config.get('options', 'aur_shortname'); +aur_longname = aurweb.config.get('options', 'aur_longname'); sendmail = aurweb.config.get('notifications', 'sendmail') sender = aurweb.config.get('notifications', 'sender') reply_to = aurweb.config.get('notifications', 'reply-to') - +domain = aurweb.config.get('notifications', 'domain'); def headers_cc(cclist): return {'Cc': str.join(', ', cclist)} @@ -174,7 +176,7 @@ def send_resetkey(conn, uid): 'WHERE ID = ?', [uid]) username, to, resetkey = cur.fetchone() - subject = 'AUR Password Reset' + subject = '%s Password Reset' % (aur_shortname) body = 'A password reset request was submitted for the account %s ' \ 'associated with your email address. If you wish to reset your ' \ 'password follow the link [1] below, otherwise ignore this ' \ @@ -189,11 +191,11 @@ def welcome(conn, uid): 'WHERE ID = ?', [uid]) username, to, resetkey = cur.fetchone() - subject = 'Welcome to the Arch User Repository' - body = 'Welcome to the Arch User Repository! In order to set an initial ' \ + subject = 'Welcome to the %s' % (aur_longname) + body = 'Welcome to the %s! In order to set an initial ' \ 'password for your new account, please click the link [1] below. ' \ 'If the link does not work, try copying and pasting it into your ' \ - 'browser.' + 'browser.' % (aur_longname) refs = '[1] ' + aur_location + '/passreset/?resetkey=' + resetkey send_notification([to], subject, body, refs) @@ -208,7 +210,7 @@ def comment(conn, uid, pkgbase_id, comment_id): user_uri = aur_location + '/account/' + user + '/' pkgbase_uri = aur_location + '/pkgbase/' + pkgbase + '/' - subject = 'AUR Comment for %s' % (pkgbase) + subject = '%s Comment for %s' % (aur_shortname, pkgbase) body = '%s [1] added the following comment to %s [2]:' % (user, pkgbase) body += '\n\n' + text + '\n\n' body += 'If you no longer wish to receive notifications about this ' \ @@ -216,7 +218,7 @@ def comment(conn, uid, pkgbase_id, comment_id): ('Disable notifications') refs = '[1] ' + user_uri + '\n' refs += '[2] ' + pkgbase_uri - thread_id = '<pkg-notifications-' + pkgbase + '@aur.archlinux.org>' + thread_id = '<pkg-notifications-' + pkgbase + '@' + domain + '>' headers = headers_reply(thread_id) send_notification(to, subject, body, refs, headers) @@ -230,7 +232,7 @@ def update(conn, uid, pkgbase_id): user_uri = aur_location + '/account/' + user + '/' pkgbase_uri = aur_location + '/pkgbase/' + pkgbase + '/' - subject = 'AUR Package Update: %s' % (pkgbase) + subject = '%s Package Update: %s' % (aur_shortname, pkgbase) body = '%s [1] pushed a new commit to %s [2].' % (user, pkgbase) body += '\n\n' body += 'If you no longer wish to receive notifications about this ' \ @@ -238,7 +240,7 @@ def update(conn, uid, pkgbase_id): ('Disable notifications') refs = '[1] ' + user_uri + '\n' refs += '[2] ' + pkgbase_uri - thread_id = '<pkg-notifications-' + pkgbase + '@aur.archlinux.org>' + thread_id = '<pkg-notifications-' + pkgbase + '@' + domain + '>' headers = headers_reply(thread_id) send_notification(to, subject, body, refs, headers) @@ -253,7 +255,7 @@ def flag(conn, uid, pkgbase_id): user_uri = aur_location + '/account/' + user + '/' pkgbase_uri = aur_location + '/pkgbase/' + pkgbase + '/' - subject = 'AUR Out-of-date Notification for %s' % (pkgbase) + subject = '%s Out-of-date Notification for %s' % (aur_shortname, pkgbase) body = 'Your package %s [1] has been flagged out-of-date by %s [2]:' % \ (pkgbase, user) body += '\n\n' + text @@ -271,7 +273,7 @@ def adopt(conn, pkgbase_id, uid): user_uri = aur_location + '/account/' + user + '/' pkgbase_uri = aur_location + '/pkgbase/' + pkgbase + '/' - subject = 'AUR Ownership Notification for %s' % (pkgbase) + subject = '%s Ownership Notification for %s' % (aur_shortname, pkgbase) body = 'The package %s [1] was adopted by %s [2].' % (pkgbase, user) refs = '[1] ' + pkgbase_uri + '\n' refs += '[2] ' + user_uri @@ -287,7 +289,7 @@ def disown(conn, pkgbase_id, uid): user_uri = aur_location + '/account/' + user + '/' pkgbase_uri = aur_location + '/pkgbase/' + pkgbase + '/' - subject = 'AUR Ownership Notification for %s' % (pkgbase) + subject = '%s Ownership Notification for %s' % (aur_shortname, pkgbase) body = 'The package %s [1] was disowned by %s [2].' % (pkgbase, user) refs = '[1] ' + pkgbase_uri + '\n' refs += '[2] ' + user_uri @@ -301,7 +303,7 @@ def comaintainer_add(conn, pkgbase_id, uid): pkgbase_uri = aur_location + '/pkgbase/' + pkgbase + '/' - subject = 'AUR Co-Maintainer Notification for %s' % (pkgbase) + subject = '%s Co-Maintainer Notification for %s' % (aur_shortname, pkgbase) body = 'You were added to the co-maintainer list of %s [1].' % (pkgbase) refs = '[1] ' + pkgbase_uri + '\n' @@ -314,7 +316,7 @@ def comaintainer_remove(conn, pkgbase_id, uid): pkgbase_uri = aur_location + '/pkgbase/' + pkgbase + '/' - subject = 'AUR Co-Maintainer Notification for %s' % (pkgbase) + subject = '%s Co-Maintainer Notification for %s' % (aur_shortname, pkgbase) body = ('You were removed from the co-maintainer list of %s [1].' % (pkgbase)) refs = '[1] ' + pkgbase_uri + '\n' @@ -332,7 +334,7 @@ def delete(conn, uid, old_pkgbase_id, new_pkgbase_id=None): user_uri = aur_location + '/account/' + user + '/' pkgbase_uri = aur_location + '/pkgbase/' + old_pkgbase + '/' - subject = 'AUR Package deleted: %s' % (old_pkgbase) + subject = '%s Package deleted: %s' % (aur_shortname, old_pkgbase) if new_pkgbase_id: new_pkgbase_uri = aur_location + '/pkgbase/' + new_pkgbase + '/' body = '%s [1] merged %s [2] into %s [3].\n\n' \ @@ -378,7 +380,7 @@ def request_open(conn, uid, reqid, reqtype, pkgbase_id, merge_into=None): body += '\n\n' + text refs = '[1] ' + user_uri + '\n' refs += '[2] ' + pkgbase_uri + '\n' - thread_id = '<pkg-request-' + reqid + '@aur.archlinux.org>' + thread_id = '<pkg-request-' + reqid + '@' + domain + '>' # Use a deterministic Message-ID for the first email referencing a request. headers = headers_msgid(thread_id) headers.update(headers_cc(cc)) @@ -398,14 +400,14 @@ def request_close(conn, uid, reqid, reason): body = 'Request #%d has been %s by %s [1]' % (int(reqid), reason, user) refs = '[1] ' + user_uri else: - body = 'Request #%d has been %s automatically by the Arch User ' \ - 'Repository package request system' % (int(reqid), reason) + body = 'Request #%d has been %s automatically by the %s ' \ + 'package request system' % (int(reqid), reason, aur_longname) refs = None if text.strip() == '': body += '.' else: body += ':\n\n' + text - thread_id = '<pkg-request-' + reqid + '@aur.archlinux.org>' + thread_id = '<pkg-request-' + reqid + '@' + domain + '>' headers = headers_reply(thread_id) headers.update(headers_cc(cc)) diff --git a/conf/config.proto b/conf/config.proto index 96fad80..60d6211 100644 --- a/conf/config.proto +++ b/conf/config.proto @@ -31,12 +31,15 @@ log_uri = https://aur.archlinux.org/cgit/aur.git/log/?h=%s snapshot_uri = /cgit/aur.git/snapshot/%s.tar.gz enable-maintenance = 1 maintenance-exceptions = 127.0.0.1 +aur_shortname = AUR +aur_longname = Arch User Repository [notifications] notify-cmd = /srv/http/aurweb/scripts/notify.py sendmail = /usr/bin/sendmail sender = notify@aur.archlinux.org reply-to = noreply@aur.archlinux.org +domain = aur.archlinux.org [fingerprints] Ed25519 = SHA256:HQ03dn6EasJHNDlt51KpQpFkT3yBX83x7BoIkA1iv2k diff --git a/web/html/home.php b/web/html/home.php index 475370b..d4bbc0e 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', 'aur_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', 'aur_shortname'), '<a href="https://wiki.archlinux.org/index.php/AUR_User_Guidelines">', + config_get('options', 'aur_shortname'), '</a>', '<a href="https://wiki.archlinux.org/index.php/AUR_Trusted_User_Guidelines">', + config_get('options', 'aur_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', 'aur_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', 'aur_shortname'), '<a href="https://wiki.archlinux.org/index.php/Arch_User_Repository#Submitting_packages">', '</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', 'aur_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', 'aur_longname'), + config_get('options', 'aur_shortname'), + '<a href="https://mailman.archlinux.org/mailman/listinfo/aur-general">aur-general</a>', + config_get('options', 'aur_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 web interface %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', 'aur_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 7345439..6617489 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', 'aur_shortname') . ' ' . __("Login")); ?> <div id="dev-login" class="box"> - <h2>AUR <?= __('Login') ?></h2> + <h2><?= config_get('options', 'aur_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/pkgdel.php b/web/html/pkgdel.php index 21a2677..a52f568 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') ?>: <? 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', 'aur_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 8585d81..85df447 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', 'aur_shortname') . " Newest Packages"; +$rss->description = "The latest and greatest packages in the " . config_get('options', 'aur_shortname'); $rss->link = "${protocol}://{$host}"; $rss->syndicationURL = "{$protocol}://{$host}" . get_uri('/rss/'); $image = new FeedImage(); -$image->title = "AUR"; +$image->title = config_get('options', 'aur_shortname'); $image->url = "{$protocol}://{$host}/css/archnavbar/aurlogo.png"; $image->link = $rss->link; -$image->description = "AUR Newest Packages Feed"; +$image->description = config_get('options', 'aur_shortname') . " Newest Packages Feed"; $rss->image = $image; #Get the latest packages and add items for them diff --git a/web/lib/DB.class.php b/web/lib/DB.class.php index b538e0d..ce62ec6 100644 --- a/web/lib/DB.class.php +++ b/web/lib/DB.class.php @@ -32,7 +32,7 @@ class DB { self::$dbh = new PDO($dsn, $user, $password); self::$dbh->exec("SET NAMES 'utf8' COLLATE 'utf8_general_ci';"); } catch (PDOException $e) { - die('Error - Could not connect to AUR database'); + die('Error - Could not connect to ' . config_get('options', 'aur_shortname') . ' database'); } } diff --git a/web/template/account_delete.php b/web/template/account_delete.php index 74f386d..ca6c6ce 100644 --- a/web/template/account_delete.php +++ b/web/template/account_delete.php @@ -1,5 +1,6 @@ <p> - <?= __('You can use this form to permanently delete the AUR account %s.', '<strong>' . htmlspecialchars($username) . '</strong>') ?> + <?= __('You can use this form to permanently delete the %s account %s.', + config_get('options', 'aur_shortname'), '<strong>' . htmlspecialchars($username) . '</strong>') ?> </p> <p> <?= __('%sWARNING%s: This action cannot be undone.', '<strong>', '</strong>') ?> diff --git a/web/template/account_edit_form.php b/web/template/account_edit_form.php index 19821a0..2572157 100644 --- a/web/template/account_edit_form.php +++ b/web/template/account_edit_form.php @@ -132,7 +132,7 @@ </fieldset> <fieldset> - <legend><?= __("The following information is only required if you want to submit packages to the Arch User Repository.") ?></legend> + <legend><?= __("The following information is only required if you want to submit packages to the %s.", config_get('options', 'aur_longname')) ?></legend> <p> <label for="id_ssh"><?= __("SSH Public Key") ?>:</label> <textarea name="PK" id="id_ssh" rows="5" cols="30"><?= htmlspecialchars($PK) ?></textarea> diff --git a/web/template/footer.php b/web/template/footer.php index 572dbb2..0431792 100644 --- a/web/template/footer.php +++ b/web/template/footer.php @@ -6,7 +6,7 @@ <p>aurweb <a href="https://git.archlinux.org/aurweb.git/log/?h=<?= htmlspecialchars($ver, ENT_QUOTES) ?>"><?= htmlspecialchars($ver) ?></a></p> <?php endif; ?> <p><?= __('Copyright %s 2004-%d aurweb Development Team.', '©', date('Y')) ?></p> - <p><?= __('AUR packages are user produced content. Any use of the provided files is at your own risk.') ?></p> + <p><?= __('%s packages are user produced content. Any use of the provided files is at your own risk.', config_get('options', 'aur_shortname')) ?></p> </div> </div> </body> diff --git a/web/template/header.php b/web/template/header.php index 874109a..96bf6c5 100644 --- a/web/template/header.php +++ b/web/template/header.php @@ -4,7 +4,7 @@ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?= htmlspecialchars($LANG, ENT_QUOTES) ?>" lang="<?= htmlspecialchars($LANG, ENT_QUOTES) ?>"> <head> - <title>AUR (<?= htmlspecialchars($LANG); ?>)<?php if ($title != "") { print " - " . htmlspecialchars($title); } ?></title> + <title><?= config_get('options', 'aur_shortname'); ?> (<?= htmlspecialchars($LANG); ?>)<?php if ($title != "") { print " - " . htmlspecialchars($title); } ?></title> <link rel='stylesheet' type='text/css' href='/css/archweb.css' /> <link rel='stylesheet' type='text/css' href='/css/aurweb.css' /> <link rel='shortcut icon' href='/images/favicon.ico' /> @@ -16,7 +16,7 @@ </head> <body> <div id="archnavbar" class="anb-aur"> - <div id="archnavbarlogo"><h1><a href="/" title="Return to the main page">Arch Linux User Repository</a></h1></div> + <div id="archnavbarlogo"><h1><a href="/" title="Return to the main page"><?= config_get('options', 'aur_longname'); ?></a></h1></div> <div id="archnavbarmenu"> <ul id="archnavbarlist"> <li id="anb-home"><a href="https://www.archlinux.org/" title="Arch news, packages, projects and more">Home</a></li> @@ -24,7 +24,7 @@ <li id="anb-forums"><a href="https://bbs.archlinux.org/" title="Community forums">Forums</a></li> <li id="anb-wiki"><a href="https://wiki.archlinux.org/" title="Community documentation">Wiki</a></li> <li id="anb-bugs"><a href="https://bugs.archlinux.org/" title="Report and track bugs">Bugs</a></li> - <li id="anb-aur"><a href="/" title="Arch Linux User Repository">AUR</a></li> + <li id="anb-aur"><a href="/" title="<?= config_get('options', 'aur_longname'); ?>"><?= config_get('options', 'aur_shortname'); ?></a></li> <li id="anb-download"><a href="https://www.archlinux.org/download/" title="Get Arch Linux">Download</a></li> </ul> </div> @@ -53,7 +53,7 @@ </div> <div id="archdev-navbar"> <ul> - <li><a href="<?= get_uri('/'); ?>">AUR <?= __("Home"); ?></a></li> + <li><a href="<?= get_uri('/'); ?>"><?= config_get('options', 'aur_shortname'); ?> <?= __("Home"); ?></a></li> <li><a href="<?= get_uri('/packages/'); ?>"><?= __("Packages"); ?></a></li> <?php if (isset($_COOKIE['AURSID'])): ?> <li><a href="<?= get_uri('/packages/'); ?>?SeB=m&K=<?= username_from_sid($_COOKIE["AURSID"]); ?>"><?= __("My Packages"); ?></a></li> diff --git a/web/template/stats/updates_table.php b/web/template/stats/updates_table.php index 580583b..05ada3b 100644 --- a/web/template/stats/updates_table.php +++ b/web/template/stats/updates_table.php @@ -1,6 +1,6 @@ <h3><?= __("Recent Updates") ?> <span class="more">(<a href="<?= get_uri('/packages/') ?>?SB=l&SO=d"><?= __('more') ?></a>)</span></h3> -<a href="<?= get_uri('/rss/') ?>" title="Arch Package Updates RSS Feed" class="rss-icon"><img src="/images/rss.svg" alt="RSS Feed" /></a> +<a href="<?= get_uri('/rss/') ?>" title="<?= config_get('options', 'aur_longname'); ?> Package Updates RSS Feed" class="rss-icon"><img src="/images/rss.svg" alt="RSS Feed" /></a> <table> <tbody> |