Display Rails env on landing page in dev and staging

This commit is contained in:
Rohan Mitchell
2014-03-07 13:10:11 +11:00
parent af31d0cb8f
commit 0b39db0165
3 changed files with 13 additions and 3 deletions

View File

@@ -4,6 +4,14 @@
.landing-page-row {
padding-top: emCalc(40);
padding-bottom: emCalc(30);
#environment {
font-size: 110%;
font-weight: bold;
padding: emCalc(5);
border-radius: emCalc(5);
background-color: #98ca45;
}
}
.distributor-link-row {
@@ -49,7 +57,7 @@ a.inactive {
}
}
.top-bar-section ul li {
float: left;
float: left;
}
.top-bar-section .divider, .top-bar-section [role="separator"] {
clear: none;

View File

@@ -39,6 +39,9 @@
.large-12.columns.centered
%h3 WHERE WOULD YOU LIKE TO SHOP?
%p.secondary Select your hub from the list below
- if Rails.env.development? || Rails.env.staging?
.large-12.columns.centered
#environment= Rails.env.capitalize
- @groups.in_groups_of(4, false) do |row|
.row.landing-page-row.hub_group{:class => (row.last == @groups.last ? "with-bottom-border" : "")}

View File

@@ -61,14 +61,13 @@ feature %q{
end
it "should grey out hubs that are not in an order cycle" do
create(:simple_order_cycle, distributors: [d1, d3])
create(:simple_product, distributors: [d1, d2])
visit root_path
page.should have_selector 'a.shop-distributor.active', text: 'Murandaka'
page.should have_selector 'a.shop-distributor.inactive', text: 'Ballantyne'
page.should have_selector 'a.shop-distributor.inactive', text: 'Ballantyne'
page.should have_selector 'a.shop-distributor.active', text: "O'Hea Street"
page.should have_selector 'a.shop-distributor.inactive', text: 'PepperTree Place'
end