| | |
| | | // TODO: This code should be cleaned up after switching to the velocity template engine. |
| | | query.setParameter("option", "indexes"); |
| | | if (query.getResultList().isEmpty()) { |
| | | templateVars.put("INDEXES", "+Indexes"); |
| | | templateVars.put("INDEXES", "-Indexes"); |
| | | } else { |
| | | templateVars.put("INDEXES", "-Indexes"); |
| | | templateVars.put("INDEXES", "+Indexes"); |
| | | } |
| | | // TODO: This code should be cleaned up after switching to the velocity template engine. |
| | | query.setParameter("option", "includes"); |
| | | if (query.getResultList().isEmpty()) { |
| | | templateVars.put("INCLUDES", "+IncludesNoExec"); |
| | | } else { |
| | | if (query.getResultList().isEmpty()) { |
| | | templateVars.put("INCLUDES", "-Includes"); |
| | | } else { |
| | | templateVars.put("INCLUDES", "+IncludesNoExec"); |
| | | } |
| | | // TODO: This code should be cleaned up after switching to the velocity template engine. |
| | | query.setParameter("option", "multiviews"); |
| | | if (query.getResultList().isEmpty()) { |
| | | templateVars.put("MULTIVIEWS", "+MultiViews"); |
| | | templateVars.put("MULTIVIEWS", "-MultiViews"); |
| | | } else { |
| | | templateVars.put("MULTIVIEWS", "-MultiViews"); |
| | | templateVars.put("MULTIVIEWS", "+MultiViews"); |
| | | } |
| | | // TODO: This code should be cleaned up after switching to the velocity template engine. |
| | | query.setParameter("option", "htdocsfallback"); |