1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-25 17:23:00 +00:00

Minor improvements to page lists.

Redirect pagse now show in italics, and the pencil icon has a ? cursor and has a tooltip of "Last editor".
This commit is contained in:
Starbeamrainbowlabs 2016-03-20 16:30:00 +00:00
parent 10fbe52f27
commit 4adf02a549
4 changed files with 17 additions and 6 deletions

View file

@ -9,6 +9,7 @@
- Added icons to the "More..." menu - Added icons to the "More..." menu
- Added help section to parsedown parser. - Added help section to parsedown parser.
- Added more information to the dev help page. - Added more information to the dev help page.
- Added templating! It works the way you'd expect it to in Mediawiki.
## Changed ## Changed
- Improved appearance of the all pages list. - Improved appearance of the all pages list.
@ -23,6 +24,8 @@
- Moved printable button to bottom bar and changed display text to "Printable version". - Moved printable button to bottom bar and changed display text to "Printable version".
- Improved the "There isn't a page called..." message you sometimes see when searching. - Improved the "There isn't a page called..." message you sometimes see when searching.
- Corrected a minor issue on the help page. - Corrected a minor issue on the help page.
- Redirect pages now show in italics in page lists.
- Made other minor improvements to the page lists.
## Fixed ## Fixed
- Removed debug statement from the redirect page module. - Removed debug statement from the redirect page module.

View file

@ -3268,9 +3268,13 @@ function generate_page_list($pagelist)
$tags = substr($tags, 0, -2); // Remove the last ", " from the tag list $tags = substr($tags, 0, -2); // Remove the last ", " from the tag list
} }
$result .= "<li><a href='index.php?page=$pagename'>$pagename</a> $pageDisplayName = $pagename;
if($pageindex->$pagename->redirect)
$pageDisplayName = "<em>$pageDisplayName</em>";
$result .= "<li><a href='index.php?page=$pagename'>$pageDisplayName</a>
<em class='size'>(" . human_filesize($pageindex->$pagename->size) . ")</em> <em class='size'>(" . human_filesize($pageindex->$pagename->size) . ")</em>
<span class='editor'>&#9998; " . $pageindex->$pagename->lasteditor . "</span> <span class='editor'><span class='texticon cursor-query' title='Last editor'>&#9998;</span> " . $pageindex->$pagename->lasteditor . "</span>
<time class='cursor-query' title='" . date("l jS \of F Y \a\\t h:ia T", $pageindex->$pagename->lastmodified) . "'>" . human_time_since($pageindex->$pagename->lastmodified) . "</time> <time class='cursor-query' title='" . date("l jS \of F Y \a\\t h:ia T", $pageindex->$pagename->lastmodified) . "'>" . human_time_since($pageindex->$pagename->lastmodified) . "</time>
<span class='tags'>$tags</span></li>"; <span class='tags'>$tags</span></li>";
} }

View file

@ -131,7 +131,7 @@
"author": "Starbeamrainbowlabs", "author": "Starbeamrainbowlabs",
"description": "Adds a page that lists all the pages in the index along with their metadata.", "description": "Adds a page that lists all the pages in the index along with their metadata.",
"id": "page-list", "id": "page-list",
"lastupdate": 1452953587, "lastupdate": 1458491260,
"optional": false "optional": false
}, },
{ {
@ -194,7 +194,7 @@
"author": "Emanuil Rusev & Starbeamrainbowlabs", "author": "Emanuil Rusev & Starbeamrainbowlabs",
"description": "An upgraded (now default!) parser based on Emanuil Rusev's Parsedown Extra PHP library (https:\/\/github.com\/erusev\/parsedown-extra), which is licensed MIT. Please be careful, as this module adds a some weight to your installation, and also *requires* write access to the disk on first load.", "description": "An upgraded (now default!) parser based on Emanuil Rusev's Parsedown Extra PHP library (https:\/\/github.com\/erusev\/parsedown-extra), which is licensed MIT. Please be careful, as this module adds a some weight to your installation, and also *requires* write access to the disk on first load.",
"id": "parser-parsedown", "id": "parser-parsedown",
"lastupdate": 1458490188, "lastupdate": 1458490248,
"optional": false "optional": false
} }
] ]

View file

@ -108,9 +108,13 @@ function generate_page_list($pagelist)
$tags = substr($tags, 0, -2); // Remove the last ", " from the tag list $tags = substr($tags, 0, -2); // Remove the last ", " from the tag list
} }
$result .= "<li><a href='index.php?page=$pagename'>$pagename</a> $pageDisplayName = $pagename;
if($pageindex->$pagename->redirect)
$pageDisplayName = "<em>$pageDisplayName</em>";
$result .= "<li><a href='index.php?page=$pagename'>$pageDisplayName</a>
<em class='size'>(" . human_filesize($pageindex->$pagename->size) . ")</em> <em class='size'>(" . human_filesize($pageindex->$pagename->size) . ")</em>
<span class='editor'>&#9998; " . $pageindex->$pagename->lasteditor . "</span> <span class='editor'><span class='texticon cursor-query' title='Last editor'>&#9998;</span> " . $pageindex->$pagename->lasteditor . "</span>
<time class='cursor-query' title='" . date("l jS \of F Y \a\\t h:ia T", $pageindex->$pagename->lastmodified) . "'>" . human_time_since($pageindex->$pagename->lastmodified) . "</time> <time class='cursor-query' title='" . date("l jS \of F Y \a\\t h:ia T", $pageindex->$pagename->lastmodified) . "'>" . human_time_since($pageindex->$pagename->lastmodified) . "</time>
<span class='tags'>$tags</span></li>"; <span class='tags'>$tags</span></li>";
} }