mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 04:23:01 +00:00
More recent changes page refinements.
This commit is contained in:
parent
02b6df6ea3
commit
31b678668b
6 changed files with 12 additions and 6 deletions
|
@ -4,6 +4,8 @@
|
||||||
## Added
|
## Added
|
||||||
- This changelog. It's long overdue I think!
|
- This changelog. It's long overdue I think!
|
||||||
- Added the all tags page to the "More..." menu by default.
|
- Added the all tags page to the "More..." menu by default.
|
||||||
|
- Added recent changes page under the action `recent-changes`.
|
||||||
|
- Changed the cursor when hovering over a time to indicate that the tooltip contains more information.
|
||||||
|
|
||||||
## Changed
|
## Changed
|
||||||
- Improved appearance of the all pages list.
|
- Improved appearance of the all pages list.
|
||||||
|
|
|
@ -322,6 +322,8 @@ textarea ~ input[type=submit] { margin: 0.5rem 0.8rem; padding: 0.5rem; font-wei
|
||||||
.tag-list li { display: inline-block; margin: 1rem; }
|
.tag-list li { display: inline-block; margin: 1rem; }
|
||||||
.mini-tag { background: #d2c3dd; padding: 0.2rem 0.4rem; color: #fb701a; text-decoration: none; }
|
.mini-tag { background: #d2c3dd; padding: 0.2rem 0.4rem; color: #fb701a; text-decoration: none; }
|
||||||
|
|
||||||
|
.cursor-query { cursor: help; }
|
||||||
|
|
||||||
.larger { color: rgb(9, 180, 0); }
|
.larger { color: rgb(9, 180, 0); }
|
||||||
.smaller { color: rgb(207, 28, 17); }
|
.smaller { color: rgb(207, 28, 17); }
|
||||||
.nochange { color: rgb(132, 123, 199); font-style: italic; }
|
.nochange { color: rgb(132, 123, 199); font-style: italic; }
|
||||||
|
@ -1585,7 +1587,7 @@ register_module([
|
||||||
|
|
||||||
$title_display = human_filesize($rchange->newsize - $rchange->sizediff) . " -> " . human_filesize($rchange->newsize);
|
$title_display = human_filesize($rchange->newsize - $rchange->sizediff) . " -> " . human_filesize($rchange->newsize);
|
||||||
|
|
||||||
$content .= "\t\t\t<li><a href='?page=" . rawurlencode($rchange->page) . "'>$rchange->page</a> <span class='editor'>✎ $rchange->user</span> " . human_time_since($rchange->timestamp) . " <span class='$size_display_class' title='$title_display'>($size_display)</span></li>\n";
|
$content .= "\t\t\t<li><a href='?page=" . rawurlencode($rchange->page) . "'>$rchange->page</a> <span class='editor'>✎ $rchange->user</span> <time class='cursor-query' title='" . date("l jS \of F Y \a\\t h:ia T", $rchange->timestamp) . "'>" . human_time_since($rchange->timestamp) . "</time> <span class='$size_display_class' title='$title_display'>($size_display)</span></li>\n";
|
||||||
}
|
}
|
||||||
$content .= "\t\t</ul>";
|
$content .= "\t\t</ul>";
|
||||||
}
|
}
|
||||||
|
@ -3185,7 +3187,7 @@ function generate_page_list($pagelist)
|
||||||
$result .= "<li><a href='index.php?page=$pagename'>$pagename</a>
|
$result .= "<li><a href='index.php?page=$pagename'>$pagename</a>
|
||||||
<em class='size'>(" . human_filesize($pageindex->$pagename->size) . ")</em>
|
<em class='size'>(" . human_filesize($pageindex->$pagename->size) . ")</em>
|
||||||
<span class='editor'>✎ " . $pageindex->$pagename->lasteditor . "</span>
|
<span class='editor'>✎ " . $pageindex->$pagename->lasteditor . "</span>
|
||||||
<time 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>";
|
||||||
}
|
}
|
||||||
$result .= " </ul>\n";
|
$result .= " </ul>\n";
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
"author": "Starbeamrainbowlabs",
|
"author": "Starbeamrainbowlabs",
|
||||||
"description": "Adds recent changes. Access through the 'recent-changes' action.",
|
"description": "Adds recent changes. Access through the 'recent-changes' action.",
|
||||||
"id": "feature-recent-changes",
|
"id": "feature-recent-changes",
|
||||||
"lastupdate": 1452952383,
|
"lastupdate": 1452953620,
|
||||||
"optional": false
|
"optional": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -122,7 +122,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": 1451134069,
|
"lastupdate": 1452953587,
|
||||||
"optional": false
|
"optional": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -47,7 +47,7 @@ register_module([
|
||||||
|
|
||||||
$title_display = human_filesize($rchange->newsize - $rchange->sizediff) . " -> " . human_filesize($rchange->newsize);
|
$title_display = human_filesize($rchange->newsize - $rchange->sizediff) . " -> " . human_filesize($rchange->newsize);
|
||||||
|
|
||||||
$content .= "\t\t\t<li><a href='?page=" . rawurlencode($rchange->page) . "'>$rchange->page</a> <span class='editor'>✎ $rchange->user</span> " . human_time_since($rchange->timestamp) . " <span class='$size_display_class' title='$title_display'>($size_display)</span></li>\n";
|
$content .= "\t\t\t<li><a href='?page=" . rawurlencode($rchange->page) . "'>$rchange->page</a> <span class='editor'>✎ $rchange->user</span> <time class='cursor-query' title='" . date("l jS \of F Y \a\\t h:ia T", $rchange->timestamp) . "'>" . human_time_since($rchange->timestamp) . "</time> <span class='$size_display_class' title='$title_display'>($size_display)</span></li>\n";
|
||||||
}
|
}
|
||||||
$content .= "\t\t</ul>";
|
$content .= "\t\t</ul>";
|
||||||
}
|
}
|
||||||
|
|
|
@ -111,7 +111,7 @@ function generate_page_list($pagelist)
|
||||||
$result .= "<li><a href='index.php?page=$pagename'>$pagename</a>
|
$result .= "<li><a href='index.php?page=$pagename'>$pagename</a>
|
||||||
<em class='size'>(" . human_filesize($pageindex->$pagename->size) . ")</em>
|
<em class='size'>(" . human_filesize($pageindex->$pagename->size) . ")</em>
|
||||||
<span class='editor'>✎ " . $pageindex->$pagename->lasteditor . "</span>
|
<span class='editor'>✎ " . $pageindex->$pagename->lasteditor . "</span>
|
||||||
<time 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>";
|
||||||
}
|
}
|
||||||
$result .= " </ul>\n";
|
$result .= " </ul>\n";
|
||||||
|
|
|
@ -311,6 +311,8 @@ textarea ~ input[type=submit] { margin: 0.5rem 0.8rem; padding: 0.5rem; font-wei
|
||||||
.tag-list li { display: inline-block; margin: 1rem; }
|
.tag-list li { display: inline-block; margin: 1rem; }
|
||||||
.mini-tag { background: #d2c3dd; padding: 0.2rem 0.4rem; color: #fb701a; text-decoration: none; }
|
.mini-tag { background: #d2c3dd; padding: 0.2rem 0.4rem; color: #fb701a; text-decoration: none; }
|
||||||
|
|
||||||
|
.cursor-query { cursor: help; }
|
||||||
|
|
||||||
.larger { color: rgb(9, 180, 0); }
|
.larger { color: rgb(9, 180, 0); }
|
||||||
.smaller { color: rgb(207, 28, 17); }
|
.smaller { color: rgb(207, 28, 17); }
|
||||||
.nochange { color: rgb(132, 123, 199); font-style: italic; }
|
.nochange { color: rgb(132, 123, 199); font-style: italic; }
|
||||||
|
|
Loading…
Reference in a new issue