Skip to content

Commit

Permalink
Remove first loading flag
Browse files Browse the repository at this point in the history
  • Loading branch information
k-tamura committed May 16, 2018
1 parent 8c9a765 commit f1b69c1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
@Controller
public class IndexController extends AbstractController {

private boolean isFirstLoad = true;

@RequestMapping(value = "/")
public ModelAndView init(HttpSession ses, ModelAndView mav, Locale locale) {
ses.removeAttribute("dlpinit");
Expand All @@ -33,8 +31,6 @@ public ModelAndView init(HttpSession ses, ModelAndView mav, Locale locale) {

String mode = System.getProperty("easybuggy.mode");
mav.addObject("isOnlyVulnerabilities", mode != null && mode.equalsIgnoreCase("only-vulnerabilities"));
mav.addObject("isFirstLoad", isFirstLoad);
isFirstLoad = false;
return mav;
}
}
3 changes: 1 addition & 2 deletions src/main/resources/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
<table style="width: 720px;">
<tr>
<td>
<th:block th:if="${isFirstLoad}"><img src="images/easybuggy.png" class="bounceInRight animated" /></th:block>
<th:block th:unless="${isFirstLoad}"><img src="images/easybuggy.png" /></th:block>
<img src="images/easybuggy.png" class="bounceInRight animated" width="324px" height="116px" />
</td>
<td><span class="glyphicon glyphicon-warning-sign"></span>
<span th:text="#{description.all}"></span></td>
Expand Down

0 comments on commit f1b69c1

Please sign in to comment.