diff --git a/README.md b/README.md
index b046d1315..9a4e1a42e 100644
--- a/README.md
+++ b/README.md
@@ -37,6 +37,10 @@ Or install it yourself with:
[💌 Subscribe](https://blog.flippercloud.io/#/portal/signup) - we'll send you short and sweet emails when we release new versions ([examples](https://blog.flippercloud.io/tag/releases/)).
+## Merch
+
+Do you deploy on Fridays? [👕 Get the tee](https://shop.verygoodsoftware.company/product/i-deploy-on-fridays-tee?utm_source=oss&utm_medium=readme&utm_campaign=merch).
+
## Getting Started
Use `Flipper#enabled?` in your app to check if a feature is enabled.
diff --git a/lib/flipper/ui/views/layout.erb b/lib/flipper/ui/views/layout.erb
index 5bfb7596b..ad90d2919 100644
--- a/lib/flipper/ui/views/layout.erb
+++ b/lib/flipper/ui/views/layout.erb
@@ -57,6 +57,10 @@
Docs
•
+ <% if Flipper::UI.configuration.fun %>
+ Shirt
+ •
+ <% end %>
Version: <%= Flipper::VERSION %>
diff --git a/spec/flipper/ui/actions/features_spec.rb b/spec/flipper/ui/actions/features_spec.rb
index 4a9e50965..79c2deb0e 100644
--- a/spec/flipper/ui/actions/features_spec.rb
+++ b/spec/flipper/ui/actions/features_spec.rb
@@ -77,6 +77,36 @@
end
end
+ context "merch callout" do
+ before do
+ @original_fun_enabled = Flipper::UI.configuration.fun
+ Flipper::UI.configuration.fun = fun_mode
+ get '/features'
+ end
+
+ after do
+ Flipper::UI.configuration.fun = @original_fun_enabled
+ end
+
+ context "when fun mode is enabled" do
+ let(:fun_mode) { true }
+
+ it 'renders the shirt link' do
+ expect(last_response.body).to include('>Shirt')
+ expect(last_response.body).to include('i-deploy-on-fridays-tee')
+ end
+ end
+
+ context "when fun mode is disabled" do
+ let(:fun_mode) { false }
+
+ it 'does not render the shirt link' do
+ expect(last_response.body).not_to include('>Shirt')
+ expect(last_response.body).not_to include('i-deploy-on-fridays-tee')
+ end
+ end
+ end
+
context "when in read-only mode" do
before { allow(flipper).to receive(:read_only?) { true } }