Sha256: be896dfe958747480b5120fe8e9d07e993d7b99b45230c0b4c0104e925bb22de

Contents?: true

Size: 1.59 KB

Versions: 4

Compression:

Stored size: 1.59 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" %>
    </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">
      <% @queries.each do |query| %>
        <tr>
          <td class="query">
            <%= link_to query.name, query %>
            <% if query.created_at > 2.days.ago %>
              <small style="font-weight: bold; color: #5cb85c;">NEW</small>
            <% end %>
            <% if @trending_queries[query.id] %>
              <small style="font-weight: bold; color: #f60;">TRENDING</small>
            <% end %>
          </td>
          <td class="creator text-right text-muted">
            <% if (creator = query.creator) and creator.respond_to?(Blazer.user_name) %>
              <% name = creator.send(Blazer.user_name) %>
              <% if respond_to?(:current_user) and creator == current_user %>
                You
                <div class="hide">me <%= name %></div>
              <% else %>
                <%= name %>
              <% end %>
            <% end %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
</div>

<script>
  var options = {
    valueNames: ['query', 'creator']
  };
  var userList = new List('queries', options);
</script>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
blazer-0.0.5 app/views/blazer/queries/index.html.erb
blazer-0.0.4 app/views/blazer/queries/index.html.erb
blazer-0.0.3 app/views/blazer/queries/index.html.erb
blazer-0.0.2 app/views/blazer/queries/index.html.erb