Skip to content

Commit 325a98e

Browse files
committed
fix: correct tbody in show-with-tags index page
1 parent c812987 commit 325a98e

File tree

1 file changed

+42
-42
lines changed

1 file changed

+42
-42
lines changed

lib/pact_broker/ui/views/index/show-with-tags.haml

+42-42
Original file line numberDiff line numberDiff line change
@@ -33,49 +33,49 @@
3333
%th
3434
%tbody
3535

36-
- index_items.each do | index_item |
37-
%tr
38-
%td.consumer
39-
%a{:href => index_item.consumer_group_url }
40-
= escape_html(index_item.consumer_name)
41-
%td.consumer-version-number
42-
%div
43-
= escape_html(index_item.consumer_version_number)
44-
- if index_item.latest?
45-
.tag.label.label-success
46-
latest
47-
- index_item.consumer_version_latest_tag_names.each do | tag_name |
48-
.tag.label.label-primary
49-
= escape_html(tag_name)
50-
%td.pact
51-
%span.pact
52-
%a{ href: index_item.pact_url, title: "View pact" }
53-
%span.pact-matrix
54-
%a{ href: index_item.pact_matrix_url, title: "View pact matrix" }
55-
%td.provider
56-
%a{ href: index_item.provider_group_url }
57-
= escape_html(index_item.provider_name)
58-
%td.provider-version-number
59-
%div
60-
= escape_html(index_item.provider_version_number)
61-
- index_item.provider_version_latest_tag_names.each do | tag_name |
62-
.tag.label.label-primary
63-
= escape_html(tag_name)
64-
%td
65-
= index_item.publication_date_of_latest_pact.gsub("about ", "")
66-
%td{ class: index_item.webhook_status }
67-
- if index_item.show_webhook_status?
68-
%a{ href: index_item.webhook_url }
69-
= index_item.webhook_label
36+
- index_items.each do | index_item |
37+
%tr
38+
%td.consumer
39+
%a{:href => index_item.consumer_group_url }
40+
= escape_html(index_item.consumer_name)
41+
%td.consumer-version-number
42+
%div
43+
= escape_html(index_item.consumer_version_number)
44+
- if index_item.latest?
45+
.tag.label.label-success
46+
latest
47+
- index_item.consumer_version_latest_tag_names.each do | tag_name |
48+
.tag.label.label-primary
49+
= escape_html(tag_name)
50+
%td.pact
51+
%span.pact
52+
%a{ href: index_item.pact_url, title: "View pact" }
53+
%span.pact-matrix
54+
%a{ href: index_item.pact_matrix_url, title: "View pact matrix" }
55+
%td.provider
56+
%a{ href: index_item.provider_group_url }
57+
= escape_html(index_item.provider_name)
58+
%td.provider-version-number
59+
%div
60+
= escape_html(index_item.provider_version_number)
61+
- index_item.provider_version_latest_tag_names.each do | tag_name |
62+
.tag.label.label-primary
63+
= escape_html(tag_name)
64+
%td
65+
= index_item.publication_date_of_latest_pact.gsub("about ", "")
66+
%td{ class: index_item.webhook_status }
67+
- if index_item.show_webhook_status?
68+
%a{ href: index_item.webhook_url }
69+
= index_item.webhook_label
7070

71-
%td{ class: index_item.verification_status, title: index_item.verification_tooltip, "data-toggle": "tooltip", "data-placement": "left" }
72-
%div
73-
= index_item.last_verified_date.gsub("about ", "")
74-
- if index_item.warning?
75-
%span.glyphicon.glyphicon-warning-sign{ 'aria-hidden': true }
76-
%td
77-
- if index_item.show_settings?
78-
%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}
71+
%td{ class: index_item.verification_status, title: index_item.verification_tooltip, "data-toggle": "tooltip", "data-placement": "left" }
72+
%div
73+
= index_item.last_verified_date.gsub("about ", "")
74+
- if index_item.warning?
75+
%span.glyphicon.glyphicon-warning-sign{ 'aria-hidden': true }
76+
%td
77+
- if index_item.show_settings?
78+
%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}
7979
%div.relationships-size
8080
= index_items.size_label
8181

0 commit comments

Comments
 (0)