Sha256: 09ff10d1de504f98dbc5ecbf88ed14d41616e99334f7c134cae0af7d3cf1a487

Contents?: true

Size: 909 Bytes

Versions: 6

Compression:

Stored size: 909 Bytes

Contents

<div class="panel-heading">
  <h3 class="panel-title"><%= t('.title') %></h3>
</div>
<div class="panel-body text-center">
  <div id="dashboard-growth" aria-hidden="true" style="height: 200px">
  <% repository_growth = @presenter.repository_growth(@start_date.to_datetime, @end_date.to_datetime).to_json %>
  <script>
//<![CDATA[
Hyrax.statistics.repositoryGrowth = <%== repository_growth %>
//]]>
</script></div>
  <table aria-label="<%= t('.title') %>" class="table table-striped sr-only text-left">
    <thead>
      <tr>
        <th><%= t('.date') %></th>
        <th><%= t('.works') %></th>
        <th><%= t('.collections') %></th>
      </tr>
    </thead>
    <tbody>
      <% JSON.parse(repository_growth).each do |row| %>
        <tr>
          <td><%= row["y"] %></td>
          <td><%= row["a"] %></td>
          <td><%= row["b"] %></td>
        </tr>
      <% end %>
    </tbody>
  </table>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hyrax-3.6.0 app/views/hyrax/dashboard/_repository_growth.html.erb
hyrax-3.5.0 app/views/hyrax/dashboard/_repository_growth.html.erb
hyrax-3.4.2 app/views/hyrax/dashboard/_repository_growth.html.erb
hyrax-3.4.1 app/views/hyrax/dashboard/_repository_growth.html.erb
hyrax-3.4.0 app/views/hyrax/dashboard/_repository_growth.html.erb
hyrax-3.3.0 app/views/hyrax/dashboard/_repository_growth.html.erb