oxen_account 0.4.9 → 0.4.11

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: b84b5ee4c3f2036c10fcde8157fd75411b40ecc9
4
- data.tar.gz: c29465615c163cf30fd1fb6395be4de17ce5d13a
3
+ metadata.gz: 44af386a312bea365aca53bdbab138a167cf227f
4
+ data.tar.gz: f1033fc29f9726c8aa01a19f55033f968f4572ef
5
5
  SHA512:
6
- metadata.gz: bf53a3a7daba52e3448cde4f5c649666c4f90934f2140b60e0b114a44d8535610d2919bff28a981c6703d7eadcd62ea64b4243b391a0066b8ddf9e908fa3eab3
7
- data.tar.gz: eecccd31888c5519c936c51a221ceb8c7b0a5a7942db2413710bd018f84e850e6fd91159aa01fecf3139fa7a81d727d72a9245ae986c98561a44698319e209ed
6
+ metadata.gz: 42fbce935c1baf7f858aea30e6a23f5ba617202a82f0cb0891b5afafa427c6b44a0f36da4c66c78b7f6d6519ad763cdbcdf828c213513353ca6d517558ed4777
7
+ data.tar.gz: 434c450524d269ce1aaf78f399904876d098c722a1a0bb35aaf98a3542d8a41a5a243c72b9c59d20ec62ec907bcffb12b63b59150408f63d87c698f89ad594c9
@@ -5,7 +5,6 @@ class OxAccount < AbstractResource
5
5
 
6
6
  has_many :users, dependent: :destroy, foreign_key: 'account_id'
7
7
  has_many :printers, dependent: :destroy, foreign_key: 'account_id'
8
- has_many :printservers, dependent: :destroy, foreign_key: 'account_id'
9
8
  has_many :services, dependent: :destroy, foreign_key: 'account_id'
10
9
 
11
10
  validates :name, presence: true
@@ -1,4 +1,4 @@
1
- %tr{ id: "tr-#{resource.class.to_s}-#{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
4
  %td= show_print_servers resource
@@ -1,4 +1,4 @@
1
- %tr.post{ id: "tr-#{user.class.to_s}-#{user.id}", class:"#{invited_user? user}"}
1
+ %tr{ id: "tr-#{user.id}", class:"#{invited_user? user}"}
2
2
  %td= link_to user.name, user
3
3
  %td= user.email
4
4
  %td= show_resource_active user
@@ -9,4 +9,6 @@
9
9
  = link_to url_for(user) + '/confirm', class: "unconfirmed yellow-text" do
10
10
  = content_tag :i, 'report_problem', class: "material-icons"
11
11
  %td= user.invitations.count
12
- %td= show_resource_delete_icon user, '/admin/users'
12
+ %td
13
+ = link_to user, class: 'delete_link', data: { url: '/admin/users', name: "#{user.name}", id: "#{user.id}", remove: "#tr-#{user.id}" } do
14
+ %i.material-icons.small{ title: "#{t('.delete')}"} delete
@@ -1,10 +1,9 @@
1
- %tr.post{ id: "tr-#{resource_class.to_s}-#{user.id}", class:"#{invited_user? user}"}
1
+ %tr{ id: "tr-#{user.id}", class:"#{invited_user? user}"}
2
2
  %td= link_to user.name, user
3
3
  %td= link_to( user.account.name, user.account) rescue ''
4
4
  %td= user.email rescue ''
5
5
  %td= show_resource_active user
6
6
  %td= user.invitations.count
7
- %td= show_resource_delete_icon user, '/admin/users'
8
- -# %td
9
- -# = link_to user, class: 'delete_link', data: { url: '/admin/users', name: "#{user.name}", id: "#{user.id}", remove: "#tr-#{user.id}" } do
10
- -# %i.material-icons.small{ title: "#{t('.delete')}"} delete
7
+ %td
8
+ = link_to user, class: 'delete_link', data: { url: '/admin/users', name: "#{user.name}", id: "#{user.id}", remove: "#tr-#{user.id}" } do
9
+ %i.material-icons.small{ title: "#{t('.delete')}"} delete
@@ -1,3 +1,3 @@
1
1
  module OxenAccount
2
- VERSION = "0.4.9"
2
+ VERSION = "0.4.11"
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.4.9
4
+ version: 0.4.11
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-05-26 00:00:00.000000000 Z
11
+ date: 2016-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devise