Skip to content

Commit

Permalink
fixed Asqatasun#55 (2) - Added "back to the homepage" link when resul…
Browse files Browse the repository at this point in the history
…t has errors
  • Loading branch information
dzc34 committed Jun 5, 2017
1 parent f2093af commit 795d7a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ public String getPageResultFromGet( final Model model,
model.addAttribute("defaultAlgorithm", defaultAlgorithm);
model.addAttribute("algo", colorModel.getAlgo());
if (result.hasErrors()) {
model.addAttribute("errorResult", "result.hasErrors");
return mainPageView;
} else {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

<div id="contrast-finder-logo">
<c:choose>
<c:when test="${empty colorResult}">
<c:when test="${empty colorResult && empty errorResult}">
<img src="Images/contrast_finder_logo.png"
alt="" />
</c:when>
Expand Down

0 comments on commit 795d7a2

Please sign in to comment.