Skip to content

Commit

Permalink
Merge pull request #5 from veracode/bugfix/ignore-listen-buttons
Browse files Browse the repository at this point in the history
Fix ignore/listen buttons
  • Loading branch information
relaxnow authored Oct 24, 2019
2 parents f90ae98 + 8c63685 commit 6950c62
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/main/webapp/WEB-INF/views/blabbers.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
pageEncoding="US-ASCII"%>
<%@ page import="com.veracode.verademo.model.Blabber"%>
<%@ page import="java.util.*"%>
<%@ page import="org.springframework.web.util.HtmlUtils" %>

<!DOCTYPE html>
<html lang="en">
Expand Down Expand Up @@ -83,8 +84,6 @@
<th class="commenterName"><a href="?sort=blab_name ASC">Name</a></th>
<th class="commenterJoinDate"><a
href="?sort=date_created DESC">Join date</a></th>
<th class="commenterListening"><a
href="?sort=listening DESC">Listening</a></th>
<th class="commenterListeners"><a
href="?sort=listeners DESC">Listeners</a></th>
<th></th>
Expand All @@ -107,9 +106,6 @@
<td class="commenterJoinDate">
<%= blabber.getCreatedDateString() %>
</td>
<td class="commenterListeners">
&nbsp;<%= blabber.getNumberListeners() %>&nbsp;
</td>
<td class="commenterListening">
&nbsp;<%= blabber.getNumberListening() %>&nbsp;
</td>
Expand All @@ -119,9 +115,9 @@
<input type="hidden" name="blabberUsername"
value="<%= HtmlUtils.htmlEscape(blabber.getUsername()) %>" />
<input type="hidden" name="command"
value="<%=(blabber.getNumberListening() == 1 ? "ignore" : "listen")%>" />
value="<%=(blabber.getNumberListeners() == 1 ? "ignore" : "listen")%>" />
<input type="submit" class="btn btn-default pull-right" name="button"
value="<%=(blabber.getNumberListening() == 1 ? "Ignore" : "Listen")%>" />
value="<%=(blabber.getNumberListeners() == 1 ? "Ignore" : "Listen")%>" />
</form>
</td>
</tr>
Expand Down

0 comments on commit 6950c62

Please sign in to comment.