Sha256: 89ea3349bb0ced8b53a3fe5b3f019d8383a43342659eae4d711b8571a5f77dc8

Contents?: true

Size: 1.28 KB

Versions: 26

Compression:

Stored size: 1.28 KB

Contents

<div class="wrapper without-panel">
  <div class="dbTable">
    <table id="events-table" cellpadding="0" cellspacing="0" border="0" width="100%">
      <tbody>
        <tr class="theader">
          <% ["created_at", "owner", "key", "trackable"].each do |attr| %>
            <th>
              <%= image_tag("sunrise/audit/#{attr}.png") %>
              <%= PublicActivity::Activity.human_attribute_name("activity.#{attr}") %>
            </th>
          <% end -%>
        </tr>
        <%= render :partial => 'activity', :collection => @events %>
      </tbody>
    </table>

    <% if @events.count >= Sunrise::Config.activities_per_page -%>
      <div class="centerBtnHolder">
        <%= link_to t('manage.buttons.next_50'), "#", :class=>"button", :style=>"width:100px;", :id=>"events-next" %>
        
        <script type="text/javascript">
          $(document).ready(function(){
            $("#events-table").pagination({
              url: '/manage/dashboard',
              binder: '#events-next',
              event: 'click',
              callback: function(data){
                var rows = $(data).find("#events-table tr.event");
                $('#events-table tbody').append(rows);
              }
            });
          });
        </script>
      </div>
    <% end -%>
  </div>
</div>

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
sunrise-cms-0.6.5 app/views/sunrise/dashboard/index.html.erb
sunrise-cms-0.6.4 app/views/sunrise/dashboard/index.html.erb
sunrise-cms-0.6.3 app/views/sunrise/dashboard/index.html.erb
sunrise-cms-0.6.2 app/views/sunrise/dashboard/index.html.erb
sunrise-cms-0.6.1 app/views/sunrise/dashboard/index.html.erb
sunrise-cms-0.6.0 app/views/sunrise/dashboard/index.html.erb