app/views/errdo/errors/index.html.slim
.container
= line_chart [{name: "Errors", data: @chart_data[:errors]}, {name: "Occurrences", data: @chart_data[:occurrences]}], discrete: true, height: "200px", colors: ["#000", "#00d1b2"]
.tabs.is-boxed
ul
li class=("is-active" if !params[:scope] || params[:scope] == "active")
= link_to "Active", root_path(scope: "active")
li class=("is-active" if params[:scope] == "resolved")
= link_to "Resolved", root_path(scope: "resolved")
li class=("is-active" if params[:scope] == "wontfix")
= link_to "Wontfix", root_path(scope: "wontfix")
li class=("is-active" if params[:scope] == "all")
= link_to "All", root_path(scope: "all")
table.table.is-bordered.is-striped.is-fullwidth
thead
th
| ID
th
| Last seen
th
| By
th
| Class name
th
| Message
th
| Count
th
| Status
tbody
- @errors.each do |error|
tr
td
strong
= link_to "##{error.id}", error
td
- time = error.last_occurred_at ? time_ago_in_words(error.last_occurred_at) : "Error"
= time + " ago"
td
- if user_show_path(error.last_experiencer)
= link_to user_show_string(error.last_experiencer),
user_show_path(error.last_experiencer), class: "errdo"
- else
= user_show_string(error.last_experiencer)
td
= error.exception_class_name
td
span.errdo-long-message
= error.exception_message
td
= error.occurrence_count
td
- if error.active?
span.tag.is-danger.is-medium
| Active
- elsif error.resolved?
span.tag.is-success.is-medium
| Resolved
- else
span.tag.is-warning.is-medium
| Wontfix
.container
.columns.is-centered
.column.is-half
= paginate(@errors)