lib/pact_broker/ui/controllers/relationships.rb in pact_broker-2.6.0 vs lib/pact_broker/ui/controllers/relationships.rb in pact_broker-2.7.0.beta.1
- old
+ new
@@ -9,11 +9,11 @@
include PactBroker::Services
get "/" do
view_model = ViewDomain::Relationships.new(pacticipant_service.find_relationships)
-
- haml :'relationships/show', {locals: {relationships: view_model, title: "Pacts"}, layout: :'layouts/main'}
+ page = params[:showProdPacts] == 'true' ? :'relationships/show-prod-tags' : :'relationships/show'
+ haml page, {locals: {relationships: view_model, title: "Pacts"}, layout: :'layouts/main'}
end
end
end
end
\ No newline at end of file