give comments their own subnav
This commit is contained in:
parent
8e676abd62
commit
5dc5701ea5
1 changed files with 4 additions and 1 deletions
|
@ -138,12 +138,15 @@ class Layout {
|
||||||
# the subnav links aren't shown, but it would
|
# the subnav links aren't shown, but it would
|
||||||
# be nice to be correct
|
# be nice to be correct
|
||||||
case "post":
|
case "post":
|
||||||
case "comment":
|
|
||||||
case "upload":
|
case "upload":
|
||||||
$custom_sublinks .= "<li><a href='".make_link('post/list')."'>All</a></li>";
|
$custom_sublinks .= "<li><a href='".make_link('post/list')."'>All</a></li>";
|
||||||
$custom_sublinks .= "<li><a href='".make_link("post/list/favorited_by=$username/1")."'>My Favorites</a></li>";
|
$custom_sublinks .= "<li><a href='".make_link("post/list/favorited_by=$username/1")."'>My Favorites</a></li>";
|
||||||
if($hw) $custom_sublinks .= "<li><a href='".make_link("wiki/posts")."'>Help</a></li>";
|
if($hw) $custom_sublinks .= "<li><a href='".make_link("wiki/posts")."'>Help</a></li>";
|
||||||
break;
|
break;
|
||||||
|
case "comment":
|
||||||
|
$custom_sublinks .= "<li><a href='".make_link('comment/list')."'>All</a></li>";
|
||||||
|
if($hw) $custom_sublinks .= "<li><a href='".make_link("wiki/comment")."'>Help</a></li>";
|
||||||
|
break;
|
||||||
case "pool":
|
case "pool":
|
||||||
$custom_sublinks .= "<li><a href='".make_link('pool/list')."'>List</a></li>";
|
$custom_sublinks .= "<li><a href='".make_link('pool/list')."'>List</a></li>";
|
||||||
$custom_sublinks .= "<li><a href='".make_link("pool/new")."'>Create</a></li>";
|
$custom_sublinks .= "<li><a href='".make_link("pool/new")."'>Create</a></li>";
|
||||||
|
|
Reference in a new issue