Skip to content

Commit

Permalink
Add style for disabled jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo de Lima Ramos authored and marcelolx committed Mar 30, 2022
1 parent e3d4f7a commit 0315546
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions web/assets/stylesheets/recurring_jobs.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
border: 1px solid rgba(0, 0, 0, 0.1);
}

.list-group-item-disabled {
background-color: #f3d3d3;
}

@media (prefers-color-scheme: dark) {
.list-group-item {
background-color: #222;
Expand Down
2 changes: 1 addition & 1 deletion web/views/recurring_jobs.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="recurring-jobs">
<ul class="list-group">
<% @presented_jobs.each do |job| %>
<li class="list-group-item">
<li class="list-group-item <%= !job.enabled? && "list-group-item-disabled" %>">
<div class="title">
<div class="row">
<div class="col-xs-6">
Expand Down

0 comments on commit 0315546

Please sign in to comment.