Skip to content

Commit

Permalink
Console: dedupe html ids in tunnels section (sidebar conflicts)
Browse files Browse the repository at this point in the history
  • Loading branch information
vituperative committed Jan 17, 2025
1 parent 03cd91c commit c3f8a30
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ public void renderTransitSummary(Writer out) throws IOException {
tbuf.append("<th class=tcount data-sortable data-sort-method=number data-sort-default>").append(_t("Tunnels")).append("</th>")
.append("<th id=data data-sortable data-sort-method=filesize>").append(_t("Data")).append("</th>")
//.append("<th data-sortable data-sort-method=number>").append(_t("Speed")).append("</th>")
.append("<th id=banned data-sortable hidden>" + _t("Banned")).append("</th>")
.append("<th id=isBanned data-sortable hidden>" + _t("Banned")).append("</th>")
.append("<th id=edit data-sort-method=none>" + _t("Edit")).append("</th>")
.append("</tr></thead>\n<tbody id=transitPeers>\n");
out.write(tbuf.toString());
Expand Down Expand Up @@ -417,7 +417,6 @@ public void renderTransitSummary(Writer out) throws IOException {
sb.append("</td></tr>\n");
}
sb.append("</tbody>\n</table>\n");
//if (bannedCount == 0) {sb.append("<style>th#banned,td.isBanned{display:none!important}</style>\n");}
out.write(sb.toString());
out.flush();
sb.setLength(0);
Expand Down
2 changes: 1 addition & 1 deletion apps/routerconsole/jsp/transit.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<%=intl.title("Most Recent Transit Tunnels")%>
<link href=/themes/console/tablesort.css rel=stylesheet>
</head>
<body id=transit>
<body id=transitRecent>
<script nonce=<%=cspNonce%>>progressx.show(theme);progressx.progress(0.1);</script>
<%@include file="sidebar.jsi" %>
<h1 class=netwrk><%=intl._t("Most Recent Transit Tunnels")%></h1>
Expand Down
2 changes: 1 addition & 1 deletion apps/routerconsole/jsp/transitfast.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<%=intl.title("Fastest Transit Tunnels")%>
<link href=/themes/console/tablesort.css rel=stylesheet>
</head>
<body id=transit>
<body id=transitFast>
<script nonce=<%=cspNonce%>>progressx.show(theme);progressx.progress(0.1);</script>
<%@include file="sidebar.jsi" %>
<h1 class=netwrk><%=intl._t("Fastest Transit Tunnels")%></h1>
Expand Down

0 comments on commit c3f8a30

Please sign in to comment.