Sha256: bb2529143639701dc6aa529e449d720cd4b9c7eaf764f6095f68e06fc10efec0

Contents?: true

Size: 765 Bytes

Versions: 5

Compression:

Stored size: 765 Bytes

Contents

require "pact_broker/ui/controllers/base_controller"
require "pact_broker/ui/view_models/index_items"
require "haml"

module PactBroker
  module UI
    module Controllers
      class Groups < Base

        include PactBroker::Services

        get ":name" do
          pacticipant = pacticipant_service.find_pacticipant_by_name(params[:name])
          erb :'groups/show.html', {
              locals: {
                csv_path: "#{base_url}/groups/#{ERB::Util.url_encode(params[:name])}.csv",
                pacticipant_name: params[:name],
                repository_url: pacticipant&.repository_url,
                base_url: base_url
              }
            }, {
              layout: "layouts/main",
            }
        end

      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pact_broker-2.84.0 lib/pact_broker/ui/controllers/groups.rb
pact_broker-2.83.0 lib/pact_broker/ui/controllers/groups.rb
pact_broker-2.82.0 lib/pact_broker/ui/controllers/groups.rb
pact_broker-2.81.0 lib/pact_broker/ui/controllers/groups.rb
pact_broker-2.80.0 lib/pact_broker/ui/controllers/groups.rb