Author: Jim Winstead (jimwins)
Date: 2024-08-23T16:15:15-07:00
Commit:
https://github.com/php/web-news/commit/5d4c090034a4c3a69e1feebd38a88d666a492255
Raw diff:
https://github.com/php/web-news/commit/5d4c090034a4c3a69e1feebd38a88d666a492255.diff
Get rid of links to RDF, redundant with RSS, capitalize column names
Changed paths:
M index.php
Diff:
diff --git a/index.php b/index.php
index 278b703..b68592f 100644
--- a/index.php
+++ b/index.php
@@ -38,21 +38,20 @@
</div>
<table class="standard">
<tr>
- <th>name</th>
- <th>description</th>
- <th>messages</th>
- <th>rss</th>
- <th>rdf</th>
+ <th>Name</th>
+ <th>Description</th>
+ <th>Messages</th>
+ <th>RSS</th>
</tr>
<tr>
- <th colspan="5">Moderated Lists</th>
+ <th colspan="4">Moderated Lists</th>
</tr>
<?php
$last_status = 'm';
foreach ($groups as $group => $details) {
if ($details['status'] != $last_status) {
$last_status = $details['status'];
- echo '<tr><th colspan="5">',
+ echo '<tr><th colspan="4">',
$last_status == 'y' ? 'Discussion Lists' : 'Inactive Lists',
"</th></tr>\n";
}
@@ -60,14 +59,9 @@
echo " <td><a class=\"active{$details['status']}\"
href=\"/$group\">$group</a></td>\n";
echo " <td>", htmlspecialchars($descriptions[$group]), "</td>\n";
echo " <td class=\"align-right\">", $details['high'] -
$details['low'] + 1, "</td>\n";
- echo " <td>";
+ echo " <td class=\"align-center\">";
if ($details['status'] != 'n') {
- echo "<a href=\"group.php?group=$group&format=rss\">rss</a>";
- }
- echo "</td>\n";
- echo " <td>";
- if ($details['status'] != 'n') {
- echo "<a href=\"group.php?group=$group&format=rdf\">rdf</a>";
+ echo "<a href=\"group.php?group=$group&format=rss\">RSS</a>";
}
echo "</td>\n";
echo " </tr>\n";