Resolving Issue #981

Allow drill down from Data Source Profiles to either Data Templates of
Data Sources matching the profile.
This commit is contained in:
cigamit committed 2018-02-10 14:03:31 -06:00
1 parent 8af5f4a651
commit ba1489601f
2 files changed
+15 -2

No files matched your search

+14 -2
View File
@@ -967,6 +967,18 @@ function profile() {
$readonly = false;
}
if ($profile['data_sources'] > 0) {
$ds = '<a class="linkEditMain" href="' . $config['url_path'] . 'data_sources.php?reset=true&profile=' . $profile['id'] . '">' . number_format_i18n($profile['data_sources'], '-1') . '</a>';
} else {
$ds = number_format_i18n($profile['data_sources'], '-1');
}
if ($profile['templates'] > 0) {
$dt = '<a class="linkEditMain" href="' . $config['url_path'] . 'data_templates.php?reset=true&profile=' . $profile['id'] . '">' . number_format_i18n($profile['templates'], '-1') . '</a>';
} else {
$dt = number_format_i18n($profile['templates'], '-1');
}
form_alternate_row('line' . $profile['id'], false, $disabled);
form_selectable_cell(filter_value($profile['name'], get_request_var('filter'), 'data_source_profiles.php?action=edit&id=' . $profile['id']), $profile['id']);
form_selectable_cell($profile['default'] == 'on' ? __('Yes'):'', $profile['id'], '', 'text-align:right');
@@ -974,8 +986,8 @@ function profile() {
form_selectable_cell($readonly ? __('Yes') : __('No'), $profile['id'], '', 'text-align:right');
form_selectable_cell($sampling_intervals[$profile['step']], $profile['id'], '', 'text-align:right');
form_selectable_cell($heartbeats[$profile['heartbeat']], $profile['id'], '', 'text-align:right');
form_selectable_cell(number_format_i18n($profile['data_sources'], '-1'), $profile['id'], '', 'text-align:right');
form_selectable_cell(number_format_i18n($profile['templates'], '-1'), $profile['id'], '', 'text-align:right');
form_selectable_cell($ds, $profile['id'], '', 'text-align:right');
form_selectable_cell($dt, $profile['id'], '', 'text-align:right');
form_checkbox_cell($profile['name'], $profile['id'], $disabled);
form_end_row();
}
+1
View File
@@ -15,6 +15,7 @@ Cacti CHANGELOG
1.1.35
-issue#430: Pressing Back often fails to work as expected
-issue#564: Can't move items in graph template as desired
-issue#981: Hyperlinks for Data Profile stats
-issue#993: Realtime not working on remote pollers for certain data query
-issue#1251: Make 3rd mouse button configurable for all zoom modes. Set default to zoom out.
-issue#1286: Correct CHUNKED_ENCODING error when retrieving graph with some browsers