Sha256: b823571e363c2f4c98dbfd2900e5cae3fdb90abece5c9fae243a8397a454fd23

Contents?: true

Size: 548 Bytes

Versions: 5

Compression:

Stored size: 548 Bytes

Contents

<%= render_file 'common/header.html.erb' %>
<h1 id="nodes">List all nodes for DC, sorted by name</h1>
<ul>
<% nodes.sort {|a,b| a['Node'] <=> b['Node'] }.each do |snode|
%> <li id="node_#{snode['ID']"><a href="ssh://<%= snode['Address']%>"><%= snode['Address'].ljust(16) %></a> <%= snode['Node'] %><%
  snode['Meta'].each do |k,v|
    if v && !v.empty?
%>
   <span class="badge badge-pill badge-primary float-right"><%= k %>:&nbsp;<%= v%></span>
<%
    end
  end if snode['Meta']
%>
</li>
<% end %>
</ul>
<%= render_file 'common/footer.html.erb' %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
consul-templaterb-1.0.7 samples/nodes.html.erb
consul-templaterb-1.0.6 samples/nodes.html.erb
consul-templaterb-1.0.5 samples/nodes.html.erb
consul-templaterb-1.0.4 samples/nodes.html.erb
consul-templaterb-1.0.3 samples/nodes.html.erb