Sha256: 88f4c364d004939b633903178c6a5fe2fdb71b2af281a8c66f11a69acbc6bde3

Contents?: true

Size: 1.21 KB

Versions: 2

Compression:

Stored size: 1.21 KB

Contents

<%= render :partial => "query_report/search", locals: {report: @report} %>
<br/>

<%= link_to_download_report_pdf %>
<%= link_to_download_report_csv %>

<% if @report.has_chart? and @report.enable_chart? and @report.chart_on_web? %>
    <script type="text/javascript" src="https://www.google.com/jsapi"></script>
    <%= render :partial => "query_report/charts", locals: {report: @report} %>
<% end %>

<br/>
<%# if @report.scopes.size > 0 %>
<%#= link_to_with_scope('all', @report.current_scope) %>
<%# @report.scopes.each do |scope| %>
<%#= link_to_with_scope(scope, @report.current_scope) %>
<%# end %>
<%# end %>
<br/>

<% if @report.records.size > 0 %>
    <table class="table table-bordered table-striped">
      <thead>
      <% @report.columns.each do |column| %>
          <th><%= sort_link(@report.search, column.name) %></th>
      <% end %>
      </thead>

      <tbody>
      <% @report.records.each do |record| %>
          <tr>
            <% @report.columns.each do |column| %>
                <td><%= record[column.humanize] %></td>
            <% end %>
          </tr>
      <% end %>
      </tbody>
    </table>
<% else %>
    <p>No record found</p>
<% end %>

<%= paginate @report.paginated_query if @report.paginate? %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
query_report-1.0.1 app/views/query_report/list.html.erb
query_report-1.0.0 app/views/query_report/list.html.erb