Skip to content

Commit

Permalink
chore: update UI
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Sep 11, 2021
1 parent bc8fef1 commit 82a8abc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/pact_broker/ui/controllers/groups.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Groups < Base

get ":name" do
erb :'groups/show.html', {
locals: locals(tab: "properties")
locals: locals(tab: "details")
}, {
layout: "layouts/main",
}
Expand All @@ -34,7 +34,7 @@ def locals(overrides)
repository_url: pacticipant&.repository_url,
base_url: base_url,
pacticipant: pacticipant,
properties_url: "#{base_url}/pacticipants/#{ERB::Util.url_encode(params[:name])}",
details_url: "#{base_url}/pacticipants/#{ERB::Util.url_encode(params[:name])}",
network_url: "#{base_url}/pacticipants/#{ERB::Util.url_encode(params[:name])}/network"
}.merge(overrides)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/pact_broker/ui/view_models/matrix_branch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def tooltip
if branch_version.latest?
"This is the latest version of #{pacticipant_name} from branch \"#{branch_version.branch_name}\"."
else
"A more recent version of #{pacticipant_name} from branch \"#{branch_version.branch_name}\" exists."
"This version of #{pacticipant_name} is from branch \"#{branch_version.branch_name}\". A more recent version from this branch exists."
end
end

Expand Down
1 change: 0 additions & 1 deletion lib/pact_broker/ui/view_models/matrix_tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ module PactBroker
module UI
module ViewDomain
class MatrixTag

include PactBroker::Api::PactBrokerUrls

attr_reader :name, :pacticipant_name, :version_number
Expand Down
4 changes: 2 additions & 2 deletions lib/pact_broker/ui/views/groups/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ svg{

<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link <%= tab == "properties" ? "active" : "" %>" href="<%= properties_url %>">Properties</a>
<a class="nav-link <%= tab == "details" ? "active" : "" %>" href="<%= details_url %>">Details</a>
</li>
<li class="nav-item">
<a class="nav-link <%= tab == "network" ? "active" : "" %>" href="<%= network_url %>">Network Graph</a>
</li>
</ul>

<% if tab == "properties" %>
<% if tab == "details" %>
<div class="container mt-5">
<div class="row">
<div class="col col-md-2">
Expand Down

0 comments on commit 82a8abc

Please sign in to comment.