Skip to content

Commit f0287ab

Browse files
committed
feature: Migrate all Syslog Images to Fontawesome Glyphs
1 parent 850e962 commit f0287ab

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
* issue#133: Saving Settings on the Syslog Tab are not retained in latest Cacti
1414

15+
* feature: Migrate all Syslog Images to Fontawesome Glyphs
16+
1517
--- 2.9 ---
1618

1719
* issue#120: SQL syntax error for syslog when click browser back button

functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ function syslog_row_color($priority, $message) {
566566
break;
567567
}
568568

569-
print "<tr title='" . html_escape($message) . "' class='selectable $class syslogRow'>\n";
569+
print "<tr title='" . html_escape($message) . "' class='tableRow selectable $class syslogRow'>";
570570
}
571571

572572
function sql_hosts_where($tab) {

setup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,7 @@ function syslog_graph_buttons($graph_elements = array()) {
11771177
$host_id = syslog_db_fetch_cell('SELECT host_id FROM syslog_hosts ' . $sql_where);
11781178

11791179
if ($host_id) {
1180-
print "<a class='iconLink' href='" . htmlspecialchars($config['url_path'] . 'plugins/syslog/syslog.php?tab=syslog&reset=1&host=' . $host_id . '&date1=' . $date1 . '&date2=' . $date2) . "'><img src='" . $config['url_path'] . "plugins/syslog/images/view_syslog.png' alt='' title='" . __('Display Syslog in Range', 'syslog') . "'></a><br>";
1180+
print "<a class='iconLink' href='" . htmlspecialchars($config['url_path'] . 'plugins/syslog/syslog.php?tab=syslog&reset=1&host=' . $host_id . '&date1=' . $date1 . '&date2=' . $date2) . "' title='" . __('Display Syslog in Range', 'syslog') . "'><i class='deviceRecovering fas fa-exclamation-triangle'></i></a><br>";
11811181
}
11821182
}
11831183
}

syslog.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1499,7 +1499,7 @@ function syslog_syslog_legend() {
14991499
global $disabled_color, $notmon_color, $database_default;
15001500

15011501
html_start_box('', '100%', '', '3', 'center', '');
1502-
print '<tr>';
1502+
print '<tr class="">';
15031503
print "<td width='10%' class='logEmergency'>" . __('Emergency', 'syslog') . '</td>';
15041504
print "<td width='10%' class='logCritical'>" . __('Critical', 'syslog') . '</td>';
15051505
print "<td width='10%' class='logAlert'>" . __('Alert', 'syslog') . '</td>';
@@ -1519,7 +1519,7 @@ function syslog_log_legend() {
15191519
global $disabled_color, $notmon_color, $database_default;
15201520

15211521
html_start_box('', '100%', '', '3', 'center', '');
1522-
print '<tr>';
1522+
print '<tr class="">';
15231523
print "<td width='10%' class='logCritical'>" . __('Critical', 'syslog') . '</td>';
15241524
print "<td width='10%' class='logWarning'>" . __('Warning', 'syslog') . '</td>';
15251525
print "<td width='10%' class='logNotice'>" . __('Notice', 'syslog') . '</td>';
@@ -1651,8 +1651,8 @@ function syslog_messages($tab = 'syslog') {
16511651
if (api_plugin_user_realm_auth('syslog_alerts.php')) {
16521652
$url = '';
16531653
if ($sm['mtype'] == 'main') {
1654-
$url .= "<a style='padding:1px' href='" . html_escape('syslog_alerts.php?id=' . $sm[$syslog_incoming_config['id']] . '&action=newedit&type=0') . "'><img src='" . $config['url_path'] . "plugins/syslog/images/add.png'></a>";
1655-
$url .= "<a style='padding:1px' href='" . html_escape('syslog_removal.php?id=' . $sm[$syslog_incoming_config['id']] . '&action=newedit&type=new&type=0') . "'><img src='" . $config['url_path'] . "plugins/syslog/images/delete.png'></a>";
1654+
$url .= "<a style='padding:1px' href='" . html_escape('syslog_alerts.php?id=' . $sm[$syslog_incoming_config['id']] . '&action=newedit&type=0') . "'><i class='deviceUp fas fa-plus-circle'></i>";
1655+
$url .= "<a style='padding:1px' href='" . html_escape('syslog_removal.php?id=' . $sm[$syslog_incoming_config['id']] . '&action=newedit&type=new&type=0') . "'><i class='deviceDown fas fa-minus-circle'></i>";
16561656
}
16571657

16581658
form_selectable_cell($url, $sm['seq'], '', 'left');

0 commit comments

Comments
 (0)