Sha256: 3acce585f547ea596bea66f2afbd82c6796a0444b37b907565039d81fb9222a4
Contents?: true
Size: 1.44 KB
Versions: 1
Compression:
Stored size: 1.44 KB
Contents
<h1><%= @report.name %></h1> <%= link_to "← back to report index".html_safe, reports_url, id: 'report_index' %> <div class="ih-row margin-top"> <form action="<%= report_url(@report) %>" method="get"> <% @report.custom_filters.each do |filter| %> <%= render partial: filter.kind, locals: {filter: filter} %> <% end %> <input type="hidden" name="run_report" value="true"> <%= button_tag 'Run Report', class: 'btn', style: 'margin-left: 0px' %> <%= render partial: 'print_report', locals: {rows: @rows} %> </form> </div> <% if @rows %> <div class="ih-row margin-top"> <table class="stripey-table"> <tr> <% @report.report_columns.sorted.each do |column| %> <th> <%= @report.sortable?(column) ? (link_to column.column_name, request.path + '?' + request.query_parameters.merge(order: "#{column.column_name}-#{get_temp_order_direction(params)}").to_param) : column.column_name.humanize %> <%= get_selected_order_direction(params, column) %> </th> <% end %> </tr> <% @rows.each do |row| %> <tr> <% @report.report_columns.each do |column| %> <td><%= display_for_value(row[column.column_name], column.column_name) %></td> <% end %> </tr> <% end if @rows.present? %> </table> </div> <div class="ih-row margin-top"> <%= paginate @rows %> <div id="download_link"><%= render partial: 'download_link' %></div> </div> <% end %> <div class="ih-span"> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
clark_kent-0.0.1 | app/views/clark_kent/reports/show.html.erb |