Sha256: 8257088b545934204fa24725beb5e0dcba287142aad498075c17d11aa1c298a8
Contents?: true
Size: 1.78 KB
Versions: 2
Compression:
Stored size: 1.78 KB
Contents
<% blazer_title "Checks" %> <div id="header"> <input id="search" type="text" placeholder="Start typing a query or state" style="width: 300px; display: inline-block;" class="search form-control" /> </div> <table id="checks" class="table"> <thead> <tr> <th>Query</th> <th style="width: 10%;">State</th> <th style="width: 10%;">Run</th> <th style="width: 20%;">Notify</th> <th style="width: 15%;"></th> </tr> </thead> <tbody> <% @checks.each do |check| %> <tr> <td><%= link_to check.query.name, check.query %> <span class="text-muted"><%= check.try(:check_type).to_s.gsub("_", " ") %></span></td> <td> <% if check.state %> <small class="check-state <%= check.state.parameterize.gsub("-", "_") %>"><%= check.state.upcase %></small> <% end %> </td> <td><%= check.schedule if check.respond_to?(:schedule) %></td> <td> <ul class="list-unstyled" style="margin-bottom: 0; word-break: break-all;"> <% check.split_emails.each do |email| %> <li><%= email %></li> <% end %> <% check.split_slack_channels.each do |channel| %> <li><%= channel %></li> <% end %> </ul> </td> <td style="text-align: right; padding: 1px;"> <%= link_to "Edit", edit_check_path(check), class: "btn btn-info" %> <%= button_to "Run Now", refresh_query_path(check.query), class: "btn btn-primary" %> </td> </tr> <% end %> </tbody> </table> <script> $("#search").on("keyup", function() { var value = $(this).val().toLowerCase() $("#checks tbody tr").filter( function() { $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1) }) }).focus() </script>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
finery-3.0.3 | app/views/blazer/checks/index.html.erb |
finery-3.0.2 | app/views/blazer/checks/index.html.erb |