Sha256: dbf093fa120dce5037fabeada80906f9c7ed3549c123b9ebce6975c4e75b5a01
Contents?: true
Size: 1.06 KB
Versions: 3
Compression:
Stored size: 1.06 KB
Contents
<% @queries.each do |query| %> <tr> <td class="query"> <%= link_to query.name, query %> <span style="color: #ccc;"><%= extract_vars(query.statement).join(", ") %></span> <% if @queries.size < 1000 && 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 %> <% if @checks[query.id] %> <small style="font-weight: bold; color: #f60;">CHECK</small> <% end %> <div class="hide"><%= query.name.gsub(/\s+/, "") %></div> </td> <td class="creator text-right text-muted"> <% if query.respond_to?(:creator) && (creator = query.creator) && creator.respond_to?(Blazer.user_name) %> <% name = creator.send(Blazer.user_name) %> <% if creator == blazer_user %> You <div class="hide">me <%= name %></div> <% else %> <%= name %> <% end %> <% end %> </td> </tr> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
blazer-1.0.3 | app/views/blazer/queries/_index.html.erb |
blazer-1.0.2 | app/views/blazer/queries/_index.html.erb |
blazer-1.0.1 | app/views/blazer/queries/_index.html.erb |