mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 04:23:01 +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:
parent
10fbe52f27
commit
4adf02a549
4 changed files with 17 additions and 6 deletions
|
@ -9,6 +9,7 @@
|
|||
- Added icons to the "More..." menu
|
||||
- Added help section to parsedown parser.
|
||||
- Added more information to the dev help page.
|
||||
- Added templating! It works the way you'd expect it to in Mediawiki.
|
||||
|
||||
## Changed
|
||||
- Improved appearance of the all pages list.
|
||||
|
@ -23,6 +24,8 @@
|
|||
- 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.
|
||||
- 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
|
||||
- Removed debug statement from the redirect page module.
|
||||
|
|
|
@ -3268,9 +3268,13 @@ function generate_page_list($pagelist)
|
|||
$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>
|
||||
<span class='editor'>✎ " . $pageindex->$pagename->lasteditor . "</span>
|
||||
<span class='editor'><span class='texticon cursor-query' title='Last editor'>✎</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>
|
||||
<span class='tags'>$tags</span></li>";
|
||||
}
|
||||
|
|
|
@ -131,7 +131,7 @@
|
|||
"author": "Starbeamrainbowlabs",
|
||||
"description": "Adds a page that lists all the pages in the index along with their metadata.",
|
||||
"id": "page-list",
|
||||
"lastupdate": 1452953587,
|
||||
"lastupdate": 1458491260,
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
|
@ -194,7 +194,7 @@
|
|||
"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.",
|
||||
"id": "parser-parsedown",
|
||||
"lastupdate": 1458490188,
|
||||
"lastupdate": 1458490248,
|
||||
"optional": false
|
||||
}
|
||||
]
|
|
@ -108,9 +108,13 @@ function generate_page_list($pagelist)
|
|||
$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>
|
||||
<span class='editor'>✎ " . $pageindex->$pagename->lasteditor . "</span>
|
||||
<span class='editor'><span class='texticon cursor-query' title='Last editor'>✎</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>
|
||||
<span class='tags'>$tags</span></li>";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue