aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-02-03 13:47:29 -0800
committerzotlabs <mike@macgirvin.com>2017-02-03 13:47:29 -0800
commitf79a11cbf7276cff66a60fbf72bec4518bab10b0 (patch)
tree26a55d9c84e22f73d4d391c24a7e84c20ac80d97
parentbae37c8e6f8b61976b87ae992985cfc31750d895 (diff)
downloadvolse-hubzilla-f79a11cbf7276cff66a60fbf72bec4518bab10b0.tar.gz
volse-hubzilla-f79a11cbf7276cff66a60fbf72bec4518bab10b0.tar.bz2
volse-hubzilla-f79a11cbf7276cff66a60fbf72bec4518bab10b0.zip
trying nav-login as modal
-rwxr-xr-xview/tpl/nav.tpl27
1 files changed, 20 insertions, 7 deletions
diff --git a/view/tpl/nav.tpl b/view/tpl/nav.tpl
index f59afee5b..3fccfaeb7 100755
--- a/view/tpl/nav.tpl
+++ b/view/tpl/nav.tpl
@@ -156,13 +156,7 @@
{{if $nav.login && !$userinfo}}
<li class="">
- <a href="#" title="{{$nav.loginmenu.0.3}}" id="{{$nav.loginmenu.0.4}}" onclick="openClose('nav-login'); return false;">{{$nav.loginmenu.0.1}} <span class="caret" id="loginmenu-caret"></span></a>
- <div id="nav-login" class="dropdown-menu">
- <div class="form-group">
- {{$nav.login}}
- </div>
- {{$nav.remote_login}}
- </div>
+ <a href="#" title="{{$nav.loginmenu.0.3}}" id="{{$nav.loginmenu.0.4}}" data-toggle="modal" data-target="#nav-login">{{$nav.loginmenu.0.1}} <span class="caret" id="loginmenu-caret"></span></a>
</li>
{{/if}}
@@ -227,6 +221,25 @@
{{$navapps}}
</div>
</div>
+
+
+ {{if $nav.login && !$userinfo}}
+
+ <div id="nav-login" class="modal" role="dialog">
+ <div class="modal-dialog">
+ <div class="modal-header"><h3>{{$nav.loginmenu.0.1}}</h3></div>
+ <div class="modal-body">
+ <div class="form-group">
+ {{$nav.login}}
+ {{$nav.remote_login}}
+ </div>
+ </div>
+ </div>
+ </div>
+
+ {{/if}}
+
+
{{if $nav.help.6}}
<div id="contextual-help-content" class="contextual-help-content">
{{$nav.help.5}}