Sha256: 1ac02599f94c08ef532572c27c5d87fd598518f2692ccd306a249ac3ea8581db

Contents?: true

Size: 1.06 KB

Versions: 2

Compression:

Stored size: 1.06 KB

Contents

<div id="queries">
  <div id="header" style="margin-bottom: 20px;">
    <div class="pull-right">
      <%= link_to "New Query", new_query_path, class: "btn btn-info" %>
      <%= link_to "Dashboards", dashboards_path, class: "btn btn-primary" %>
      <%= link_to "Checks", checks_path, class: "btn btn-primary" %>
    </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 %>
  <script>
    $(".list").load("<%= queries_path %>", updateList);
  </script>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

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