%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %>
title="<%= @page_title + ' » ' + "#{@PAGE_TITLE_LIMIT}" %>"
<% else %>
title="<%= @page_title %>"
dateFilter="{dateField: 'timestamp'}"
<% end%>
helpUrl="<%=help_link(HELP_URL_CONFIG['server']['server_history'])%>"
region="center"
lazyRender="true"
dojoType="helpsys.ext.LiveGrid"
authenticity_token="<%= form_authenticity_token %>"
autoExpandColumn="message"
dataColumns="[
{ name: 'id' },
{ name: 'message' },
{ name: 'timestamp' }]"
gridColumns="[
{ dataIndex: 'timestamp', header: 'Date', sortable: true, width: 120, filter: true, filterType: 'date'},
{ dataIndex: 'message', header: 'Message', id: 'message', sortable: false, width: 800, filter: true, filterType: 'string'}]"
sortField="{field: 'timestamp', direction: 'DESC'}"
includeDelete="false"
includeEdit="false"
includeShow="false"
includeTagFilter="false"
autoFill="false"
forceFit="false"
tbar="{items: []}"
url="<%= schedule_logs_path(:format => 'json') %>"
<% if (params[:job_history_id] || params[:agent_id] || params[:job_id]) %>
baseParameters="{
<%= "job_history_id:" + params[:job_history_id] if params[:job_history_id] %>
<%= "job_id: " + params[:job_id] if params[:job_id]%>
<%= ", job_type: '" + params[:job_type] + "'" if params[:job_id] && !params[:job_type].nil? %>
<%= "agent_id: " + params[:agent_id] if params[:agent_id]%>
}"
<% end %>
>