Sha256: 5a88b7d0c2fa40ea054197b4a38ca803de9e71bdac5153d417576db4a6f4faa0

Contents?: true

Size: 1.5 KB

Versions: 8

Compression:

Stored size: 1.5 KB

Contents

<h1><%= @report.name %></h1>
<%= link_to "&larr; back to report index".html_safe, reports_url, id: 'report_index' %>
<%= controller_name %>
<% if @errors %>
	<div class="error">
		<%= @errors %>
	</div>
<% end %>
<div class="srow 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="srow 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, row) %></td>
					<% end %>
				</tr>
			<% end %>
		</table>
	</div>
	<div class="srow margin-top">
	  <%= paginate @rows %>
	  <div id="download_link"><%= render partial: 'download_link' %></div>
	</div>
<% end %>
<div class="scol">&nbsp;</div>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
clark_kent-0.11.3 app/views/clark_kent/reports/show.html.erb
clark_kent-0.11.2 app/views/clark_kent/reports/show.html.erb
clark_kent-0.11.1 app/views/clark_kent/reports/show.html.erb
clark_kent-0.11.0 app/views/clark_kent/reports/show.html.erb
clark_kent-0.10.4 app/views/clark_kent/reports/show.html.erb
clark_kent-0.10.2 app/views/clark_kent/reports/show.html.erb
clark_kent-0.10.1 app/views/clark_kent/reports/show.html.erb
clark_kent-0.10.0 app/views/clark_kent/reports/show.html.erb