Skip to content

Commit

Permalink
JSTL cartable fix3
Browse files Browse the repository at this point in the history
  • Loading branch information
oskopek committed Apr 15, 2014
1 parent 0f1633f commit 813b156
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions carcv-webapp/src/main/webapp/app/cartable.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
</style>
</head>
<body>
<c:set var = "adminRole" value = "'admin'" />
<c:set var = "isAdmin" value = "${request.isUserInRole(adminRole)}" />
<c:out value = "IsAdmin: ${isAdmin eq true ? 'true' : 'false'}" />
<c:set var = "isAdmin" value = "${request.isUserInRole('admin')}" />
<c:out value = "IsAdmin: ${isAdmin ? 'true' : 'false'}" />
<table style="border: 1px solid #C0C0C0;">
<tr>
<th style="width: 160px; height: 15px; background-color: #B0C4DE;">Car preview</th>
Expand All @@ -27,7 +26,7 @@
<th style="width: 15%; height: 15px; background-color: #B0C4DE;">Video</th>
<th style="width: 15%; height: 15px; background-color: #B0C4DE;">Pictures</th>
<th style="width: 15%; height: 15px; background-color: #B0C4DE;">Report</th>
<c:if test="${isAdmin eq true}">
<c:if test="${isAdmin}">
<th style="width: 10%; height: 15px; background-color: #B0C4DE;">Delete</th>
</c:if>
</tr>
Expand All @@ -44,7 +43,7 @@
<td><a href="/servlet/DisplayImage?path=${member.previewPath}" target="_top">View preview</a></td>
<td><a href="/servlet/GenerateReport?entry_id=${member.entryId}&timezone=${member.timeZone}" target="_top">Generate
report</a></td>
<c:if test="${isAdmin eq true}">
<c:if test="${isAdmin}">
<td>
<button onclick="confirmRemove()">Delete</button>
<script>
Expand Down

0 comments on commit 813b156

Please sign in to comment.