From 9a3e22a6819f92bad7ad79ef90cd33dc03aae6a0 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Sat, 11 Nov 2017 19:34:22 +1100 Subject: [PATCH] chore: use modern hash syntax --- .../ui/views/index/show-with-tags.haml | 20 +++++++++---------- lib/pact_broker/ui/views/index/show.haml | 16 +++++++-------- 2 files changed, 18 insertions(+), 18 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 e9bb5e9b5..682a347a8 100644 --- a/lib/pact_broker/ui/views/index/show-with-tags.haml +++ b/lib/pact_broker/ui/views/index/show-with-tags.haml @@ -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.consumer Consumer @@ -21,7 +21,7 @@ %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 @@ -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 diff --git a/lib/pact_broker/ui/views/index/show.haml b/lib/pact_broker/ui/views/index/show.haml index 48901306b..65376e73c 100644 --- a/lib/pact_broker/ui/views/index/show.haml +++ b/lib/pact_broker/ui/views/index/show.haml @@ -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 @@ -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