Commit 6bb92135 authored by Michael Ritter's avatar Michael Ritter
Browse files

New menuheader with css to emulate bootstraps nav

parent 699e03fb
...@@ -12,59 +12,44 @@ on Libraries node in Projects view can be used to add the JSTL 1.1 library. ...@@ -12,59 +12,44 @@ on Libraries node in Projects view can be used to add the JSTL 1.1 library.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"> "http://www.w3.org/TR/html4/loose.dtd">
<div class="menuheader"> <ul class="nav justify-content-center">
<table> <um:Auth role="Status" showUnauthenticated="true">
<tr> <li class="nav-item">
<td align="center"> <a class="nav-link" href="Status">Status</a>
<div class="menucell"> </li>
<um:Auth role="Status" showUnauthenticated="true"> </um:Auth>
<a href="Status">Status</a>
</um:Auth>
<BR>
</div>
</td>
<td align="center"> <um:Auth role="Log" showUnauthenticated="true">
<um:Auth role="Log"> <li class="nav-item">
<div class="menucell"> <a class="nav-link" href="EventLog?clear=1">Event Log</a>
<a href="EventLog?clear=1">Event Log</a> </li>
<BR> </um:Auth>
</div>
</um:Auth>
</td>
<td align="center"> <c:if test="${authmanagement}">
<div class="menucell"> <um:Auth role="Users">
<c:if test="${authmanagement}"> <li class="nav-item">
<um:Auth role="Users"> <a class="nav-link" href="Users">Accounts</a>
<a href="Users">Accounts</a> </li>
</um:Auth> </um:Auth>
<um:Auth role="!Users"> <um:Auth role="!Users">
<a href="passwordchange.jsp">Change Password</a> <li class="nav-item">
</um:Auth> <a class="nav-link" href="passwordchange.jsp">Change Password</a>
</c:if> </li>
<BR> </um:Auth>
</div> </c:if>
</td> <um:Auth role="Status">
<li class="nav-item">
<a class="nav-link" href="UpdateSettings">System Settings</a>
<td align="center"> </li>
<um:Auth role="Status"> </um:Auth>
<div class="menucell">
<a href="UpdateSettings">System Settings</a>
</div>
</um:Auth>
</td>
<td align="center"> <um:Auth role="Status">
<um:Auth role="Status"> <li class="nav-item">
<div class="menucell"> <a class="nav-link" href="Statistics">Statistics</a>
<a href="Statistics">Statistics</a> </li>
</div> </um:Auth>
</um:Auth> </ul>
</td>
</tr>
</table>
</div>
<div class="header"> <div class="header">
<img src="images/title.jpg" alt="ACE Audit Manager"><BR><div style="font-size: large; color: red">${globalMessage}</div> <img src="images/title.jpg" alt="ACE Audit Manager"><BR><div style="font-size: large; color: red">${globalMessage}</div>
</div> </div>
\ No newline at end of file
...@@ -3,8 +3,8 @@ body { ...@@ -3,8 +3,8 @@ body {
font-size: 10px; font-size: 10px;
width: 750px; width: 750px;
border: 1px solid #000000; border: 1px solid #000000;
margin-left: auto; margin-left: auto !important;
margin-right: auto; margin-right: auto !important;
} }
h1 { h1 {
...@@ -31,6 +31,39 @@ input { ...@@ -31,6 +31,39 @@ input {
font-size: 12px; font-size: 12px;
} }
/*
* Taken from bootstrap. If we import a lot of rules break and we end up
* with broken pages. The ui in general needs an overhaul but that's a lot
* of work.
*/
ul {
margin-top: 0;
margin-bottom: 1rem;
}
.nav {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flex;
display: flex;
padding-left: 0;
margin-bottom: 0;
list-style: none;
}
.nav-link {
display: block;
padding: .5em 1em;
}
.justify-content-center {
-webkit-box-pack: center !important;
-webkit-justify-content: center !important;
-ms-flex-pack: center !important;
justify-content: center !important;
}
.standardBody { .standardBody {
font-size: 12px; font-size: 12px;
margin-top: 0px; margin-top: 0px;
......
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