app/helpers/oxen/accounts_helper.rb in oxen_account-0.2.9 vs app/helpers/oxen/accounts_helper.rb in oxen_account-0.3.0
- old
+ new
@@ -7,7 +7,18 @@
def build_link_from_array arr
link_to arr[0], arr[1]
end
+ def show_print_servers resource
+ unless resource.print_server_addresses.blank?
+ resource.print_server_addresses.split(",").collect do |n|
+ m=n.match /(.*): (.*)/
+ link_to( m[1], 'http://10.0.0.142:631', target: '_blank') if m.size==3
+ end.join( "<br />").html_safe
+ else
+ link_to t('.cups_adm'), 'http://10.0.0.142:631', target: '_blank'
+ end
+ end
+
end
end