<%inherit file="//layout/admin_lite.html"/> <%namespace name="formset" file="//formset.html" /> <%namespace name="lib" file="//lib.html" /> <%def name="title()">${_('Licensing alerts')} - ${parent.title()} <%def name="get_breadcrumbs()"> <% return [ [_('Manager'), ['manager']], [_('Licensing'), ['manager','system','licensing']], [_('Licensing alerts'), None] ] %> <%def name="show_message_table(message_table)"> % if message_table is None or len(message_table) == 0:
${_('No licensing alerts')}
% else: % for message in message_table: % endfor
${_('Severity')} ${_('Time')} ${_('Message')} ${_('Indexer')} ${_('Pool')} ${_('Stack')} ${_('Category')}
% if message['category'] not in ('pool_over_quota', 'stack_over_quota', 'orphan_slave', 'pool_warning_count', 'pool_violated_slave_count'): ${i18n.format_datetime(message['create_time']) | h}
(${i18n.format_timedelta(message['create_time']) | h}) % else: ${_('Correct by midnight to avoid violation')} ${_('Learn more')} % endif
${message['text'] | h} ${message['slave_name'] or '' | h} ${message['pool_name'] or '' | h} ${message['stack_name'] or '' | h} ${message['category'] or '' | h}
% endif <% category_map = { 'license_window': _('Licensing window alerts'), 'pool_over_quota': _('Pool quota overage alerts'), 'orphan_slave': _('Orphaned indexer alerts'), 'pool_warning_count': _('Pool warnings'), 'pool_violated_slave_count': _('Pool violations') } %>

% if category: ${category_map.get(category) | h} % else: ${_('All licensing alerts')} % endif (${len(all_messages)})

${_('License alerts notify you of excessive indexing warnings and licensing misconfigurations. If you receive too many warnings, your indexer will be in violation of the license and you will not be able to search.')} ${_('Learn more') % generateSelfHelpLink('license.alerts')}

% if category: ${show_message_table(all_messages)} % else:
Current:
${show_message_table(soft_messages)}
Permanent:
${show_message_table(hard_messages)} % endif % if category:

${_('Show messages for all alert types')}

% endif

${_('« return to overview')}