Skip to content

Commit 56b05e2

Browse files
author
Vladimir Kotal
authored
search.jsp cleanup (#3851)
* use span instead of font * remove unused variables
1 parent 523d6b7 commit 56b05e2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

opengrok-web/src/main/webapp/search.jsp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ include file="httpheader.jspf"
117117
<label for="sortby">Sort by</label>
118118
<%
119119
{
120-
PageConfig cfg = PageConfig.get(request);
121120
SearchHelper searchHelper = (SearchHelper) request.getAttribute(SearchHelper.REQUEST_ATTR);
122121
StringBuilder url = createUrl(request, searchHelper, true).append("&amp;").
123122
append(QueryParameters.SORT_PARAM_EQ);
@@ -149,7 +148,6 @@ include file="menu.jspf"
149148

150149
<div id="results"> <%
151150
{
152-
PageConfig cfg = PageConfig.get(request);
153151
SearchHelper searchHelper = (SearchHelper) request.getAttribute(SearchHelper.REQUEST_ATTR);
154152
// TODO spellchecking cycle below is not that great and we only create
155153
// suggest links for every token in query, not for a query as whole
@@ -171,7 +169,7 @@ include file="menu.jspf"
171169
} else if (searchHelper.getHits().length == 0) {
172170
List<Suggestion> hints = searchHelper.getSuggestions();
173171
for (Suggestion hint : hints) {
174-
%><p class="suggestions"><font color="#cc0000">Did you mean (for <%= hint.getName() %>)</font>:<%
172+
%><p class="suggestions"><span style="color: #cc0000; ">Did you mean (for <%= hint.getName() %>)</span>:<%
175173
if (hint.getFreetext() != null) {
176174
for (String word : hint.getFreetext()) {
177175
%> <a href="search?<%= QueryParameters.FULL_SEARCH_PARAM_EQ %>

0 commit comments

Comments
 (0)