Sha256: 07f13ca2b5a84bac60895034e65b10a9a923e7eda29de3591338c1eb3079cb68

Contents?: true

Size: 1.23 KB

Versions: 8

Compression:

Stored size: 1.23 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", "user", "action", "auditable", "remote_address"].each do |attr| %>
  			  <th>
  			    <%= image_tag("sunrise/audit/#{attr}.png") %>
  			    <%= Audited.audit_class.human_attribute_name("audit.#{attr}") %>
  			  </th>
			  <% end -%>
		  </tr>
		  <%= render :partial => 'event', :collection => @events %>  	    	    
	    </tbody>
	  </table>

	  <% if @events.count >= Sunrise::Config.audit_events_per_page -%>
	    <div class="centerBtnHolder">
	      <a id="events-next" href="#" class="button" style="width: 100px;">Показать еще 50</a>
	      
	      <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

8 entries across 8 versions & 1 rubygems

Version Path
sunrise-cms-0.4.2 app/views/sunrise/dashboard/index.html.erb
sunrise-cms-0.4.1 app/views/sunrise/dashboard/index.html.erb
sunrise-cms-0.4.0 app/views/sunrise/dashboard/index.html.erb
sunrise-cms-0.3.3 app/views/sunrise/dashboard/index.html.erb
sunrise-cms-0.3.2 app/views/sunrise/dashboard/index.html.erb
sunrise-cms-0.3.1 app/views/sunrise/dashboard/index.html.erb
sunrise-cms-0.3.0 app/views/sunrise/dashboard/index.html.erb
sunrise-cms-0.3.0.rc2 app/views/sunrise/dashboard/index.html.erb