From ec535d416f4b082e2365044acee19ef0cea96a5c Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Thu, 8 Jan 2015 11:47:04 +0200 Subject: [PATCH] Add gitlab staging --- app/views/layouts/application.haml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/application.haml b/app/views/layouts/application.haml index 12a00a899..04de7a3f1 100644 --- a/app/views/layouts/application.haml +++ b/app/views/layouts/application.haml @@ -22,7 +22,10 @@ %span.icon-bar = link_to root_path, class: 'navbar-brand' do = APP_CONFIG['app_name'] - - if Rails.env.development? + - if request.host == 'registry.gitlab.eu' + .text-center + %small{style: 'color: #0074B3;'} GITLAB STAGING + - elsif Rails.env.development? .text-center %small{style: 'color: #D10000;'}= Rails.env.upcase - elsif Rails.env.staging?