Sha256: 80c4a5fcededc658f954092bec5cd7834dfc078e26e6b85b1189a3491dde1b2c

Contents?: true

Size: 1.6 KB

Versions: 1

Compression:

Stored size: 1.6 KB

Contents

<div id="queries">
  <div id="header" style="margin-bottom: 20px;">
    <div class="btn-group pull-right">
      <%= link_to "New Query", new_query_path, class: "btn btn-info" %>
      <button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
        <span class="caret"></span>
        <span class="sr-only">Toggle Dropdown</span>
      </button>
      <ul class="dropdown-menu">
        <li><%= link_to "Dashboards", dashboards_path %></li>
        <li><%= link_to "Checks", checks_path %></li>
        <li role="separator" class="divider"></li>
        <li><%= link_to "New Dashboard", new_dashboard_path %></li>
        <li><%= link_to "New Check", new_check_path %></li>
      </ul>
    </div>
    <input type="text" placeholder="Start typing a query or person" style="width: 300px; display: inline-block;" autofocus=true class="search form-control" />
  </div>

  <table class="table">
    <thead>
      <tr>
        <th>Query</th>
        <th style="width: 20%; text-align: right;">Mastermind</th>
      </tr>
    </thead>
    <tbody class="list">
      <%= render partial: "index" %>
    </tbody>
  </table>
</div>

<script>
  var options = {
    valueNames: ['query', 'creator']
  };

  function updateList() {
    var userList = new List('queries', options);
    userList.search($(".search").val());
  }
  updateList();
</script>

<% if @queries.size == 1000 %>
  <p id="loading" class="text-muted">Loading...</p>
  <script>
    $(".list").load("<%= queries_path %>", function () {
      updateList();
      $("#loading").remove();
    });
  </script>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blazer-1.0.3 app/views/blazer/queries/home.html.erb