Skip to content

Commit ee4250d

Browse files
jbowringjc21
authored andcommitted
Add SSL column to streams table UI
1 parent 3dbc70f commit ee4250d

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

frontend/js/app/nginx/stream/list/item.ejs

+7-1
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,20 @@
1616
</td>
1717
<td>
1818
<div>
19-
<% if (tcp_forwarding) { %>
19+
<% if (certificate) { %>
20+
<span class="tag"><%- i18n('streams', 'tcp+ssl') %></span>
21+
<% }
22+
else if (tcp_forwarding) { %>
2023
<span class="tag"><%- i18n('streams', 'tcp') %></span>
2124
<% }
2225
if (udp_forwarding) { %>
2326
<span class="tag"><%- i18n('streams', 'udp') %></span>
2427
<% } %>
2528
</div>
2629
</td>
30+
<td>
31+
<div><%- certificate && certificate_id ? i18n('ssl', certificate.provider) : i18n('all-hosts', 'none') %></div>
32+
</td>
2733
<td>
2834
<%
2935
var o = isOnline();

frontend/js/app/nginx/stream/list/main.ejs

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<th><%- i18n('streams', 'incoming-port') %></th>
44
<th><%- i18n('str', 'destination') %></th>
55
<th><%- i18n('streams', 'protocol') %></th>
6+
<th><%- i18n('str', 'ssl') %></th>
67
<th><%- i18n('str', 'status') %></th>
78
<% if (canManage) { %>
89
<th>&nbsp;</th>

frontend/js/i18n/messages.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@
180180
"help-title": "What is a Stream?",
181181
"help-content": "A relatively new feature for Nginx, a Stream will serve to forward TCP/UDP traffic directly to another computer on the network.\nIf you're running game servers, FTP or SSH servers this can come in handy.",
182182
"search": "Search Incoming Port…",
183-
"ssl-certificate": "SSL Certificate for TCP Forwarding"
183+
"ssl-certificate": "SSL Certificate for TCP Forwarding",
184+
"tcp+ssl": "TCP+SSL"
184185
},
185186
"certificates": {
186187
"title": "SSL Certificates",

0 commit comments

Comments
 (0)