From f2f489aea81936d68b63dbe4b002c7ef267c68a6 Mon Sep 17 00:00:00 2001 From: echarp Date: Sun, 27 Dec 2015 17:09:07 +0100 Subject: [PATCH] Inactive organisations are now greyed out. Refs #25 --- app/assets/stylesheets/orgas.css.sass | 3 +++ app/views/orgas/index.html.haml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/orgas.css.sass b/app/assets/stylesheets/orgas.css.sass index c843de31..7e5449cf 100644 --- a/app/assets/stylesheets/orgas.css.sass +++ b/app/assets/stylesheets/orgas.css.sass @@ -47,3 +47,6 @@ body.orgas.show main min-width: 30em +inline-block() vertical-align: top + +table tr.inactive + color: gray diff --git a/app/views/orgas/index.html.haml b/app/views/orgas/index.html.haml index 3ef0ea7f..adde06ad 100644 --- a/app/views/orgas/index.html.haml +++ b/app/views/orgas/index.html.haml @@ -19,7 +19,7 @@ %tbody - @orgas.each do |orga| - %tr + %tr{ class: orga.active ? 'active' : 'inactive' } %td - if orga.kind %em.fa{ class: "fa-#{orga.kind.icon}",