Skip to content

Commit

Permalink
Add back navigation to failures list
Browse files Browse the repository at this point in the history
  • Loading branch information
bitscraps committed Aug 29, 2023
1 parent ea2f7f4 commit 5667208
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
13 changes: 13 additions & 0 deletions app/assets/stylesheets/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ html, body {
align:center;
}

a {
color: #333;
}

table {
thead {
font-weight: 700;
Expand Down Expand Up @@ -32,6 +36,13 @@ main {
width:100%;
max-width: 920px;
margin:auto;
padding-bottom:100px;
}

.back-button{
font-size: 2em !important;
text-decoration:none !important;
color: #888 !important;
}

.failure-overview-details {
Expand Down Expand Up @@ -85,4 +96,6 @@ main {
}
}



}
7 changes: 5 additions & 2 deletions app/views/failures/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<main>
<div class='failure-overview-details'>
<div>
<%= link_to '<', failures_path, class: "back-button" %>
</div>
<div>
<strong>REPO</strong><br>
<%= @failures.first.repo_name %>
Expand All @@ -25,10 +28,10 @@
</div>
</div>
<div class="failure-msg">
<% if failure.other_instances %>
<% if failure.other_instances > 0 %>
<div class="intermittent">
<div class="header">
This failure is likely intermittent
This failure could be intermittent
</div>
<div class="body">
It has been seen <%= pluralize(failure.other_instances, 'time') %> in the last 30 days
Expand Down

0 comments on commit 5667208

Please sign in to comment.