fixed navbar separators
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.00.0 (2012-08-08 09:34:59) dev
|
Version 2.00.0 (2012-08-08 09:43:04) dev
|
||||||
|
|||||||
@@ -77,7 +77,7 @@
|
|||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</a>
|
</a>
|
||||||
<a class="brand" href="#">web2py™ </a>
|
<a class="brand" href="#">web2py™ </a>
|
||||||
<div id="navbar">{{='auth' in globals() and auth.navbar(separators=(' ',' | ','')) or ''}}</div>
|
<div id="navbar">{{='auth' in globals() and auth.navbar() or ''}}</div>
|
||||||
<div class="nav-collapse">
|
<div class="nav-collapse">
|
||||||
{{is_mobile=request.user_agent().is_mobile}}
|
{{is_mobile=request.user_agent().is_mobile}}
|
||||||
{{if response.menu:}}
|
{{if response.menu:}}
|
||||||
|
|||||||
+5
-5
@@ -1216,7 +1216,7 @@ class Auth(object):
|
|||||||
if isinstance(prefix,str) and self.user:
|
if isinstance(prefix,str) and self.user:
|
||||||
# backward compatibility
|
# backward compatibility
|
||||||
if not '%' in prefix: prefix+' %(first_name)s'
|
if not '%' in prefix: prefix+' %(first_name)s'
|
||||||
prefix_str = (T(prefix) % self.user).strip()+' '
|
prefix_str = (T(prefix) % self.user).strip()
|
||||||
else:
|
else:
|
||||||
prefix_str = str(prefix or '')
|
prefix_str = str(prefix or '')
|
||||||
if not action:
|
if not action:
|
||||||
@@ -1239,8 +1239,8 @@ class Auth(object):
|
|||||||
bar = SPAN(prefix_str,
|
bar = SPAN(prefix_str,
|
||||||
s1, logout, s3, _class='auth_navbar')
|
s1, logout, s3, _class='auth_navbar')
|
||||||
if not 'profile' in self.settings.actions_disabled:
|
if not 'profile' in self.settings.actions_disabled:
|
||||||
bar.insert(4, s2)
|
bar.insert(-1, s2)
|
||||||
bar.insert(5, profile)
|
bar.insert(-1, profile)
|
||||||
if not 'change_password' in self.settings.actions_disabled:
|
if not 'change_password' in self.settings.actions_disabled:
|
||||||
bar.insert(-1, s2)
|
bar.insert(-1, s2)
|
||||||
bar.insert(-1, password)
|
bar.insert(-1, password)
|
||||||
@@ -1252,8 +1252,8 @@ class Auth(object):
|
|||||||
bar = SPAN(s1, login, s3, _class='auth_navbar')
|
bar = SPAN(s1, login, s3, _class='auth_navbar')
|
||||||
|
|
||||||
if not 'register' in self.settings.actions_disabled:
|
if not 'register' in self.settings.actions_disabled:
|
||||||
bar.insert(2, s2)
|
bar.insert(-1, s2)
|
||||||
bar.insert(3, register)
|
bar.insert(-1, register)
|
||||||
if 'username' in self.settings.table_user.fields() and \
|
if 'username' in self.settings.table_user.fields() and \
|
||||||
not 'retrieve_username' in self.settings.actions_disabled:
|
not 'retrieve_username' in self.settings.actions_disabled:
|
||||||
bar.insert(-1, s2)
|
bar.insert(-1, s2)
|
||||||
|
|||||||
Reference in New Issue
Block a user