Sha256: ed7868e352f1369171d99d8ebc82585a75cc618085be13c29d54577dfe6345ba

Contents?: true

Size: 1.05 KB

Versions: 7

Compression:

Stored size: 1.05 KB

Contents

<h2>Metrics</h2>

<%= form_for(@metric_search, :url => cohortly_metrics_path, :html => {
:method =>:get }) do |f| %>
  <div class="field">
    <%= f.label 'User id' %>
    <%= f.text_field :user_id %>
  </div>
  <div class="field">
    <%= f.label :username %>
    <%= f.text_field :username %>
  </div>
  <h3>Groups</h3>
  <%= render :partial => 'cohortly/metrics/groups' %>
  <h3>Tags</h3>
  <%= render :partial => 'cohortly/metrics/tags' %>
  <%= f.submit "filter" %>
<% end %>

<% url_gen = lambda {|page| cohortly_metrics_path({:cohortly_metric => params[:cohortly_metric], :page => page}) } %>
<%= render :partial => 'pagination', 
             :object => @metrics, 
             :locals => { :url_gen => url_gen} %>
<table class="hor-zebra">
  <tr>
    <th>User</th>
    <th>Username</th>
    <th>Time</th>
    <th>Controller</th>
    <th>Action</th>
    <th>Tags</th>
  </tr>
  <%= render :collection => @metrics, :partial => 'metric' %>
</table>

<%= render :partial => 'pagination', 
           :object => @metrics, 
           :locals => { :url_gen => url_gen} %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cohortly-0.0.93 app/views/cohortly/metrics/index.html.erb
cohortly-0.0.92 app/views/cohortly/metrics/index.html.erb
cohortly-0.0.9.1 app/views/cohortly/metrics/index.html.erb
cohortly-0.0.9 app/views/cohortly/metrics/index.html.erb
cohortly-0.0.8 app/views/cohortly/metrics/index.html.erb
cohortly-0.0.7 app/views/cohortly/metrics/index.html.erb
cohortly-0.0.6 app/views/cohortly/metrics/index.html.erb