Skip to content
Snippets Groups Projects
Commit ababb9ed authored by Jakub Judiny's avatar Jakub Judiny
Browse files

Change dashboard item from email set to email not set, updated tooltips and translations.

(Redmine issue: #7649)
parent 3bb8f3dc
No related branches found
No related tags found
No related merge requests found
......@@ -535,9 +535,9 @@ class DashboardView(HTMLMixin, SQLAlchemyMixin, SimpleView): # pylint: disable=
filter(SettingsReportingModel.mode == mentat.const.REPORTING_MODE_NONE). \
order_by(SettingsReportingModel.createtime.desc()). \
all()
self.response_context['settingsrep_emailscust'] = self.dbquery(SettingsReportingModel). \
filter(SettingsReportingModel.emails_low != [] or SettingsReportingModel.emails_medium != [] or
SettingsReportingModel.emails_high != [] or SettingsReportingModel.emails_critical != []). \
self.response_context['settingsrep_emailsnotset'] = self.dbquery(SettingsReportingModel). \
filter(SettingsReportingModel.emails_low == [] and SettingsReportingModel.emails_medium == [] and
SettingsReportingModel.emails_high == [] and SettingsReportingModel.emails_critical == []). \
order_by(SettingsReportingModel.createtime.desc()). \
all()
......
......@@ -556,7 +556,7 @@
<div class="panel panel-default">
<!-- Default panel contents -->
<div class="panel-heading">
<span class="pull-right">{{ macros_site.render_help_popover(_('Groups with redirected reporting'), _('This panel contains list of groups with reporting redirected to system administrators. Reports for these groups are not being send directly to responsible system administrators within the target networks. This could be desired or undesired effect for particular group from the point of view of the system administrator.')) }}</span>
<span class="pull-right">{{ macros_site.render_help_popover(_('Groups with redirected reporting'), _('This panel contains list of groups with reporting redirected to system administrators. Reports for these groups are not being sent directly to responsible system administrators within the target networks. This could be desired or undesired effect for particular group from the point of view of the system administrator.')) }}</span>
{{ _('Groups with redirected reporting') }}&nbsp;&nbsp;<span class="badge">{{ settingsrep_redirected | length }}</span>
</div>
{%- if settingsrep_redirected %}
......@@ -593,7 +593,7 @@
<div class="panel panel-default">
<!-- Default panel contents -->
<div class="panel-heading">
<span class="pull-right">{{ macros_site.render_help_popover(_('Groups with no reporting'), _('This panel contains list of groups with no reporting. Reports for these groups are not generated at all. This setting should be VERY scarce and justified.')) }}</span>
<span class="pull-right">{{ macros_site.render_help_popover(_('Groups with no reporting'), _('This panel contains list of groups with reporting mode set to none. Reports for these groups are not generated at all. This setting should be VERY scarce and justified.')) }}</span>
{{ _('Groups with no reporting') }}&nbsp;&nbsp;<span class="badge">{{ settingsrep_modenone | length }}</span>
</div>
{%- if settingsrep_modenone %}
......@@ -633,13 +633,13 @@
<div class="panel panel-default">
<!-- Default panel contents -->
<div class="panel-heading">
<span class="pull-right">{{ macros_site.render_help_popover(_('Groups with custom emails'), _('This panel contains list of groups with custom target report emails. Reports for these groups are being send to different that standard email addressess and you may wish to review these settings.')) }}</span>
{{ _('Groups with custom emails') }}&nbsp;&nbsp;<span class="badge">{{ settingsrep_emailscust | length }}</span>
<span class="pull-right">{{ macros_site.render_help_popover(_('Groups with no reporting email'), _('This panel contains list of groups with no target reporting email set. Reports for these groups are being sent to callback, and you may wish to review these settings.')) }}</span>
{{ _('Groups with no reporting email') }}&nbsp;&nbsp;<span class="badge">{{ settingsrep_emailsnotset | length }}</span>
</div>
{%- if settingsrep_emailscust %}
{%- if settingsrep_emailsnotset %}
<div class="content-maxheight">
<table class="table">
{%- for item in settingsrep_emailscust %}
{%- for item in settingsrep_emailsnotset %}
<tr>
<td>
{{ macros_page.render_menu_context_actions(item.group, context_action_menu_group) }}
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment