diff options
author | Toon Claes <toon@gitlab.com> | 2018-03-16 15:19:46 +0300 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2018-03-22 22:34:45 +0300 |
commit | 9ab43aa762d2f0b69a400da0d9e992f232179002 (patch) | |
tree | 636208c45423b56f5018dbc6686fce98a42af894 /app/views/layouts/header/_read_only_banner.html.haml | |
parent | c920d165f544d6c45a7cc357fcf330f48c10244c (diff) |
Add read-only banner to all pages
When the database is in a read-only state, display a banner on each
page informing the user they cannot write to that GitLab instance.
Closes gitlab-org/gitlab-ce#43937.
Diffstat (limited to 'app/views/layouts/header/_read_only_banner.html.haml')
-rw-r--r-- | app/views/layouts/header/_read_only_banner.html.haml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/layouts/header/_read_only_banner.html.haml b/app/views/layouts/header/_read_only_banner.html.haml new file mode 100644 index 00000000000..f3d563c362f --- /dev/null +++ b/app/views/layouts/header/_read_only_banner.html.haml @@ -0,0 +1,7 @@ +- message = read_only_message +- if message + .flash-container.flash-container-page + .flash-notice + %div{ class: (container_class) } + %span + = message |