htdocs/assets/templates/index.html

Summary

Maintainability
Test Coverage
{{#unless logged_in}}
<div class="jumbotron">
  <h1>Welcome to {{ app_name }}!</h1>
  <p>
  An Alert Management Web Application<br>
  <br>
  Schedule queries against data sources to find anomalous or noteworthy events.<br>
  Review events and mark them resolved as appropriate.<br>
  Receive email notifications for any queries assigned to you.<br>
  </p>

  <p>
  <a href="/login">Login</a> to get started.
  </p>
</div>
{{else}}

{{#if announcement}}
<div class="text-center alert alert-info" role="alert"><strong>{{ announcement }}</strong></div>
{{/if}}

{{#if failing_searches}}
<div class="text-center alert alert-danger">{{ failing_searches }} Searches are currently failing</div>
{{/if}}
{{#if no_recent_cron}}
<div class="text-center alert alert-danger">Processor has not run in more than 20 mins!</div>
{{/if}}

<h1>Stats</h1>

<h2 class="text-center">
  {{ total_active_alerts }}
  <small>Alerts are active ({{ active_alerts.[4] }} New, {{ active_alerts.[5] }} In Progress)</small>
</h2>
<!-- F_DIS <h3 class="text-center col-xs-6 col-lg-3 text-danger">{{ active_alerts.[3] }} <small>of them are escalated</small></h3> -->
<h3 class="text-center col-xs-6 col-lg-3 text-danger">{{ active_alerts.[2] }} <small>of them are high priority</small></h3>
<h3 class="text-center col-xs-6 col-lg-3 text-warning">{{ active_alerts.[1] }} <small>of them are medium priority</small></h3>
<h3 class="text-center col-xs-6 col-lg-3 text-info">{{ active_alerts.[0] }} <small>of them are low priority</small></h3>

<h3 class="text-center col-xs-12">{{ active_alerts.[6] }} <small>of them are stale</small></h3>
<div class="clearfix">

  {{/unless}}