fix #2400 add tooltips

This commit is contained in:
Shinsuke Sugaya 2020-02-14 06:21:31 +09:00
parent 5b3ebc8235
commit 1b0b3b6571
4 changed files with 39 additions and 9 deletions

View file

@ -2883,6 +2883,21 @@ public class FessLabels extends UserMessages {
/** The key of the message: Your system is out of support. See EOL page. */
public static final String LABELS_eol_error = "{labels.eol_error}";
/** The key of the message: Search View */
public static final String LABELS_tooltip_search_view = "{labels.tooltip_search_view}";
/** The key of the message: Run Crawler */
public static final String LABELS_tooltip_run_crawler = "{labels.tooltip_run_crawler}";
/** The key of the message: Forum */
public static final String LABELS_tooltip_forum = "{labels.tooltip_forum}";
/** The key of the message: Help */
public static final String LABELS_tooltip_onlinehelp = "{labels.tooltip_onlinehelp}";
/** The key of the message: Logout */
public static final String LABELS_tooltip_logout = "{labels.tooltip_logout}";
/** The key of the message: Advance */
public static final String LABELS_ADVANCE = "{labels.advance}";

View file

@ -952,6 +952,11 @@ labels.facet_is_not_found=No match
labels.doc_score=Score:
labels.development_mode_warning=Running as Development mode. For production use, please install a standalone elasticsearch server.
labels.eol_error=Your system is out of support. See EOL page.
labels.tooltip_search_view=Search View
labels.tooltip_run_crawler=Run Crawler
labels.tooltip_forum=Forum
labels.tooltip_onlinehelp=Help
labels.tooltip_logout=Logout
labels.advance=Advance
labels.advance_search_title=Advanced Search
labels.advance_search_must_queries=All these words

View file

@ -952,6 +952,11 @@ labels.facet_is_not_found=No match
labels.doc_score=Score:
labels.development_mode_warning=Running as Development mode. For production use, please install a standalone elasticsearch server.
labels.eol_error=Your system is out of support. See EOL page.
labels.tooltip_search_view=Search View
labels.tooltip_run_crawler=Run Crawler
labels.tooltip_forum=Forum
labels.tooltip_onlinehelp=Help
labels.tooltip_logout=Logout
labels.advance=Advance
labels.advance_search_title=Advanced Search
labels.advance_search_must_queries=All these words

View file

@ -11,30 +11,35 @@
</ul>
<ul class="navbar-nav ml-auto">
<c:if test="${eoled}">
<li class="nav-item" data-toggle="tooltip" data-placement="left" title="<la:message
key="labels.eol_error" />">
<li class="nav-item" data-toggle="tooltip" data-placement="left"
title="<la:message key="labels.eol_error" />">
<a class="nav-link active" href="${eolLink}" target="_olh"><em class="fas fa-times-circle text-warning"></em></a></li>
</c:if>
<c:if test="${developmentMode}">
<li class="nav-item" data-toggle="tooltip" data-placement="left" title="<la:message
key="labels.development_mode_warning" />">
<li class="nav-item" data-toggle="tooltip" data-placement="left"
title="<la:message key="labels.development_mode_warning" />">
<a class="nav-link active" href="${installationLink}" target="_olh"><em class="fa fa-exclamation-triangle text-warning"></em></a></li>
</c:if>
<li class="nav-item" ><a class="nav-link" href="${contextPath}/"><em class="fa fa-list-alt"></em></a></li>
<li class="nav-item" data-toggle="tooltip" data-placement="left"
title="<la:message key="labels.tooltip_search_view" />"><a class="nav-link" href="${contextPath}/"><em class="fa fa-list-alt"></em></a></li>
<c:if test="${fe:permission('admin-scheduler')}">
<li class="nav-item" ><a class="nav-link"
<li class="nav-item" data-toggle="tooltip" data-placement="left"
title="<la:message key="labels.tooltip_run_crawler" />"><a class="nav-link"
href="${contextPath}/admin/scheduler/details/4/default_crawler"><em
class="fa fa-play-circle"></em></a></li>
</c:if>
<c:if test="${not empty forumLink}">
<li class="nav-item" ><a class="nav-link" href="${forumLink}" target="_forum"><em
<li class="nav-item" data-toggle="tooltip" data-placement="left"
title="<la:message key="labels.tooltip_forum" />"><a class="nav-link" href="${forumLink}" target="_forum"><em
class="fas fa-comments"></em></a></li>
</c:if>
<c:if test="${not empty helpLink}">
<li class="nav-item" ><a class="nav-link" href="${helpLink}" target="_olh"><em
<li class="nav-item" data-toggle="tooltip" data-placement="left"
title="<la:message key="labels.tooltip_onlinehelp" />"><a class="nav-link" href="${helpLink}" target="_olh"><em
class="fa fa-question-circle"></em></a></li>
</c:if>
<li class="nav-item" ><a class="nav-link" href="${contextPath}/logout"><em
<li class="nav-item" data-toggle="tooltip" data-placement="left"
title="<la:message key="labels.tooltip_logout" />"><a class="nav-link" href="${contextPath}/logout"><em
class="fa fa-sign-out-alt"></em></a></li>
</ul>
</nav>