diff options
| author | Nick Palmer <nick@sluggardy.net> | 2007-02-16 22:38:20 +0000 |
|---|---|---|
| committer | Nick Palmer <nick@sluggardy.net> | 2007-02-16 22:38:20 +0000 |
| commit | 534a90f1acaf1e16d9ff31988eb876b2769bc14c (patch) | |
| tree | 015edc8ae6dbc3ed80373b4953ea8520a4499a79 /templates/list_topics.tpl | |
| parent | 07e1e5f12aca819e9af02f02da0566228afe9dc4 (diff) | |
| download | boards-534a90f1acaf1e16d9ff31988eb876b2769bc14c.tar.gz boards-534a90f1acaf1e16d9ff31988eb876b2769bc14c.tar.bz2 boards-534a90f1acaf1e16d9ff31988eb876b2769bc14c.zip | |
Various bits of cleanup for displaying. Fixed bugs with displaying threaded with and without threading. Hid icons for posting and topic creation for those that don't have permissions. Made titles display the thread or board name. Commented out home board from admin since home doesn't use it.
Diffstat (limited to 'templates/list_topics.tpl')
| -rw-r--r-- | templates/list_topics.tpl | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/templates/list_topics.tpl b/templates/list_topics.tpl index 24b22ab..c37e006 100644 --- a/templates/list_topics.tpl +++ b/templates/list_topics.tpl @@ -1,4 +1,4 @@ -{* $Header: /cvsroot/bitweaver/_bit_boards/templates/list_topics.tpl,v 1.6 2007/01/14 13:10:00 squareing Exp $ *} +{* $Header: /cvsroot/bitweaver/_bit_boards/templates/list_topics.tpl,v 1.7 2007/02/16 22:38:20 nickpalmer Exp $ *} {strip} <div class="listing bitboard"> <div class="floaticon"> @@ -23,9 +23,11 @@ <div class="body"> {minifind sort_mode=$sort_mode b=$smarty.request.b} {* looks horrible, but leave for now - xing *} - <div class="navbar"> - <a title="{tr}New Topic{/tr}" href="{$comments_return_url}&post_comment_request=1#editcomments">{tr}New Topic{/tr} {biticon ipackage="icons" iname="mail-message-new" iexplain="New Topic"}</a> - </div> + {if $gBitUser->hasPermission( 'p_liberty_post_comments' )} + <div class="navbar"> + <a title="{tr}New Topic{/tr}" href="{$comments_return_url}&post_comment_request=1#editcomments">{tr}New Topic{/tr} {biticon ipackage="icons" iname="mail-message-new" iexplain="New Topic"}</a> + </div> + {/if} {form id="checkform"} <input type="hidden" name="board_id" value="{$smarty.request.board_id}" /> @@ -152,9 +154,11 @@ {/foreach} </table> - <div class="navbar"> - <a class="button" title="{tr}New Topic{/tr}" href="{$comments_return_url}&post_comment_request=1#editcomments">{biticon ipackage="icons" iname="mail-message-new" iexplain="New Topic" iforce="icon"} {tr}New Topic{/tr}</a> - </div> + {if $gBitUser->hasPermission( 'p_liberty_post_comments' )} + <div class="navbar"> + <a class="button" title="{tr}New Topic{/tr}" href="{$comments_return_url}&post_comment_request=1#editcomments">{biticon ipackage="icons" iname="mail-message-new" iexplain="New Topic" iforce="icon"} {tr}New Topic{/tr}</a> + </div> + {/if} {if $gBitUser->hasPermission( 'p_bitboards_remove' )} <div style="text-align:right;"> |
