Changeset 1685
- Timestamp:
- 11/14/08 11:51:40 (2 months ago)
- Files:
-
- branches/DEV-opsview3/opsview-web/root/admin/contact/edit_form_fields (modified) (1 diff)
- branches/DEV-opsview3/opsview-web/root/admin/edit_functions_base (modified) (4 diffs)
- branches/DEV-opsview3/opsview-web/root/admin/graph/edit_form_fields (modified) (2 diffs)
- branches/DEV-opsview3/opsview-web/root/admin/host/list_functions (modified) (3 diffs)
- branches/DEV-opsview3/opsview-web/root/admin/host/snmp (modified) (2 diffs)
- branches/DEV-opsview3/opsview-web/root/admin/host/tab-host (modified) (2 diffs)
- branches/DEV-opsview3/opsview-web/root/admin/hostcheckcommands/edit_form_fields (modified) (1 diff)
- branches/DEV-opsview3/opsview-web/root/admin/hostgroup/graph_diagram (modified) (1 diff)
- branches/DEV-opsview3/opsview-web/root/admin/hypergraph/index (modified) (1 diff)
- branches/DEV-opsview3/opsview-web/root/admin/reload/opsview (modified) (1 diff)
- branches/DEV-opsview3/opsview-web/root/admin/report/list_functions (modified) (1 diff)
- branches/DEV-opsview3/opsview-web/root/admin/report/start_generate (modified) (1 diff)
- branches/DEV-opsview3/opsview-web/root/admin/servicecheck/edit_form_fields (modified) (2 diffs)
- branches/DEV-opsview3/opsview-web/root/admin/servicecheck/list_functions (modified) (2 diffs)
- branches/DEV-opsview3/opsview-web/root/admin/snmptrap/tracing (modified) (2 diffs)
- branches/DEV-opsview3/opsview-web/root/admin/snmptrapexception/list_functions (modified) (3 diffs)
- branches/DEV-opsview3/opsview-web/root/admin/snmptrapexception/list_layout (modified) (1 diff)
- branches/DEV-opsview3/opsview-web/root/admin/systempreference/tab-sms (modified) (1 diff)
- branches/DEV-opsview3/opsview-web/root/image_links (added)
- branches/DEV-opsview3/opsview-web/root/public/plugin_help (modified) (1 diff)
- branches/DEV-opsview3/opsview-web/root/state/host/detail (modified) (1 diff)
- branches/DEV-opsview3/opsview-web/root/state/host/menu (modified) (1 diff)
- branches/DEV-opsview3/opsview-web/root/state/hostgroup/detail (modified) (1 diff)
- branches/DEV-opsview3/opsview-web/root/state/hostgroup/list_downtime_hosts (modified) (1 diff)
- branches/DEV-opsview3/opsview-web/root/state/hostgroup/list_downtime_services (modified) (1 diff)
- branches/DEV-opsview3/opsview-web/root/state/service/detail (modified) (1 diff)
- branches/DEV-opsview3/opsview-web/root/status/host (modified) (3 diffs)
- branches/DEV-opsview3/opsview-web/root/status/hostgroup (modified) (2 diffs)
- branches/DEV-opsview3/opsview-web/root/status/service (modified) (9 diffs)
- branches/DEV-opsview3/opsview-web/root/status/status_functions (modified) (1 diff)
- branches/DEV-opsview3/opsview-web/root/wrappers/miniwindow (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/DEV-opsview3/opsview-web/root/admin/contact/edit_form_fields
r1498 r1685 228 228 default => 1440, 229 229 help_keyword => "atom_feed", 230 help => 'Maximum number of minutes to keep items in the feed (equals <span id="normalise_minutes_info"></span>).<img src=" /images/indicator.gif" alt="Indicator" style="display:none" id="normalise_minutes_indicator" />'230 help => 'Maximum number of minutes to keep items in the feed (equals <span id="normalise_minutes_info"></span>).<img src="[% c.uri_for("/images/indicator.gif") %]" alt="Indicator" style="display:none" id="normalise_minutes_indicator" />' 231 231 onblur => "display_minutes();", 232 232 onkeypress => "return blockInvalidKeys(event,7);", branches/DEV-opsview3/opsview-web/root/admin/edit_functions_base
r1473 r1685 8 8 <div class="fields"> 9 9 <h3> 10 <a href="#" onclick="return toggle_section('[% name %]')"><img src=" /images/dots_expand.gif" alt="+" width="12" height="12" /></a>10 <a href="#" onclick="return toggle_section('[% name %]')"><img src="[% c.uri_for("/images/dots_expand.gif") %]" alt="+" width="12" height="12" /></a> 11 11 <a href="#" onclick="return toggle_section('[% name %]')">[% form_label %]</a> 12 12 </h3> … … 104 104 eln = args.id || args.name; 105 105 %]<div class="action" onclick="run_ajax_action('[% ajax.action %]',$('[% eln %]'))">[% ajax.text %]</div> 106 <img src=" /images/indicator.gif" alt="Indicator" style="display:none" id="[% ajax.action %]_indicator" />106 <img src="[% c.uri_for("/images/indicator.gif") %]" alt="Indicator" style="display:none" id="[% ajax.action %]_indicator" /> 107 107 <span id="[% ajax.action %]_info"></span>[% 108 108 END; … … 152 152 id = ' id="' _ args.name _ '_indicator"'; 153 153 END; 154 '<img src="/images/indicator.gif" alt="Indicator" style="display:none"'; id; ' />';154 %]<img src="[% c.uri_for("/images/indicator.gif") %]" alt="Indicator" style="display:none"'; id; ' />[% 155 155 END; 156 156 IF args.help; … … 176 176 <div class="autocomplete" id="[% args.name %]_auto_complete"></div> 177 177 <script type="text/javascript"> 178 new Ajax.Autocompleter('[% args.name %]', '[% args.name %]_auto_complete', ' /admin/ajax/autocomplete_[% args.autocomplete%]', {indicator:'[% args.name %]_auto_complete_indicator'});178 new Ajax.Autocompleter('[% args.name %]', '[% args.name %]_auto_complete', '[% c.uri_for("/admin/ajax/autocomplete_" _ args.autocomplete) %]', {indicator:'[% args.name %]_auto_complete_indicator'}); 179 179 </script> 180 <img src=" /images/indicator.gif" alt="Indicator" style="display:none" id="[% args.name %]_auto_complete_indicator" />180 <img src="[% c.uri_for("/images/indicator.gif") %]" alt="Indicator" style="display:none" id="[% args.name %]_auto_complete_indicator" /> 181 181 [% END; 182 182 END; branches/DEV-opsview3/opsview-web/root/admin/graph/edit_form_fields
r915 r1685 60 60 ); 61 61 62 '<img src="/images/indicator.gif" alt="Indicator" style="display:none" id="servicecheck_indicator" />'; 62 %]<img src="[% c.uri_for("/images/indicator.gif") %]" alt="Indicator" style="display:none" id="servicecheck_indicator" />[% 63 63 64 64 IF servicecheck; … … 80 80 ); 81 81 82 '<img src="/images/indicator.gif" alt="Indicator" style="display:none" id="metric_indicator" />'; 82 %]<img src="[% c.uri_for("/images/indicator.gif") %]" alt="Indicator" style="display:none" id="metric_indicator" />[% 83 83 84 84 IF metric; branches/DEV-opsview3/opsview-web/root/admin/host/list_functions
r1616 r1685 1 1 [% 2 3 PROCESS image_links; 4 # Move uri_for outside of loop because expensive 5 hosttemplate_base_url = c.uri_for("/admin/hosttemplate/edit") _ "/"; 2 6 3 7 MACRO list_header BLOCK; … … 24 28 <td width="20"> 25 29 [%- IF object.icon -%] 26 <img src=" /images/logos/[%object.icon.filename_jpg %]" class="logo" width="20" height="20" alt="[% object.icon.filename_jpg %]" title="[% object.icon.filename %]" />30 <img src="[% logos_base _ object.icon.filename_jpg %]" class="logo" width="20" height="20" alt="[% object.icon.filename_jpg %]" title="[% object.icon.filename %]" /> 27 31 [%- END -%] 28 32 </td><td width="20"> 29 <img id="menu_[% object.id %]" src=" /images/menu.png" class="menu" alt="Menu" width="20" height="20" onclick="return ajax_menu(this,'[% c.uri_for("menu", object.id) %]')" />33 <img id="menu_[% object.id %]" src="[% menu_image %]" class="menu" alt="Menu" width="20" height="20" onclick="return ajax_menu(this,'[% c.uri_for("menu", object.id) %]')" /> 30 34 </td></tr> 31 35 </table> … … 47 51 templates = object.hosttemplates_arrayref; 48 52 49 # Move uri_for outside of loop because expensive50 url = c.uri_for("/admin/hosttemplate/edit") _ "/";51 53 FOREACH t IN templates; 52 '<a href="'; url ; t.id; '">'; t.name; "</a><br />";54 '<a href="'; hosttemplate_base_url ; t.id; '">'; t.name; "</a><br />"; 53 55 END; 54 56 "</td>\n"; branches/DEV-opsview3/opsview-web/root/admin/host/snmp
r887 r1685 17 17 } 18 18 Element.show("query_host_indicator"); 19 new Ajax.Updater('snmp_info', " /admin/host/query_host", { method:"post", parameters:pars+ms+hostid, onSuccess:function() { Element.hide("query_host_indicator")} } );19 new Ajax.Updater('snmp_info', "[% c.uri_for("/admin/host/query_host") %]", { method:"post", parameters:pars+ms+hostid, onSuccess:function() { Element.hide("query_host_indicator")} } ); 20 20 } 21 21 } … … 90 90 <div id='interface_nagios_detail'> 91 91 <div class="helpline action" onclick="queryhost([% object.id %])">Query host</div> 92 <img src=" /images/indicator.gif" alt="Indicator" style="display:none" id="query_host_indicator" />92 <img src="[% c.uri_for("/images/indicator.gif") %]" alt="Indicator" style="display:none" id="query_host_indicator" /> 93 93 [% IF c.action.name == "edit" %] 94 94 <div id='snmpwalk_scan' class="action" onclick="poll('hostid=[% object.id %]')">SNMP walk</div> 95 95 <div id='snmpwalk_rescan' class="action" onclick="rescan('hostid=[% object.id %]')" style="display:none">Rescan</div> 96 <img src=" /images/indicator.gif" alt="Indicator" style="display:none" id="snmpwalk_indicator" />96 <img src="[% c.uri_for("/images/indicator.gif") %]" alt="Indicator" style="display:none" id="snmpwalk_indicator" /> 97 97 <span id="snmpwalk_info"></span> 98 98 [% END %] branches/DEV-opsview3/opsview-web/root/admin/host/tab-host
r1572 r1685 4 4 if (ip && $('monitored_by')) { 5 5 Element.show('monitored_by_indicator'); 6 new Ajax.Request( ' /public/closest_monitoringserver/' + ip, { method: 'get', onSuccess:choose_ms });6 new Ajax.Request( '[% c.uri_for("/public/closest_monitoringserver") %]/' + ip, { method: 'get', onSuccess:choose_ms }); 7 7 } 8 8 } … … 170 170 </label> 171 171 [% END; %] 172 </td><td><img src=" /images/indicator.gif" alt="Indicator" style="display:none" id="parents_indicator" />172 </td><td><img src="[% c.uri_for("/images/indicator.gif") %]" alt="Indicator" style="display:none" id="parents_indicator" /> 173 173 </td></tr></table> 174 174 <br /> branches/DEV-opsview3/opsview-web/root/admin/hostcheckcommands/edit_form_fields
r915 r1685 20 20 default => "check_tcp", 21 21 ) %] 22 <img src=" /images/indicator.gif" alt="Indicator" style="display:none" id="plugin_indicator" />22 <img src="[% c.uri_for("/images/indicator.gif") %]" alt="Indicator" style="display:none" id="plugin_indicator" /> 23 23 <br /> 24 24 <div class="input"> branches/DEV-opsview3/opsview-web/root/admin/hostgroup/graph_diagram
r1409 r1685 33 33 # So we stop the menu icon from being drawn 34 34 UNLESS useragent.search('MSIE\s+7') %] 35 <span class="hhmenuicon"><img id="menu_icon_[% group.id %]" src=" /images/menu.png" onclick="return ajax_menu(this,'[% c.uri_for("menu", group.id) %]')" class="menu" alt="Menu" width="20" height="20" /></span>35 <span class="hhmenuicon"><img id="menu_icon_[% group.id %]" src="[% c.uri_for("/images/menu.png") %]" onclick="return ajax_menu(this,'[% c.uri_for("menu", group.id) %]')" class="menu" alt="Menu" width="20" height="20" /></span> 36 36 [% END %] 37 37 </div> branches/DEV-opsview3/opsview-web/root/admin/hypergraph/index
r971 r1685 3 3 align="baseline" 4 4 archive="[% c.uri_for("/javascript/hyperapplet.jar") %]" 5 width=" 700"6 height=" 700"5 width="100%" 6 height="90%" 7 7 > 8 8 branches/DEV-opsview3/opsview-web/root/admin/reload/opsview
r1682 r1685 170 170 </div> 171 171 <div id="reloading_gears" [% hide %]><div> 172 <img src="[% IF (c.config.reload_image); c. config.reload_image; ELSE; '/images/animated_gears.gif'; END; %]" alt="Reloading" /><br/>172 <img src="[% IF (c.config.reload_image); c.uri_for(c.config.reload_image); ELSE; c.uri_for('/images/animated_gears.gif'); END; %]" alt="Reloading" /><br/> 173 173 A reload will take about <span class="average_time">[% functions.parseInterval("seconds", average_time, "String", 1) %]</span><br/> 174 174 <div class="spacer"></div> branches/DEV-opsview3/opsview-web/root/admin/report/list_functions
r1409 r1685 17 17 title="Edit [% IF object.name; object.name; ELSE; 'Unnamed'; END; %]">[% IF object.name; object.name; ELSE; 'Unnamed';END; %]</a> 18 18 </td> 19 <td width="20"><img id="menu_[% object.id %]" src=" /images/menu.png" class="menu" alt="Menu" width="20" height="20" onclick="return ajax_menu(this,'[% c.uri_for("menu", object.id) %]')" /></td>19 <td width="20"><img id="menu_[% object.id %]" src="[% c.uri_for("/images/menu.png") %]" class="menu" alt="Menu" width="20" height="20" onclick="return ajax_menu(this,'[% c.uri_for("menu", object.id) %]')" /></td> 20 20 </tr> 21 21 </table></td> branches/DEV-opsview3/opsview-web/root/admin/report/start_generate
r1022 r1685 1 1 <h2>[% c.loc("Generating report....") %]</h2> 2 <div id="info" class="centered" style="white-space: pre"><img src=" /images/indicator.gif" alt="Indicator" id="generate_indicator"/></div>2 <div id="info" class="centered" style="white-space: pre"><img src="[% c.uri_for("/images/indicator.gif") %]" alt="Indicator" id="generate_indicator"/></div> 3 3 <script type="text/javascript"> 4 4 function poll_report() { branches/DEV-opsview3/opsview-web/root/admin/servicecheck/edit_form_fields
r1611 r1685 232 232 default => "check_tcp", 233 233 ); 234 '<img src="/images/indicator.gif" alt="Indicator" style="display:none" id="plugin_indicator" />'; 234 %]<img src="[% c.uri_for("/images/indicator.gif") %]" alt="Indicator" style="display:none" id="plugin_indicator" /> 235 [% 235 236 checkbox( 236 237 name => "invertresults", … … 361 362 <div class="autocomplete" id="example_host_auto_complete"></div> 362 363 <script type="text/javascript"> 363 new Ajax.Autocompleter('example_host', 'example_host_auto_complete', ' /admin/host/autocomplete', {indicator:'snmpwalk_indicator'});364 new Ajax.Autocompleter('example_host', 'example_host_auto_complete', '[% c.uri_for("/admin/host/autocomplete") %]', {indicator:'snmpwalk_indicator'}); 364 365 </script> 365 366 <div id='snmpwalk_scan' class="action" onclick="if (! $('example_host').value) alert('Must enter an example host'); else poll('host='+$('example_host').value)">SNMP walk</div> 366 367 <div id='snmpwalk_rescan' class="action" onclick="rescan('host='+$('example_host').value)" style="display:none">Rescan</div> 367 <img src=" /images/indicator.gif" alt="Indicator" style="display:none" id="snmpwalk_indicator" />368 <img src="[% c.uri_for("/images/indicator.gif") %]" alt="Indicator" style="display:none" id="snmpwalk_indicator" /> 368 369 <span id="snmpwalk_info"></span> 369 370 <br /> branches/DEV-opsview3/opsview-web/root/admin/servicecheck/list_functions
r1409 r1685 1 1 [% 2 3 menu_image = c.uri_for("/images/menu.png"); 2 4 3 5 MACRO list_header BLOCK; … … 18 20 [% edit_link(object); %] 19 21 <td width="20"> 20 <img id="menu_[% object.id %]" src=" /images/menu.png" class="menu" alt="Menu" width="20" height="20" onclick="return ajax_menu(this,'[% c.uri_for("menu", object.id) %]')" />22 <img id="menu_[% object.id %]" src="[% menu_image %]" class="menu" alt="Menu" width="20" height="20" onclick="return ajax_menu(this,'[% c.uri_for("menu", object.id) %]')" /> 21 23 </td></tr> 22 24 </table> branches/DEV-opsview3/opsview-web/root/admin/snmptrap/tracing
r357 r1685 49 49 <span class="action" onclick="collect()">Collect</span> 50 50 <br /> 51 <img src=" /images/indicator.gif" alt="Indicator" style="display:none" id="collect_indicator" />51 <img src="[% c.uri_for("/images/indicator.gif") %]" alt="Indicator" style="display:none" id="collect_indicator" /> 52 52 <br /> 53 53 <span id="collect_text"></span> … … 60 60 new Autocompleter.Local('hostname_add', 'hostname_auto_complete', ['[% hosts.join("','") %]'], { fullSearch: true }); 61 61 </script> 62 <img src=" /images/indicator.gif" alt="Indicator" style="display:none" id="host_indicator" />62 <img src="[% c.uri_for("/images/indicator.gif") %]" alt="Indicator" style="display:none" id="host_indicator" /> 63 63 </td> 64 64 </tr></table> branches/DEV-opsview3/opsview-web/root/admin/snmptrapexception/list_functions
r950 r1685 4 4 if(!exception_id) return; 5 5 6 new Ajax.Request(" /admin/snmptrapexception/poll_promote_mib/"+exception_id, { method:"post", onSuccess:function(t) {6 new Ajax.Request("[% c.uri_for("/admin/snmptrapexception/poll_promote_mib") %]/"+exception_id, { method:"post", onSuccess:function(t) { 7 7 var json = t.responseText.evalJSON(true); 8 8 if(json) { … … 37 37 if(!exception_id) return; 38 38 39 new Ajax.Request(" /admin/snmptrapexception/promote_mib/"+exception_id);39 new Ajax.Request("[% c.uri_for("/admin/snmptrapexception/promote_mib") %]/"+exception_id); 40 40 if($('promote_mib_indicator_'+exception_id).style.display=='none') 41 41 Element.show("promote_mib_indicator_"+exception_id); … … 95 95 <input type="button" id="promote_mib_button_[% object.id %]" value="Promote mib" 96 96 onclick="Element.show('promote_mib_indicator_[% object.id %]');$('promote_mib_[% object.id %]').innerHTML = 'MIB promotion in progress';Element.hide('promote_mib_button_[% object.id %]');promote_mib([% object.id %]);" /> 97 <img src=" /images/indicator.gif" alt="Indicator" style="display:none" id="promote_mib_indicator_[% object.id %]" />97 <img src="[% c.uri_for("/images/indicator.gif") %]" alt="Indicator" style="display:none" id="promote_mib_indicator_[% object.id %]" /> 98 98 <div id="promote_mib_[% object.id %]"></div> 99 99 [%- branches/DEV-opsview3/opsview-web/root/admin/snmptrapexception/list_layout
r950 r1685 5 5 <div class="blank-bar"><input type="button" class="left" value="Refresh" name="Refresh" onclick="window.location.reload()" /> 6 6 [% IF args.reprocess; %] 7 <input type="button" class="right" name="Re-process" value="Re-process" onclick="new Ajax.Request(' /admin/snmptrapexception/reprocess'); alert('Reprocessing all traps. Click OK to reload'); window.location.reload()" />7 <input type="button" class="right" name="Re-process" value="Re-process" onclick="new Ajax.Request('[% c.uri_for("/admin/snmptrapexception/reprocess") %]'); alert('Reprocessing all traps. Click OK to reload'); window.location.reload()" /> 8 8 [% END; 9 9 "</div>"; branches/DEV-opsview3/opsview-web/root/admin/systempreference/tab-sms
r1521 r1685 77 77 Element.show('check_credit_indicator'); 78 78 var pars = "username=" + $('aql_username').value + '&password=' + $('aql_password').value + '&proxy_server=' + $('aql_proxy_server').value; 79 new Ajax.Updater('check_credit_info', " /admin/ajax/check_credit", { method:"post", parameters:pars, onSuccess:function() { Element.hide("check_credit_indicator")} } );79 new Ajax.Updater('check_credit_info', "[% c.uri_for("/admin/ajax/check_credit") %]", { method:"post", parameters:pars, onSuccess:function() { Element.hide("check_credit_indicator")} } ); 80 80 } 81 81 </script> 82 82 <div class="action" onclick="check_credit(this.form)">Check credit</div> 83 <img src=" /images/indicator.gif" alt="Indicator" style="display:none" id="check_credit_indicator" />83 <img src="[% c.uri_for("/images/indicator.gif") %]" alt="Indicator" style="display:none" id="check_credit_indicator" /> 84 84 <span id="check_credit_info"></span> 85 85 </div> branches/DEV-opsview3/opsview-web/root/public/plugin_help
r2 r1685 7 7 <title>[% title %]</title> 8 8 <link rel="stylesheet" type="text/css" 9 href=" /stylesheets/opsview.css" />9 href="[% c.uri_for("/stylesheets/opsview.css") %]" /> 10 10 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 11 11 </head> branches/DEV-opsview3/opsview-web/root/state/host/detail
r1471 r1685 37 37 <td class="center [% class %]"> 38 38 [% IF obj.actual_start_time == "0000-00-00 00:00:00"; %] 39 <img alt="Downtime" src=" /images/sched_downtime.gif" width="20" height="20" title="Scheduled Downtime" />39 <img alt="Downtime" src="[% c.uri_for("/images/sched_downtime.gif") %]" width="20" height="20" title="Scheduled Downtime" /> 40 40 [% ELSE; %] 41 <img alt="Downtime" src=" /images/downtime.gif" width="20" height="20" title="Downtime" />41 <img alt="Downtime" src="[% c.uri_for("/images/downtime.gif") %]" width="20" height="20" title="Downtime" /> 42 42 [% END; %] 43 43 </td> branches/DEV-opsview3/opsview-web/root/state/host/menu
r1678 r1685 17 17 [% IF opsview_host.use_nmis && c.user.role.fixedname == "admin"; 18 18 IF ! opsview_host.monitored_by.is_master; 19 prefix = "http://" _ opsview_host.monitored_by.scalar.nodes.first.ip; 19 prefix = "http://" _ opsview_host.monitored_by.scalar.nodes.first.ip _ "/"; 20 ELSE; 21 prefix = c.uri_for("/"); 20 22 END; 21 %]<a href="[% prefix _ " /cgi-nmis/nmiscgi.pl?node=" _ object.ip | html %]" alt="NMIS">NMIS</a><br/>23 %]<a href="[% prefix _ "cgi-nmis/nmiscgi.pl?node=" _ object.ip | html %]" alt="NMIS">NMIS</a><br/> 22 24 [% END %] 23 25 [% IF opsview_host.use_rancid && c.model("OpsviewDB::Applicationplugin").search( name => "rancid" ).count ; %] branches/DEV-opsview3/opsview-web/root/state/hostgroup/detail
r1306 r1685 67 67 <td class="center [% class %]"> 68 68 [% IF obj.actual_start_time == "0000-00-00 00:00:00"; %] 69 <img alt="Downtime" src=" /images/sched_downtime.gif" width="20" height="20" title="Scheduled Downtime" />69 <img alt="Downtime" src="[% c.uri_for("/images/sched_downtime.gif") %]" width="20" height="20" title="Scheduled Downtime" /> 70 70 [% ELSE; %] 71 <img alt="Downtime" src=" /images/downtime.gif" width="20" height="20" title="Downtime" />71 <img alt="Downtime" src="[% c.uri_for("/images/downtime.gif") %]" width="20" height="20" title="Downtime" /> 72 72 [% END; %] 73 73 </td> branches/DEV-opsview3/opsview-web/root/state/hostgroup/list_downtime_hosts
r1286 r1685 20 20 <td width="70" class="center [% class %]"> 21 21 [% IF obj.actual_start_time == "0000-00-00 00:00:00"; %] 22 <img alt="Downtime" src=" /images/sched_downtime.gif" width="20" height="20" title="Scheduled Downtime" />22 <img alt="Downtime" src="[% c.uri_for("/images/sched_downtime.gif") %]" width="20" height="20" title="Scheduled Downtime" /> 23 23 [% ELSE; %] 24 <img alt="Downtime" src=" /images/downtime.gif" width="20" height="20" title="Downtime" />24 <img alt="Downtime" src="[% c.uri_for("/images/downtime.gif") %]" width="20" height="20" title="Downtime" /> 25 25 [% END; %] 26 26 </td> branches/DEV-opsview3/opsview-web/root/state/hostgroup/list_downtime_services
r1286 r1685 22 22 <td width="20" class="center [% class %]"> 23 23 [% IF obj.actual_start_time == "0000-00-00 00:00:00"; %] 24 <img alt="Downtime" src=" /images/sched_downtime.gif" width="20" height="20" title="Scheduled Downtime" />24 <img alt="Downtime" src="[% c.uri_for("/images/sched_downtime.gif") %]" width="20" height="20" title="Scheduled Downtime" /> 25 25 [% ELSE; %] 26 <img alt="Downtime" src=" /images/downtime.gif" width="20" height="20" title="Downtime" />26 <img alt="Downtime" src="[% c.uri_for("/images/downtime.gif") %]" width="20" height="20" title="Downtime" /> 27 27 [% END; %] 28 28 </td> branches/DEV-opsview3/opsview-web/root/state/service/detail
r1471 r1685 37 37 <td class="center [% class %]"> 38 38 [% IF obj.actual_start_time == "0000-00-00 00:00:00"; %] 39 <img alt="Downtime" src=" /images/sched_downtime.gif" width="20" height="20" title="Scheduled Downtime" />39 <img alt="Downtime" src="[% c.uri_for("/images/sched_downtime.gif") %]" width="20" height="20" title="Scheduled Downtime" /> 40 40 [% ELSE; %] 41 <img alt="Downtime" src=" /images/downtime.gif" width="20" height="20" title="Downtime" />41 <img alt="Downtime" src="[% c.uri_for("/images/downtime.gif") %]" width="20" height="20" title="Downtime" /> 42 42 [% END; %] 43 43 </td> branches/DEV-opsview3/opsview-web/root/status/host
r1409 r1685 42 42 <a href="[% base_url _ "/host/name/" _ status.name _ "/detail" | html %]"> 43 43 [% IF status.downtime == 1 %] 44 <img alt="Downtime" src=" /images/sched_downtime.gif" width="20" height="20" title="Scheduled Downtime" />44 <img alt="Downtime" src="[% sched_downtime_image %]" width="20" height="20" title="Scheduled Downtime" /> 45 45 [% ELSIF status.downtime == 2 %] 46 <img alt="Downtime" src=" /images/downtime.gif" width="20" height="20" title="Downtime" />46 <img alt="Downtime" src="[% downtime_image %]" width="20" height="20" title="Downtime" /> 47 47 [% END %] 48 48 [% IF status.flapping %] 49 49 </td><td width="20"> 50 50 <a href="[% c.uri_for("/cgi-bin/extinfo.cgi", { type => 1, host => status.name }) _ "#comments" | html %]"> 51 <img alt="Flapping" src=" /images/flapping.gif" width="20" height="20" title="Flapping"/>51 <img alt="Flapping" src="[% flapping_image %]" width="20" height="20" title="Flapping"/> 52 52 </a> 53 53 [% END %] … … 55 55 </td><td width="20"> 56 56 <a href="[% c.uri_for("/cgi-bin/extinfo.cgi", { type => 1, host => status.name }) _ "#comments" | html %]"> 57 <img alt="Acknowledged" src=" /images/ack.gif" width="20" height="20" title="Acknowledged"/>57 <img alt="Acknowledged" src="[% ack_image %]" width="20" height="20" title="Acknowledged"/> 58 58 </a> 59 59 [% END %] … … 61 61 </td><td width="20"> 62 62 <a href="[% c.uri_for("/cgi-bin/extinfo.cgi", { type => 1, host => status.name }) _ "#comments" | html %]"> 63 <img alt="[% status.comments %] [% c.loc("Comment(s)") %]" src=" /images/comment.gif" width="20" height="20" title="[% status.comments %] [% c.loc("Comment(s)") %]"/>63 <img alt="[% status.comments %] [% c.loc("Comment(s)") %]" src="[% comment_image %]" width="20" height="20" title="[% status.comments %] [% c.loc("Comment(s)") %]"/> 64 64 </a> 65 65 [% END %] 66 66 </td><td width="20"> 67 <img src=" /images/logos/[% status.icon %].jpg" class="logo" width="20" height="20" alt="[% status.icon %]" title="[% status.icon %]" />67 <img src="[% logos_base _ status.icon _ ".jpg" | html %]" class="logo" width="20" height="20" alt="[% status.icon %]" title="[% status.icon %]" /> 68 68 </td><td width="20"> 69 <img id="menu_[% status.name %]" class="menu" alt="Menu" src=" /images/menu.png" width="20" height="20"69 <img id="menu_[% status.name %]" class="menu" alt="Menu" src="[% menu_image %]" width="20" height="20" 70 70 onclick="return ajax_menu(this,'[% base_url _ "/host/name/" _ status.name _ "/menus" | html %]')" /> 71 71 </td></tr> branches/DEV-opsview3/opsview-web/root/status/hostgroup
r1409 r1685 46 46 <a href="[% base_url _ "/hostgroup/" _ status.hostgroup_id _ "/detail" %]"> 47 47 [% IF status.downtime == 1; %] 48 <img alt="Downtime" src=" /images/sched_downtime.gif" width="20" height="20" title="Scheduled Downtime" />48 <img alt="Downtime" src="[% c.uri_for("/images/sched_downtime.gif") %]" width="20" height="20" title="Scheduled Downtime" /> 49 49 [% ELSIF status.downtime == 2; %] 50 <img alt="Downtime" src=" /images/downtime.gif" width="20" height="20" title="Downtime" />50 <img alt="Downtime" src="[% c.uri_for("/images/downtime.gif") %]" width="20" height="20" title="Downtime" /> 51 51 [% END; %] 52 52 </a> … … 54 54 </td> 55 55 <td width="20"> 56 <img id="menu_[% status.hostgroup_id %]" class="menu" alt="Menu" src=" /images/menu.png" width="20" height="20"56 <img id="menu_[% status.hostgroup_id %]" class="menu" alt="Menu" src="[% c.uri_for("/images/menu.png") %]" width="20" height="20" 57 57 onclick="return ajax_menu(this,'[% base_url _ "/hostgroup/" _ status.hostgroup_id _ "/menus" | html %]')" /> 58 58 </td></tr> branches/DEV-opsview3/opsview-web/root/status/service
r1591 r1685 63 63 <a href="[% base_url _ "/host/name/" _ host.name _ "/detail" | html %]"> 64 64 [% IF host.downtime == 1 %] 65 <img alt="Downtime" src=" /images/sched_downtime.gif" width="20" height="20" title="Scheduled Downtime" />65 <img alt="Downtime" src="[% sched_downtime_image %]" width="20" height="20" title="Scheduled Downtime" /> 66 66 [% ELSIF host.downtime == 2 %] 67 <img alt="Downtime" src=" /images/downtime.gif" width="20" height="20" title="Downtime" />67 <img alt="Downtime" src="[% downtime_image %]" width="20" height="20" title="Downtime" /> 68 68 [% END %] 69 69 </a> … … 71 71 </td><td width="20"> 72 72 <a href="[% c.uri_for("/cgi-bin/extinfo.cgi", { type => 1, host => host.name }) _ "#comments" | html %]"> 73 <img alt="Flapping" src=" /images/flapping.gif" width="20" height="20" title="Flapping"/>73 <img alt="Flapping" src="[% flapping_image %]" width="20" height="20" title="Flapping"/> 74 74 </a> 75 75 [% END %] … … 77 77 </td><td width="20"> 78 78 <a href="[% c.uri_for("/cgi-bin/extinfo.cgi", { type => 1, host => host.name }) _ "#comments" | html %]"> 79 <img alt="Acknowledged" src=" /images/ack.gif" width="20" height="20" title="Acknowledged"/>79 <img alt="Acknowledged" src="[% ack_image %]" width="20" height="20" title="Acknowledged"/> 80 80 </a> 81 81 [% END %] … … 83 83 </td><td width="20"> 84 84 <a href="[% c.uri_for("/cgi-bin/extinfo.cgi", { type => 1, host => host.name }) _ "#comments" | html %]"> 85 <img alt="[% host.comments %] [% c.loc("Comment(s)") %]" src=" /images/comment.gif" width="20" height="20" title="[% host.comments %] [% c.loc("Comment(s)") %]"/>85 <img alt="[% host.comments %] [% c.loc("Comment(s)") %]" src="[% comment_image %]" width="20" height="20" title="[% host.comments %] [% c.loc("Comment(s)") %]"/> 86 86 </a> 87 87 [% END %] 88 88 </td><td width="20"> 89 <img src=" /images/logos/[% host.icon %].jpg" class="logo" width="20" height="20" alt="[% host.icon %]" title="[% host.icon %]" />89 <img src="[% logos_base _ host.icon _ ".jpg" %]" class="logo" width="20" height="20" alt="[% host.icon %]" title="[% host.icon %]" /> 90 90 </td><td width="20"> 91 <img id="menu_host_[% host.name %]" class="menu" alt="Menu" src=" /images/menu.png" width="20" height="20"91 <img id="menu_host_[% host.name %]" class="menu" alt="Menu" src="[% menu_image %]" width="20" height="20" 92 92 onclick="return ajax_menu(this,'[% base_url _ "/host/name/" _ host.name _ "/menus" | html %]')" /> 93 93 </td></tr> … … 114 114 <a href="[% base_url _ "/service/" _ service.service_object_id _ "/detail" | html %]"> 115 115 [% IF service.downtime == 1 %] 116 <img alt="Downtime" src=" /images/sched_downtime.gif" width="20" height="20" title="Scheduled Downtime" />116 <img alt="Downtime" src="[% sched_downtime_image %]" width="20" height="20" title="Scheduled Downtime" /> 117 117 [% ELSIF service.downtime == 2 %] 118 <img alt="Downtime" src=" /images/downtime.gif" width="20" height="20" title="Downtime" />118 <img alt="Downtime" src="[% downtime_image %]" width="20" height="20" title="Downtime" /> 119 119 [% END %] 120 120 </a> … … 122 122 </td><td width="20"> 123 123 <a href="[% c.uri_for("/cgi-bin/extinfo.cgi", { type => 2, host => host.name, service => service.name }) _ "#comments" | html %]"> 124 <img alt="Flapping" src=" /images/flapping.gif" width="20" height="20" title="Flapping"/>124 <img alt="Flapping" src="[% flapping_image %]" width="20" height="20" title="Flapping"/> 125 125 </a> 126 126 [% END %] … … 128 128 </td><td width="20"> 129 129 <a href="[% c.uri_for("/cgi-bin/extinfo.cgi", { type => 2, host => host.name, service => service.name }) _ "#comments" | html %]"> 130 <img alt="Acknowledged" src=" /images/ack.gif" width="20" height="20" title="Acknowledged"/>130 <img alt="Acknowledged" src="[% ack_image %]" width="20" height="20" title="Acknowledged"/> 131 131 </a> 132 132 [% END %] … … 134 134 </td><td width="20"> 135 135 <a href="[% c.uri_for("/cgi-bin/extinfo.cgi", { type => 2, host => host.name, service => service.name }) _ "#comments" | html %]"> 136 <img alt="[% service.comments %] [% c.loc("Comment(s)") %]" src=" /images/comment.gif" width="20" height="20" title="[% service.comments %] [% c.loc("Comment(s)") %]"/>136 <img alt="[% service.comments %] [% c.loc("Comment(s)") %]" src="[% comment_image %]" width="20" height="20" title="[% service.comments %] [% c.loc("Comment(s)") %]"/> 137 137 </a> 138 138 [% END %] … … 140 140 </td><td width="20"> 141 141 <a href="[% c.uri_for("/cgi-bin/show.cgi", { host => host.name, service => service.name, fixedscale => 1 } ) | html %]"> 142 <img src=" /images/logos/graph-icon.gif" border="0" width="20" height="20" alt="View graphs" title="View graphs" /></a>142 <img src="[% graph_image %]" border="0" width="20" height="20" alt="View graphs" title="View graphs" /></a> 143 143 [% END %] 144 144 </td><td width="20"> 145 <img id="menu_service_[% service.service_object_id %]" class="menu" alt="Menu" src=" /images/menu.png" width="20" height="20"145 <img id="menu_service_[% service.service_object_id %]" class="menu" alt="Menu" src="[% menu_image %]" width="20" height="20" 146 146 onclick="return ajax_menu(this,'[% base_url _ "/service/" _ service.service_object_id _ "/menus" | html %]')" /> 147 147 </td></tr> branches/DEV-opsview3/opsview-web/root/status/status_functions
r1612 r1685 2 2 3 3 PROCESS object_info_base; 4 PROCESS image_links; 4 5 5 6 MACRO print_mini_status_host(type, url) BLOCK; branches/DEV-opsview3/opsview-web/root/wrappers/miniwindow
r1521 r1685 4 4 <head> 5 5 <title>[% page_title %]</title> 6 <link rel="stylesheet" type="text/css" href=" /stylesheets/opsview2.css">6 <link rel="stylesheet" type="text/css" href="[% c.uri_for("/stylesheets/opsview2.css") %]"> 7 7 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 8 8 [%- FOREACH script = c.stash.javascript %] 9 <script src=" /javascript/[% script%]" type="text/javascript"></script>9 <script src="[% c.uri_for("/javascript", script) %]" type="text/javascript"></script> 10 10 [% END %] 11 11 </head>
