diff options
author | zotlabs <mike@macgirvin.com> | 2017-01-23 16:31:40 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-01-23 16:31:40 -0800 |
commit | cb47354a4f76e033485e9818b137742c01466dbe (patch) | |
tree | 1cba8e14d0cd1069a4d80bfa0acd51e24401b7bc /view | |
parent | 61588a4b772f8c5c0c231cf2eb63d72a8f64411d (diff) | |
download | volse-hubzilla-cb47354a4f76e033485e9818b137742c01466dbe.tar.gz volse-hubzilla-cb47354a4f76e033485e9818b137742c01466dbe.tar.bz2 volse-hubzilla-cb47354a4f76e033485e9818b137742c01466dbe.zip |
put login form into the nav bar. Proof of concept - needs a bit of UI tweaks.
Diffstat (limited to 'view')
-rw-r--r-- | view/theme/redbasic/css/style.css | 4 | ||||
-rwxr-xr-x | view/tpl/nav.tpl | 11 | ||||
-rw-r--r-- | view/tpl/remote_login.tpl | 1 |
3 files changed, 12 insertions, 4 deletions
diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 5bffdd27b..f5e253eef 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -2104,4 +2104,8 @@ dl.bb-dl > dd > li { .app-icon { font-size: 80px; text-align: center; +} + +.rmagic-button { + margin-left: 10px; }
\ No newline at end of file diff --git a/view/tpl/nav.tpl b/view/tpl/nav.tpl index 4d8ce9317..c9b38859c 100755 --- a/view/tpl/nav.tpl +++ b/view/tpl/nav.tpl @@ -154,13 +154,16 @@ </li> {{/if}} - {{if $nav.loginmenu && !$userinfo}} - <li class="{{$nav.loginmenu.0.2}} hidden-xs"> + {{if $nav.login && !$userinfo}} + <li class="nav-login hidden-xs"> <a data-toggle="dropdown" href="{{$nav.loginmenu.0.0}}" title="{{$nav.loginmenu.0.3}}" id="{{$nav.loginmenu.0.4}}">{{$nav.loginmenu.0.1}} <span class="caret" id="loginmenu-caret"></span></a> <ul class="dropdown-menu" role="menu"> - {{foreach $nav.loginmenu as $loginmenu}} + {{$nav.login}} + {{$nav.remote_login}} + + <!-- {{foreach $nav.loginmenu as $loginmenu}} <li role="presentation"><a class="{{$loginmenu.2}}" href="{{$loginmenu.0}}" title="{{$loginmenu.3}}" role="menuitem" id="{{$loginmenu.4}}">{{$loginmenu.1}}</a></li> - {{/foreach}} + {{/foreach}} --!> </ul> </li> {{foreach $nav.loginmenu as $loginmenu}} diff --git a/view/tpl/remote_login.tpl b/view/tpl/remote_login.tpl new file mode 100644 index 000000000..1d11fb712 --- /dev/null +++ b/view/tpl/remote_login.tpl @@ -0,0 +1 @@ +<a href="rmagic" class="btn btn-default rmagic-button">{{$title}}</a> |