<%  @calendar_view_disable=1    %>
<div style="width:100%;height:calc(100% - 0px);position:absolute;top:0px;left:0px" >
	<%
		#	gt - Глобальная таблица
			@container=""
			@gt_structure=[]
						@gt_structure.push({:onclick => "", :row_name => t(:date), :value => "'+AddTimeZone(data.data[i].created_at)+'", :width => "width:200px", :filter => 'created_at' })
						@gt_structure.push({:onclick => "", :row_name => t(:user), :value => "'+data.data[i].username+'", :width => "width:180px", :filter => 'username' })
						@gt_structure.push({:onclick => "", :row_name => t(:action), :value => "'+data.data[i].action+'", :width => "width:250px", :filter => 'action' })
						@gt_structure.push({:onclick => "", :row_name => t(:type), :value => "'+data.data[i].action_type+'", :width => "width:100px", :filter => 'action_type' })
						@gt_structure.push({:onclick => "", :row_name => 'IP', :value => "'+data.data[i].ip+'", :width => "width:120px", :filter => 'ip' })
						@gt_structure.push({:onclick => "", :row_name => t(:params), :value => "'+data.data[i].params+'", :width => "", :filter => 'params' })
						

	%>
	<%= render partial: "shared/table", locals: {
		name:"logs_table",
		header:@gt_structure,
		query:"settings_get_logs",
		action_after:0,
		time:1,
		add_params:'',
		offset:50,
		first_sort:'created_at;DESC',
		additional_field:@container
	} %>
</div>
<script>
	var calendar_from_date=new Date()
	var calendar_to_date=new Date()
	function AddTimeZone(date) {
		date=new Date(date)
		return '<div style="float:left">'+date.getDate()+' '+(calendar_month_names[date.getMonth()].shortname)+' '+date.getFullYear()+' <b>|</b></div><div style="color:<%= $blue %>;float:left">'+date.getHours().add_zero()+':'+date.getMinutes().add_zero()+':'+date.getSeconds().add_zero()+'</div>'
	}
</script>