lib/pact_broker/ui/views/matrix/show.haml in pact_broker-2.83.0 vs lib/pact_broker/ui/views/matrix/show.haml in pact_broker-2.84.0

- old
+ new

@@ -134,15 +134,15 @@ %a{href: line.consumer_version_number_url} = line.display_consumer_version_number - if line.display_consumer_version_number %button.clippy.invisible{ title: "Copy to clipboard" } %span.copy-icon - - if line.consumer_version_branch - .tag-parent{"title": line.consumer_version_branch_tooltip, "data-toggle": "tooltip", "data-placement": "right"} - - branch_class = line.consumer_version_latest_for_branch? ? "tag badge badge-dark" : "tag badge badge-secondary" + - line.consumer_version_branches.each do | branch | + .tag-parent{"title": branch.tooltip, "data-toggle": "tooltip", "data-placement": "right"} + - branch_class = branch.latest? ? "tag badge badge-dark" : "tag badge badge-secondary" %div{"class": branch_class} - = "branch: " + line.consumer_version_branch + = "branch: " + branch.name - line.consumer_versions_in_environments.each do | version_in_environment | .tag-parent{"title": version_in_environment.tooltip, "data-toggle": "tooltip", "data-placement": "right"} %a{href: version_in_environment.url} .tag.badge.badge-success = "env: " + version_in_environment.environment_name @@ -171,14 +171,14 @@ %a{href: line.provider_version_number_url} = line.display_provider_version_number - if line.display_provider_version_number %button.clippy.invisible{ title: "Copy to clipboard" } %span.copy-icon - - if line.provider_version_branch - .tag-parent{"title": line.provider_version_branch_tooltip, "data-toggle": "tooltip", "data-placement": "right"} - - branch_class = line.provider_version_latest_for_branch? ? "tag badge badge-dark" : "tag badge badge-secondary" + - line.provider_version_branches.each do | branch | + .tag-parent{"title": branch.tooltip, "data-toggle": "tooltip", "data-placement": "right"} + - branch_class = branch.latest? ? "tag badge badge-dark" : "tag badge badge-secondary" %div{"class": branch_class} - = "branch: " + line.provider_version_branch + = "branch: " + branch.name - line.provider_versions_in_environments.each do | version_in_environment | .tag-parent{"title": version_in_environment.tooltip, "data-toggle": "tooltip", "data-placement": "right"} %a{href: version_in_environment.url} .tag.badge.badge-success = "env: " + version_in_environment.environment_name