canary/views/index.haml

47 lines
1.4 KiB
Plaintext

.container
.row
.col-md-12
%h2
Meet Canary
%img{:src => '/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.
- projects.auto_paginate do |project|
.row
.col-md-12
%h3= 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/