tramway-admin 1.14.1 → 1.15

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
  SHA256:
3
- metadata.gz: df5f1439859a5802e47ca17fd4b77649403abadae02b47ae96f0ee6ef64ba250
4
- data.tar.gz: 50a4f0e7170d29e963c29b794da4262b189be5674bf35b11f6458213655d57a6
3
+ metadata.gz: 6cf845dbda8af54237e9ce7894ce89b207b4205cf872c74dbc7d0285a21d3930
4
+ data.tar.gz: e6736dc2c93fe3d6682f88e2f98bcd062a02b8556f4caabd31a348d9f16804a9
5
5
  SHA512:
6
- metadata.gz: e08c02c3037a101576cb2b64bdf5fc74f3382e87794e5c5a90f847a1d4bd1aaff753b4457a7ad0453470d14026aab1b91ba66b053b18d75fc2801d2272b9c113
7
- data.tar.gz: 3a0e79b5a6fbcfd6867b0afef4565ac41f64b1a2a9925d4026e78dc0734184721587c04de105c3761dfe914c15db5cb0a9b134984bd5ec2a06f1b40e31d483a1
6
+ metadata.gz: 64d48bc859377a33466fee90b9c9cba22dc6d392a86881b9a3f55502a5e68502a1b6cfbaf9784590023d6da999a65033eaa21e55247d0f842abe7d2c8e14df98
7
+ data.tar.gz: 4b745fb984fc04456b33bdbc0349e81d7a4fb0e2a28ee473218d46cb95fca966ab95f3b538b3d2ed8ee1923b66376b0088a82745b412b19bd296285e78d37d6d
data/README.md CHANGED
@@ -1,12 +1,17 @@
1
1
  # Tramway::Admin
2
2
  Short description and motivation.
3
3
 
4
+ ## English readme
5
+
6
+ coming soon...
7
+
8
+ ## Russian readme
9
+
10
+ coming soon...
11
+
4
12
  ## Usage
5
13
  How to use my plugin.
6
14
 
7
- ## Installation
8
- Add this line to your application's Gemfile:
9
-
10
15
  ```ruby
11
16
  gem 'tramway-admin'
12
17
  ```
@@ -16,9 +21,10 @@ And then execute:
16
21
  $ bundle
17
22
  ```
18
23
 
19
- Or install it yourself as:
20
- ```bash
21
- $ gem install tramway-admin
24
+ *app/config/initializers/tramway.rb*
25
+
26
+ ```ruby
27
+ ::Tramway::Admin.set_available_models
22
28
  ```
23
29
 
24
30
  ## Contributing
@@ -4,6 +4,7 @@ module Tramway
4
4
  include ::FontAwesome5::Rails::IconHelper
5
5
  include AuthManagement
6
6
  include AdditionalButtonsBuilder
7
+ include CasesHelper
7
8
  include RussianCasesHelper
8
9
  include ::Tramway::Admin::RecordsHelper
9
10
  include ::Tramway::Admin::SingletonHelper
@@ -0,0 +1,13 @@
1
+ module Tramway
2
+ module Admin
3
+ module CasesHelper
4
+ def plural(word)
5
+ if I18n.locale == :ru
6
+ russian_plural word
7
+ else
8
+ word.model_name.human.pluralize(I18n.locale)
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
@@ -19,7 +19,7 @@ module Tramway
19
19
  case_word word, :dative
20
20
  end
21
21
 
22
- def plural(word)
22
+ def russian_plural(word)
23
23
  case_word word, :plural
24
24
  end
25
25
  end
@@ -0,0 +1,4 @@
1
+ en:
2
+ default:
3
+ collections:
4
+ all: All
@@ -0,0 +1,16 @@
1
+ en:
2
+ defaults: &defaults
3
+ month_names:
4
+ [~, January, February, March, April, May, June, July, August, September, October, November, December]
5
+ formats:
6
+ default: "%B %d %Y"
7
+ short: "%m/%d/%Y"
8
+ date:
9
+ <<: *defaults
10
+ order:
11
+ - :day
12
+ - :month
13
+ - :year
14
+ time:
15
+ <<: *defaults
16
+
@@ -0,0 +1,11 @@
1
+ en:
2
+ tramway:
3
+ admin:
4
+ welcome:
5
+ index:
6
+ title: Admin panel
7
+ auth:
8
+ web:
9
+ sessions:
10
+ new:
11
+ title: Sign In
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Admin
3
- VERSION = '1.14.1'
3
+ VERSION = '1.15'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.1
4
+ version: '1.15'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-27 00:00:00.000000000 Z
11
+ date: 2019-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootstrap-kaminari-views
@@ -242,6 +242,7 @@ files:
242
242
  - app/controllers/tramway/export/application_controller.rb
243
243
  - app/helpers/tramway/admin/additional_buttons_builder.rb
244
244
  - app/helpers/tramway/admin/application_helper.rb
245
+ - app/helpers/tramway/admin/cases_helper.rb
245
246
  - app/helpers/tramway/admin/focus_generator_helper.rb
246
247
  - app/helpers/tramway/admin/inputs_helper.rb
247
248
  - app/helpers/tramway/admin/navbar_helper.rb
@@ -272,9 +273,12 @@ files:
272
273
  - app/views/tramway/admin/welcome/index.html.haml
273
274
  - config/initializers/assets.rb
274
275
  - config/initializers/ckeditor.rb
275
- - config/locales/ru.collections.yml
276
- - config/locales/ru.date.yml
277
- - config/locales/ru.yml
276
+ - config/locales/en/collections.yml
277
+ - config/locales/en/date.yml
278
+ - config/locales/en/locale.yml
279
+ - config/locales/ru/collections.yml
280
+ - config/locales/ru/date.yml
281
+ - config/locales/ru/locale.yml
278
282
  - config/routes.rb
279
283
  - lib/tasks/tramway/admin_tasks.rake
280
284
  - lib/tramway/admin.rb