Skip to content

Commit

Permalink
Fixes #38153 - Show host's IPv6 in the 'host built' mail
Browse files Browse the repository at this point in the history
  • Loading branch information
stejskalleos authored and nofaralfasi committed Jan 21, 2025
1 parent 9ed5f0b commit 2b7e57a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion app/views/host_mailer/host_built.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@
<td width="82%" class="hosts-rows"><%= link_to @host, host_url(:id => @host) %></td>
</tr>
<tr>
<td width="18%" class="hosts-rows"><b><%= _("IP") %></b></td>
<td width="18%" class="hosts-rows"><b><%= _("IPv4") %></b></td>
<td width="82%" class="hosts-rows"><%= @host.ip %></td>
</tr>
<tr>
<td width="18%" class="hosts-rows"><b><%= _("IPv6") %></b></td>
<td width="82%" class="hosts-rows"><%= @host.ip6 %></td>
</tr>
</table>
</div>
3 changes: 2 additions & 1 deletion app/views/host_mailer/host_built.text.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<%= _("Your host has finished building:") %>

<%= _("Hostname:") %> <%= @host.fqdn %>
<%= _("IP:") %> <%= @host.ip %>
<%= _("IPv4:") %> <%= @host.ip %>
<%= _("IPv6:") %> <%= @host.ip6 %>

<%= _("View in Foreman:") %>
<%= host_url(:id => @host) %>

0 comments on commit 2b7e57a

Please sign in to comment.