Skip to content

Commit 6ec976f

Browse files
committed
add ok? indicator for each print host
1 parent 9e20c97 commit 6ec976f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/views/print_hosts/index.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ def view_template
1010
p { t("views.print_hosts.index.description") }
1111
table class: "table table-striped" do
1212
tr do
13+
th
1314
th { PrintHost.human_attribute_name :name }
1415
th { PrintHost.human_attribute_name :endpoint }
1516
th { PrintHost.human_attribute_name :protocol }
1617
th
1718
end
1819
@print_hosts.each do |print_host|
1920
tr do
21+
td { print_host.service.ok? ? "✅" : "❌" }
2022
td { print_host.name }
2123
td { code { print_host.endpoint } }
2224
td { translate("print_hosts.protocols.%{protocol}" % {protocol: print_host.protocol}) }

0 commit comments

Comments
 (0)