From 325a98ed0f9892d45d78c9dc82cfeab59b895ab5 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Sun, 14 Apr 2019 14:09:17 +1000 Subject: [PATCH] fix: correct tbody in show-with-tags index page --- .../ui/views/index/show-with-tags.haml | 84 +++++++++---------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/lib/pact_broker/ui/views/index/show-with-tags.haml b/lib/pact_broker/ui/views/index/show-with-tags.haml index 5b58ba44d..4eda0df23 100644 --- a/lib/pact_broker/ui/views/index/show-with-tags.haml +++ b/lib/pact_broker/ui/views/index/show-with-tags.haml @@ -33,49 +33,49 @@ %th %tbody - - index_items.each do | index_item | - %tr - %td.consumer - %a{:href => index_item.consumer_group_url } - = escape_html(index_item.consumer_name) - %td.consumer-version-number - %div - = escape_html(index_item.consumer_version_number) - - if index_item.latest? - .tag.label.label-success - latest - - index_item.consumer_version_latest_tag_names.each do | tag_name | - .tag.label.label-primary - = escape_html(tag_name) - %td.pact - %span.pact - %a{ href: index_item.pact_url, title: "View pact" } - %span.pact-matrix - %a{ href: index_item.pact_matrix_url, title: "View pact matrix" } - %td.provider - %a{ href: index_item.provider_group_url } - = escape_html(index_item.provider_name) - %td.provider-version-number - %div - = escape_html(index_item.provider_version_number) - - index_item.provider_version_latest_tag_names.each do | tag_name | - .tag.label.label-primary - = escape_html(tag_name) - %td - = index_item.publication_date_of_latest_pact.gsub("about ", "") - %td{ class: index_item.webhook_status } - - if index_item.show_webhook_status? - %a{ href: index_item.webhook_url } - = index_item.webhook_label + - index_items.each do | index_item | + %tr + %td.consumer + %a{:href => index_item.consumer_group_url } + = escape_html(index_item.consumer_name) + %td.consumer-version-number + %div + = escape_html(index_item.consumer_version_number) + - if index_item.latest? + .tag.label.label-success + latest + - index_item.consumer_version_latest_tag_names.each do | tag_name | + .tag.label.label-primary + = escape_html(tag_name) + %td.pact + %span.pact + %a{ href: index_item.pact_url, title: "View pact" } + %span.pact-matrix + %a{ href: index_item.pact_matrix_url, title: "View pact matrix" } + %td.provider + %a{ href: index_item.provider_group_url } + = escape_html(index_item.provider_name) + %td.provider-version-number + %div + = escape_html(index_item.provider_version_number) + - index_item.provider_version_latest_tag_names.each do | tag_name | + .tag.label.label-primary + = escape_html(tag_name) + %td + = index_item.publication_date_of_latest_pact.gsub("about ", "") + %td{ class: index_item.webhook_status } + - if index_item.show_webhook_status? + %a{ href: index_item.webhook_url } + = index_item.webhook_label - %td{ class: index_item.verification_status, title: index_item.verification_tooltip, "data-toggle": "tooltip", "data-placement": "left" } - %div - = index_item.last_verified_date.gsub("about ", "") - - if index_item.warning? - %span.glyphicon.glyphicon-warning-sign{ 'aria-hidden': true } - %td - - if index_item.show_settings? - %span.integration-settings.glyphicon.glyphicon-cog{ 'aria-hidden': true, 'data-pact-versions-url': index_item.pact_versions_url, 'data-consumer-name': index_item.consumer_name, 'data-provider-name': index_item.provider_name} + %td{ class: index_item.verification_status, title: index_item.verification_tooltip, "data-toggle": "tooltip", "data-placement": "left" } + %div + = index_item.last_verified_date.gsub("about ", "") + - if index_item.warning? + %span.glyphicon.glyphicon-warning-sign{ 'aria-hidden': true } + %td + - if index_item.show_settings? + %span.integration-settings.glyphicon.glyphicon-option-horizontal{ 'aria-hidden': true, 'data-pact-versions-url': index_item.pact_versions_url, 'data-consumer-name': index_item.consumer_name, 'data-provider-name': index_item.provider_name} %div.relationships-size = index_items.size_label