Sha256: 113428d74fd5ca9e4e4fffdcab8d030383d84ea60a68ca94ac8b2798f1de6d3f

Contents?: true

Size: 899 Bytes

Versions: 6

Compression:

Stored size: 899 Bytes

Contents

<div class="panel panel-default">
  <div class="panel-heading">
    <h3 class="panel-title"><%= t('.visibility') %></h3>
  </div>
  <div class="panel-body">
      <% repository_objects = @presenter.repository_objects.to_json %>
      <div id="dashboard-repository-objects" aria-hidden="true" style="height: 200px">
      <script>
        //<![CDATA[
        Hyrax.statistics.repositoryObjects = <%== repository_objects %>
        //]]>
      </script>
      </div>
      <table class="table table-striped sr-only text-left">
        <thead>
          <tr>
            <th></th>
            <th></th>
          </tr>
        </thead>
        <tbody>
          <% JSON.parse(repository_objects).each do |row| %>
            <tr>
              <td><%= row["label"] %></td>
              <td><%= row["value"] %></td>
            </tr>
          <% end %>
        </tbody>
      </table>
  </div>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

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