canary/views/index.haml

74 lines
2.1 KiB
Plaintext

.container
.row
.col-md-12
%h2
Meet Canary
%img{:src => "#{@url_root}images/songbird-128.png",
:title => 'Grace the Canary in the Code Mine',
:align => :right}
%p
Canary is part of
%a{:href => 'https://codevalet.io/', :target => '_blank'}
Code Valet
which provides radically transparent feedback for the service's
operation. Canary allows developers to triage and understand issues
affecting Code Valet, or one of its components.
.row
.col-md-12
%h3
Recent deployments
.container
%p
The
%strong
alpha
channel was last rebuilt on:
%code
= jenkins.rebuiltAlpha
%p
The
%strong
general availability
channel was last rebuilt on:
%code
= jenkins.rebuiltGa
.row
.col-md-12
%h3
Recent issues
.container
- if projects.size == 0
Something went wrong when querying the error service!
- else
- projects.auto_paginate do |project|
%h4= project.name
%p
- events = SentryApi.project_issues(project.slug)
- unless events.size > 0
No recent events (yay).
- else
- events.each do |event|
- badge = 'danger'
- if event.level != 'error'
- badge = event.level
.row
.col-lg-10
%strong
= event.title
.mb-2.text-muted
%span.badge{:class => "badge-#{badge}"}
= event.count
= event.culprit
%p
%a{:href => "issue/#{event.id}"}
View
·
%a{:href => event.permalink, :target => '_blank'}
View in Sentry
%hr/