Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Commit e3f7c5f

Browse files
Merge pull request #517 from rabbitmq/restore-log-files-in-UI
priv/www/js/tmpl/node.ejs: Restore the list of log files
2 parents 42f5ade + b57a79a commit e3f7c5f

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

priv/www/js/tmpl/node.ejs

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<td>
4040
<%
4141
for (var i = 0; i < node.config_files.length; i++) {
42-
var config = node.config_files[i];
42+
var config = fmt_escape_html(node.config_files[i]);
4343
%>
4444
<code><%= config %></code>
4545
<% } %>
@@ -52,15 +52,19 @@
5252
</td>
5353
</tr>
5454
<tr>
55-
<th>Log file</th>
56-
<td>
57-
<code><%= node.log_file %></code>
58-
</td>
59-
</tr>
60-
<tr>
61-
<th>SASL log file</th>
55+
<th>
56+
<% if (node.log_files.length == 1) { %>
57+
Log file
58+
<% } else { %>
59+
Log files
60+
<% } %>
61+
</th>
6262
<td>
63-
<code><%= node.sasl_log_file %></code>
63+
<pre style="margin-top: 0px; margin-bottom: 0px;"><%
64+
for (var i = 0; i < node.log_files.length; i++) {
65+
var config = fmt_escape_html(node.log_files[i]);
66+
%><%= config %>
67+
<% } %></pre>
6468
</td>
6569
</tr>
6670
</table>

0 commit comments

Comments
 (0)