summaryrefslogtreecommitdiff
path: root/templates/top.tpl
diff options
context:
space:
mode:
authorspiderr <spider@viovio.com>2013-04-03 23:31:15 -0400
committerspiderr <spider@viovio.com>2013-04-03 23:31:15 -0400
commit75d3889e3819b1af8bb1405464202f211706e931 (patch)
treedaaa3c0614160d9705bf096078ea219f2138c3ef /templates/top.tpl
parenta070f075d173d9a515dbe98b69dd672f156169b9 (diff)
downloadkernel-75d3889e3819b1af8bb1405464202f211706e931.tar.gz
kernel-75d3889e3819b1af8bb1405464202f211706e931.tar.bz2
kernel-75d3889e3819b1af8bb1405464202f211706e931.zip
lots of clean up for bootstrap menus, headers, and footer; purge some ancient defaults
Diffstat (limited to 'templates/top.tpl')
-rw-r--r--templates/top.tpl29
1 files changed, 16 insertions, 13 deletions
diff --git a/templates/top.tpl b/templates/top.tpl
index 4765194..f7bdc6d 100644
--- a/templates/top.tpl
+++ b/templates/top.tpl
@@ -1,24 +1,27 @@
<div class="container" id="bittop">
<div class="navbar">
- <div class="floatright alignright">
+ <a class="brand" href="{$smarty.const.BIT_ROOT_URL}" {if $gBitSystem->getConfig('site_slogan')} title="{$gBitSystem->getConfig('site_slogan')|escape}" {/if}>{$gBitSystem->getConfig('site_title')}</a>
+ <div class="pull-right">
{if $gBitUser->isRegistered()}
- {tr}Welcome{/tr}, <strong>{displayname hash=$gBitUser->mInfo}</strong>
- &bull; <a href="{$smarty.const.USERS_PKG_URL}my.php">{tr}My Account{/tr}</a>
- &bull; <a href="{$smarty.const.USERS_PKG_URL}logout.php">{tr}logout{/tr}</a>
+ <ul class="nav nav-pills">
+ <li class="active dropdown">
+ <a class="dropdown-toggle" id="dLabel" role="button" data-toggle="dropdown" data-target="#"><i class="icon-user"></i> {displayname hash=$gBitUser->mInfo nolink=1} <b class="caret"></b></a>
+ <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
+ <li><a href="{$gBitUser->getDisplayUrl()}">{tr}My Profile{/tr}</a></li>
+ <li><a href="{$smarty.const.USERS_PKG_URL}my.php">{tr}My Account{/tr}</a></li>
+ <li><a href="{$smarty.const.USERS_PKG_URL}logout.php">{tr}Logout{/tr}</a></li>
+ {if $adminMenu}
+ <li class="dropdown-submenu menu-admin">{include file="bitpackage:kernel/menu_top_admin_inc.tpl"}</li>
+ {/if}
+ </ul>
+ </li>
+ </ul>
{else}
<a href="{$smarty.const.USERS_PKG_URL}login.php">{tr}login{/tr}</a>
{if $gBitSystem->isFeatureActive( 'users_allow_register' )}
- &bull; <a href="{$smarty.const.USERS_PKG_URL}register.php">{tr}register{/tr}</a>
+ {tr}or{/tr} <a href="{$smarty.const.USERS_PKG_URL}register.php">{tr}register{/tr}</a>
{/if}
{/if}
-
- <br />
-
- {if $gBitSystem->isFeatureActive( 'feature_calendar' ) and $gBitUser->hasPermission( 'p_calendar_view' )}
- <a href="{$smarty.const.CALENDAR_PKG_URL}index.php">{$smarty.now|bit_short_datetime}</a>
- {/if}
</div>
- <a class="brand" href="{$smarty.const.BIT_ROOT_URL}" {if $gBitSystem->getConfig('site_slogan')} title="{$gBitSystem->getConfig('site_slogan')|escape}" {/if}>{$gBitSystem->getConfig('site_title')}</a>
-
</div>
</div>