oxen_account 0.2.9 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2311e806b9f975c497ab214da15b930ad59ac1c0
4
- data.tar.gz: 338b2a03f52fd6968135f59a1a09fabc6716d08d
3
+ metadata.gz: cfbe2c62b66079cc9d4a9d037be74aa17d7e2251
4
+ data.tar.gz: fc00b920a302c1eee18a561a32c136d9cbedf9cd
5
5
  SHA512:
6
- metadata.gz: 6df857bd28baff231be1c97172d53299007f3e6fea5a20c9b93dc0acdde47adf9a8d23b8c66dad7465e6eebbda5f1b49ae8bf666447a30c84d572e45cee08d74
7
- data.tar.gz: 93a4a9bec08a36847cb839fe4802dbfe75870a11c08ea2fdda5b34ea34ffaf6a2e10b9a9dc6500ebe60527c21418cec802d59e2972ba8bc3e1283ec8f2d6c135
6
+ metadata.gz: bae364ac4291f7ada1855c0a5918470a3b78a89e5e28e58227da630b72a80ec41484f790ca045e1c27e6c37783dc330a12ce700c7e8f7c1ec93e3fed0d38c098
7
+ data.tar.gz: f1cec3b1ce1f0b23d949b9074a332873ee17365f58e899e0840ddae969649137b3924b2c79fd7075a6c8895bfcaf68d5b0ab4854af07f00882f2a604e50bf4e6
@@ -9,5 +9,16 @@ module Oxen
9
9
  link_to arr[0], arr[1]
10
10
  end
11
11
 
12
+ def show_print_servers resource
13
+ unless resource.print_server_addresses.blank?
14
+ resource.print_server_addresses.split(",").collect do |n|
15
+ m=n.match /(.*): (.*)/
16
+ link_to( m[1], 'http://10.0.0.142:631', target: '_blank') if m.size==3
17
+ end.join( "<br />").html_safe
18
+ else
19
+ link_to t('.cups_adm'), 'http://10.0.0.142:631', target: '_blank'
20
+ end
21
+ end
22
+
12
23
  end
13
24
  end
@@ -1,4 +1,5 @@
1
- %tr{ id: "tr-#{resource.id}"}
1
+ %tr{ id: "tr-#{resource_class}-#{resource.id}"}
2
2
  %td= link_to resource.name, resource
3
3
  %td= show_resource_active resource
4
+ %td= show_print_servers resource
4
5
  %td= show_resource_delete_icon resource, '/admin/accounts'
@@ -11,6 +11,7 @@
11
11
  %tr
12
12
  %th{ :"data-field"=>"name"}= t('.name')
13
13
  %th{ :"data-field"=>"active"}= t('.active')
14
+ %th{ :"data-field"=>"name"}= t('.cups_adm')
14
15
  %th= t(:delete)
15
16
 
16
17
  %tbody.bordered.responsive-table.striped.hoverable.page.resources_list
@@ -1,3 +1,3 @@
1
1
  module OxenAccount
2
- VERSION = "0.2.9"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oxen_account
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Walther H Diechmann
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-10 00:00:00.000000000 Z
11
+ date: 2016-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devise