%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %> <% @page_title = '' @section_title = nil case params[:type] when 'scheduler' @page_title = t 'logs.index.schedule_diagnostic_tab' when 'server' @page_title = t 'logs.index.server_diagnostic_tab' when 'reportrunner' @page_title = t 'logs.index.report_runner_diagnostic_tab' when 'agent' @page_title = t 'agents.view_diag_log' @section_title = h(@page_title + ' » ' + '' + @agent.name + '') when 'agent_update' @page_title = t 'agents.view_update_log' @section_title = h(@page_title + ' » ' + '' + @agent.name + '') end %>
Log File: | <%= select_tag("filename", options_for_select(@available_logs, @filename), {:dojoType => "helpsys.ext.ComboBox", :forceSelection => false, :typeAhead => true, :triggerAction => 'all', :id => '', :width => 200, :onchange => "document.forms[0].onsubmit()"}) %> | <%= button_to_function('Download', "window.open('#{diagnostic_log_index_path(:format => 'text', :download => true)}&filename=' + this.form.filename.value);", :dojoType => "helpsys.ext.Button") %> |
<% if params[:type] == 'agent' %> <%= button_to_function('Download', "window.open('#{agent_diagnostic_log_path(:id => params[:id], :download => true, :format => :text)}');", :dojoType => "helpsys.ext.Button") %> <% else %> <%= button_to_function('Download', "window.open('#{agent_update_diagnostic_log_path(:id => params[:id], :download => true, :format => :text)}');", :dojoType => "helpsys.ext.Button") %> <% end %> |