We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ccda93 commit 75d3580Copy full SHA for 75d3580
lib/pact_broker/ui/view_models/index_item.rb
@@ -131,6 +131,10 @@ def publication_date_of_latest_pact
131
PactBroker::DateHelper.distance_of_time_in_words(date, DateTime.now) + " ago"
132
end
133
134
+ def publication_date_of_latest_pact_order
135
+ @relationship.latest_pact.created_at.to_time.to_i
136
+ end
137
+
138
def verification_status
139
case @relationship.verification_status
140
when :success then "success"
lib/pact_broker/ui/views/index/show.haml
@@ -42,7 +42,7 @@
42
%a{ href: index_item.provider_group_url }
43
= escape_html(index_item.provider_name)
44
%td
45
- %td
+ %td{"data-text": index_item.publication_date_of_latest_pact_order}
46
= index_item.publication_date_of_latest_pact
47
%td{class: index_item.webhook_status}
48
%a{ href: index_item.webhook_url }
0 commit comments