Skip to content

Commit

Permalink
chore: use modern hash syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Nov 11, 2017
1 parent c1069ad commit 9a3e22a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
20 changes: 10 additions & 10 deletions lib/pact_broker/ui/views/index/show-with-tags.haml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@
.container
%ul
%li.navbar-right
%a{href: '/hal-browser/browser.html'}
%a{ href: '/hal-browser/browser.html' }
API Browser
.container
%h1.page-header
Pacts
%table.table.table-bordered.table-striped{id: 'relationships'}
%table.table.table-bordered.table-striped{ id: 'relationships' }
%thead
%th.consumer
Consumer
%span.glyphicon.glyphicon-sort.relationships-sort
%th.tag
Version
%span.glyphicon.glyphicon-sort.relationships-sort
%th.pact{style: 'width: 40px'}
%th.pact{ style: 'width: 40px' }
%th.provider
Provider
%span.glyphicon.glyphicon-sort.relationships-sort
Expand All @@ -39,32 +39,32 @@
- index_items.each do | index_item |
%tr
%td.consumer
%a{:href => index_item.consumer_group_url}
%a{:href => index_item.consumer_group_url }
= index_item.consumer_name
%td
= index_item.consumer_version_number
%span{style: 'color:gray'}
= index_item.tag_names
%td.pact
%a{:href => index_item.pact_url, :title => "View pact"}
%a{ href: index_item.pact_url, title: "View pact" }
%span.pact
%td.provider
%a{:href => index_item.provider_group_url}
%a{ href: index_item.provider_group_url }
= index_item.provider_name
%td
= index_item.provider_version_number
%td
= index_item.publication_date_of_latest_pact.gsub("about ", "")
%td{class: index_item.webhook_status}
%td{ class: index_item.webhook_status }
- if index_item.show_webhook_status?
%a{:href => index_item.webhook_url}
%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"}
%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}
%span.glyphicon.glyphicon-warning-sign{ 'aria-hidden': true }
%div.relationships-size
= index_items.size_label
Expand Down
16 changes: 8 additions & 8 deletions lib/pact_broker/ui/views/index/show.haml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
.container
%ul
%li.navbar-right
%a{href: '/hal-browser/browser.html'}
%a{ href: '/hal-browser/browser.html' }
API Browser
.container
%h1.page-header
Pacts
%table.table.table-bordered.table-striped{id: 'relationships'}
%table.table.table-bordered.table-striped{ id: 'relationships' }
%thead
%th
%th.consumer
Expand All @@ -37,26 +37,26 @@
%tr
%td
%td.consumer
%a{:href => index_item.consumer_group_url}
%a{ href: index_item.consumer_group_url }
= index_item.consumer_name
%td.pact
%a{:href => index_item.pact_url, :title => "View pact"}
%a{ href: index_item.pact_url, :title => "View pact" }
%span.pact
%td.provider
%a{:href => index_item.provider_group_url}
%a{ href: index_item.provider_group_url }
= index_item.provider_name
%td
%td
= index_item.publication_date_of_latest_pact
%td{class: index_item.webhook_status}
%a{:href => index_item.webhook_url}
%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"}
%td{ class: index_item.verification_status, title: index_item.verification_tooltip, "data-toggle": "tooltip", "data-placement": "left" }
%div
= index_item.last_verified_date
- if index_item.warning?
%span.glyphicon.glyphicon-warning-sign{'aria-hidden':true}
%span.glyphicon.glyphicon-warning-sign{ 'aria-hidden': true }
%div.relationships-size
= index_items.size_label
Expand Down

0 comments on commit 9a3e22a

Please sign in to comment.