Sha256: 18e91f2eef3e7ece4bcb0024914e1ac66d8790237cdfe6f271db048d5b197a5b

Contents?: true

Size: 869 Bytes

Versions: 9

Compression:

Stored size: 869 Bytes

Contents

<h1>Reports</h1>
<% ClarkKent::SharingScopeKind.all.each do |sharing_scope_kind| %>
  <% sharing_scope_kind.scopes_for(clark_kent_user).each do |sharing_scope| %>
    <% if sharing_scope.reports.any? %>
      <div id="<%= sharing_scope.dom_id %>">
        <h3><%= sharing_scope.human_name %></h3>
        <% sharing_scope.reports.each do |report| %>
          <%= link_to report.name, report_url(report) %> <%= link_to '(edit)', edit_report_url(report) %><br>
        <% end %>
        <% if 'everyone' == sharing_scope_kind.type %>
          <% ClarkKent.custom_report_links.each do |link_text,link_path_string| %>
            <%= link_to link_text, eval("main_app.#{link_path_string}") %><br>
          <% end %>
        <% end %>
      </div>
    <% end %>
  <% end %>
<% end %>
<hr>
<div id="controls">
  <%= link_to "create a new report", new_report_path %>
</div>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
clark_kent-0.11.1 app/views/clark_kent/reports/index.html.erb
clark_kent-0.11.0 app/views/clark_kent/reports/index.html.erb
clark_kent-0.10.4 app/views/clark_kent/reports/index.html.erb
clark_kent-0.10.2 app/views/clark_kent/reports/index.html.erb
clark_kent-0.10.1 app/views/clark_kent/reports/index.html.erb
clark_kent-0.10.0 app/views/clark_kent/reports/index.html.erb
clark_kent-0.9.9 app/views/clark_kent/reports/index.html.erb
clark_kent-0.9.8 app/views/clark_kent/reports/index.html.erb
clark_kent-0.9.7 app/views/clark_kent/reports/index.html.erb