Commit 98afa616 authored by Ubbo Veentjer's avatar Ubbo Veentjer
Browse files

mark revision shown, move rev-warning to content area

parent cfa4ef29
Pipeline #138603 passed with stages
in 9 minutes and 22 seconds
<%@ page contentType="text/html" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri = "http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://textgrid.info/rep/utils" prefix="utils" %>
......@@ -36,12 +37,6 @@
<aside class="tgrep sidebar">
<c:if test="${higherRevisionAvailable}">
<section class="tgrep sidebar_panel">
There is a higher revision available!
</section>
</c:if>
<section class="tgrep sidebar_panel">
<h3 class="tgrep sidebar_subheading">${i18n['metadata']}</h3>
<!-- TODO: each for agent, pid, etc -->
......@@ -94,9 +89,9 @@
<h3 class="tgrep sidebar_subheading">${i18n['revisions']}</h3>
<ul class="tgrep sidebar_list">
<c:forEach items="${revisions}" var="rev">
<li class="tgrep sidebar_item">
<a href="/browse/${rev.value}">${rev.key}</a>
</li>
<li class="tgrep sidebar_item ${rev.key == metadata.object.generic.generated.revision ? '-current' : ''}">
<a href="/browse/${rev.value}">${rev.key}</a>
</li>
</c:forEach>
</ul>
</section>
......@@ -194,9 +189,15 @@
</c:if>
<main class="tgrep main">
<!--
<h1 class="tgrep main_heading">Browse</h1>
-->
<c:if test="${higherRevisionAvailable}">
<fieldset class="tgrep advanced-search_fieldset">
<legend class="tgrep advanced-search_legend">Higher revision available</legend>
A higher revision of this document has been published.
You are now viewing revision ${metadata.object.generic.generated.revision}.
</fieldset>
</c:if>
<%@ include file="components/path.jsp" %>
<c:choose>
......
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