Commit 2f1cb367 authored by Ubbo Veentjer's avatar Ubbo Veentjer
Browse files

disabled shelf notice

parent 75ecb83e
Pipeline #132369 passed with stages
in 7 minutes and 9 seconds
package info.textgrid.rep.basket;
import java.util.Locale;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import info.textgrid.rep.i18n.I18N;
import info.textgrid.rep.i18n.I18NProvider;
@Controller
public class BasketController {
private I18NProvider i18nProvider;
private static final Log log = LogFactory.getLog(BasketController.class);
@Autowired
public BasketController(I18NProvider i18nProvider) {
this.i18nProvider = i18nProvider;
}
@GetMapping("/shelf")
public String render(
Model model,
Locale locale) {
I18N i18n = i18nProvider.getI18N(locale);
model.addAttribute("i18n", i18n.getTranslationMap());
model.addAttribute("language", i18n.getLanguage());
return "basket";
}
}
<%@ page contentType="text/html" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://textgrid.info/rep/utils" prefix="utils" %>
<%@ include file="base/head.jsp" %>
<%@ include file="components/js-incl.jsp" %>
<div class="tgrep wrap">
<div class="tgrep sidebar-toggle">
<button class="tgrep sidebar-toggle_button -show">${i18n['show-sidebar']}</button>
<button class="tgrep sidebar-toggle_button -hide">${i18n['hide-sidebar']}</button>
</div>
<aside class="tgrep sidebar">
</aside>
<main class="tgrep main">
<h1 class="tgrep main_heading">${i18n['shelf']}</h1>
<header class="tgrep header">
<h2 class="tgrep header_heading">The shelf is temporarely disabled. It will be back soon.</h2>
</header>
</main>
</div>
<%@ include file="base/foot.jsp" %>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment