Sha256: 53a5b6a2cbc76e5eea7bf1340fbe801fa12bf197e5b3a02195a6981438de5c66
Contents?: true
Size: 1.4 KB
Versions: 5
Compression:
Stored size: 1.4 KB
Contents
<% if Karafka::Web.config.commanding.active %> <div class="col-md-12 col-lg-4 text-end"> <div class="d-flex flex-nowrap float-end"> <% probe_path = root_path('commanding', process.id, 'probe') disabled_class = process.status != 'stopped' ? '' : 'disabled' %> <form action="<%= probe_path %>" method="post" class="d-inline-flex align-items-center mx-1"> <%== csrf_tag(probe_path) %> <input type="submit" value="⚙ Probe" class="btn btn-secondary btn-sm <%= disabled_class %>"/> </form> <% quiet_path = root_path('commanding', process.id, 'quiet') disabled_class = process.status == 'running' ? '' : 'disabled' %> <form action="<%= quiet_path %>" method="post" class="d-inline-flex align-items-center mx-1"> <%== csrf_tag(quiet_path) %> <input type="submit" value="⏸ Quiet" class="btn btn-warning btn-sm <%= disabled_class %>"/> </form> <% stop_path = root_path('commanding', process.id, 'stop') disabled_class = process.status != 'stopping' && process.status != 'stopped' ? '' : 'disabled' %> <form action="<%= stop_path %>" method="post" class="d-inline-flex align-items-center mx-1"> <%== csrf_tag(stop_path) %> <input type="submit" value="■ Stop" class="btn btn-danger btn-sm <%= disabled_class %>"/> </form> </div> </div> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems