Sha256: 0433cef205bb564a0ad3c326b78d7e589262bafdf2852907e0c89a1555f898ab

Contents?: true

Size: 765 Bytes

Versions: 5

Compression:

Stored size: 765 Bytes

Contents

<h2>Cohort Reports</h2>

<%= form_for @metric_search, :url => cohortly_reports_path, :html =>
{:method => :get} do |f| %>
  <%= render :partial => 'cohortly/metrics/tags' %>
  <%= f.submit 'Get Report'%>
<% end %>


<table class="one-column-emphasis">
  <colgroup>
    <col class="oce-first">
  </colgroup>
  <thead>
    <tr>
      <th>Month</th>
      <th>N</th>
      <% 12.times do |month| %>
        <th>M<%= month + 1 %></th>
      <% end %>
    </tr>
  </thead>
  <% @report.month_cohorts.each do |cohort_key| %>
    <tr class="<%= cycle('odd', 'even') %>">
      <td><%= cohort_key %></td>
      <% @report.percent_line(cohort_key)[0,13].each do |val| %>
        <td style="text-align: right;"><%= val %></td>
      <% end %>
    </tr>
  <% end %>
</table>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cohortly-0.0.5 app/views/cohortly/reports/index.html.erb
cohortly-0.0.4 app/views/cohortly/reports/index.html.erb
cohortly-0.0.3 app/views/cohortly/reports/index.html.erb
cohortly-0.0.2 app/views/cohortly/reports/index.html.erb
cohortly-0.0.1 app/views/cohortly/reports/index.html.erb