diff options
| author | luccioman <luccioman@users.noreply.github.com> | 2017-10-21 10:57:36 +0200 |
|---|---|---|
| committer | luccioman <luccioman@users.noreply.github.com> | 2017-10-21 10:57:36 +0200 |
| commit | af198b990be05a1962b5b9b9962084a2c3a69d6b (patch) | |
| tree | 763252681d0094872e1a7e10470c4a8321360ff8 /htroot/env/templates | |
| parent | 1de86cf1bf35698359b3c1a7e32a32cdc5ba32b8 (diff) | |
Added an optional login link/status to the search public top nav bar.
Thus allowing a more convenient way (wihout the need to go to the admin
section) to login when searching on your remote or password protected
peer and benefit from extended search features such as Heuristics,
Bookmarking or JavasScript resorting.
Can be disabled using the ConfigSearchPage_p.html.
Diffstat (limited to 'htroot/env/templates')
| -rw-r--r-- | htroot/env/templates/simpleSearchHeader.template | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/htroot/env/templates/simpleSearchHeader.template b/htroot/env/templates/simpleSearchHeader.template index 3c3c58728..3f3f35d7d 100644 --- a/htroot/env/templates/simpleSearchHeader.template +++ b/htroot/env/templates/simpleSearchHeader.template @@ -8,11 +8,28 @@ <span class="icon-bar"></span> <span class="icon-bar"></span> </button> - <a class="navbar-brand hidden-xs" id="navbar-brand" href="#[promoteSearchPageGreeting.homepage]#" style="position:absolute;top:-6px;display:inline;white-space:nowrap;"> - <img id="greeting-icon" class="yacylogo" src="#[promoteSearchPageGreeting.smallImage]#" alt="#[promoteSearchPageGreeting.imageAlt]#" style="height:auto; width:auto; max-width:200px; max-height:32px;vertical-align:middle;float:left;"> <span id="greeting" style="position:absolute; top:50%;float:left;"></span> + <a class="navbar-brand hidden-xs" id="navbar-brand" href="#[promoteSearchPageGreeting.homepage]#" style="margin-top:-6px;white-space:nowrap;"> + <img id="greeting-icon" class="yacylogo" src="#[promoteSearchPageGreeting.smallImage]#" alt="#[promoteSearchPageGreeting.imageAlt]#" + style="height:auto; width:auto; max-width:200px; max-height:32px;vertical-align:middle;float:left;"> + <span id="greeting"></span> </a> </div> <div class="navbar-collapse collapse"> + <ul class="nav navbar-nav"> + #(showLogin)#:: + <li id="header_login" title="You are authenticated as #[userName]#" class="navbar-text"> + <span class="glyphicon glyphicon-user text-info"></span> + <span>#[userName]#</span> + </li> + :: + <li id="header_login"> + <a title="Log in to use extended search features" href="#[loginURL]#"> + <span>Log in</span> + <span class="glyphicon glyphicon-log-in"></span> + </a> + </li> + #(/showLogin)# + </ul> <ul class="nav navbar-nav navbar-right"> <li id="header_search" class="dropdown"> <a href="#" data-toggle="dropdown" class="dropdown-toggle" role="button" aria-haspopup="true" aria-expanded="false" title="Search Interfaces"> |
