lib/pact_broker/ui/views/matrix/show.haml in pact_broker-2.76.2 vs lib/pact_broker/ui/views/matrix/show.haml in pact_broker-2.77.0

- old
+ new

@@ -116,10 +116,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" + %div{"class": branch_class} + = "[" + line.consumer_version_branch + "]" - line.latest_consumer_version_tags.each do | tag | .tag-parent{"title": tag.tooltip, "data-toggle": "tooltip", "data-placement": "right"} %a{href: tag.url} .tag.badge.badge-primary = tag.name @@ -143,9 +148,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" + %div{"class": branch_class} + = "[" + line.provider_version_branch + "]" - line.latest_provider_version_tags.each do | tag | .tag-parent{"title": tag.tooltip, "data-toggle": "tooltip", "data-placement": "right"} %a{href: tag.url} .tag.badge.badge-primary = tag.name