Add modified packages RSS feed to frontend

This commit is contained in:
Justin Kromlinger 2020-11-20 00:20:26 +01:00 committed by Kevin Morris
parent 4330fe4f33
commit 8d9f20939c
3 changed files with 7 additions and 1 deletions

View file

@ -556,6 +556,10 @@ h3 span.arrow {
margin: -2em 0 0 0;
}
#pkg-updates .rss-icon.latest {
margin-right: 1em;
}
#pkg-updates table {
margin: 0;
}

View file

@ -9,6 +9,7 @@
<link rel='stylesheet' type='text/css' href='/css/aurweb.css' />
<link rel='shortcut icon' href='/images/favicon.ico' />
<link rel='alternate' type='application/rss+xml' title='Newest Packages RSS' href='<?= get_uri('/rss/'); ?>' />
<link rel='alternate' type='application/rss+xml' title='Modified Packages RSS' href='<?= get_uri('/rss/modified/'); ?>' />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<?php if (isset($details['Description']) && !empty($details['Description'])): ?>
<meta name="description" content="<?= htmlspecialchars($details['Description']) ?>" />

View file

@ -1,6 +1,7 @@
<h3><?= __("Recent Updates") ?> <span class="more">(<a href="<?= get_uri('/packages/') ?>?SB=l&amp;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="AUR Latest Packages RSS Feed" class="rss-icon latest"><img src="/images/rss.svg" alt="RSS Feed" /></a>
<a href="<?= get_uri('/rss/modified/') ?>" title="AUR Modified Packages RSS Feed" class="rss-icon"><img src="/images/rss.svg" alt="RSS Feed" /></a>
<table>
<tbody>