rails_admin_history_rollback 0.0.6 → 0.0.7

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: 3ca15971d75e271b6ca79fb484e9e9b2a5786757
4
- data.tar.gz: a337f1000d89ef156076f80bf36db96aa3e963d2
3
+ metadata.gz: dc161cc645cb9e24bd48b539f1d0e1ca95aa1c51
4
+ data.tar.gz: 76e2645b71112f447a400de9a618e9b3d161d70f
5
5
  SHA512:
6
- metadata.gz: 2fada86713c5b6a026775a26a44e19d4280beb9f9e601f6b913bcc7e6649af2eded1ee55643310772e497111213b8a23ce35e3750cea75f6a3bef20c022d0146
7
- data.tar.gz: a8cb0c604586111cfe27450c11f77f5381abbe87cbec883e7c96fe8ac9085ac25e0cfc3acc517d852ede3dd9a01c8d5891c66fa6dc66b94dc8fc366511ab668b
6
+ metadata.gz: d3277f6cb3ff0a63578b3f918d17f7d5388bdc5d01726e9ce3ad3c9aa79dc8aa9d8cb34335b499c8892ee93a83fe23acb53b952fc5c8a0066e8e7237ffb537a7
7
+ data.tar.gz: 3a35d28c9a355cfe9bfa7f7c3c3d331ad8b3756e724f551a13b2e73be7fe589e6602135c56e7d5ef66d1ed772af92a24f690ddc09bd9a538ced8b3d3f829bd12
@@ -25,4 +25,6 @@
25
25
  - label = Object.const_defined?(t.table) ? t.table.constantize.model_name.human : t.table
26
26
  %td= "#{label} ##{t.item}"
27
27
  %td= t.message
28
- %td= link_to(t("admin.history_rollback.table_headers.view_changes"), "#", class: "changeset", :data => {:url => url_for(action: action(:history_index, abstract_model).action_name, model_name: abstract_model.to_param, version_id: t.version_id)})
28
+ %td
29
+ -if history_action = action(:history_index, abstract_model)
30
+ = link_to(t("admin.history_rollback.table_headers.view_changes"), "#", class: "changeset", :data => {:url => url_for(action: history_action.action_name, model_name: abstract_model.to_param, version_id: t.version_id)})
@@ -0,0 +1,14 @@
1
+ ru:
2
+ admin:
3
+ history_rollback:
4
+ cancel: "Отмена"
5
+ confirm: "Вы уверены?"
6
+ table_headers:
7
+ changes: "Изменения"
8
+ field: "Поле"
9
+ rollback: "Восстановить"
10
+ view_changes: "Посмотреть изменения"
11
+ rollback_destroy: "Данная версия восстановлена."
12
+ rollback_success: "Изменения данной версии восстановлены."
13
+ rollback_impossible: "Невозможно восстановить. Извините."
14
+ version_not_found: "Данная версия не существует."
@@ -1,3 +1,3 @@
1
1
  module RailsAdminHistoryRollback
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_history_rollback
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rikki Pitt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-24 00:00:00.000000000 Z
11
+ date: 2016-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -70,6 +70,7 @@ files:
70
70
  - app/views/rails_admin/main/_version.html.haml
71
71
  - app/views/rails_admin/main/history.html.haml
72
72
  - config/locales/history_rollback.en.yml
73
+ - config/locales/history_rollback.ru.yml
73
74
  - config/locales/history_rollback.zh_cn.yml
74
75
  - lib/rails_admin_history_rollback.rb
75
76
  - lib/rails_admin_history_rollback/config/actions/history_index.rb
@@ -96,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
97
  version: '0'
97
98
  requirements: []
98
99
  rubyforge_project:
99
- rubygems_version: 2.4.7
100
+ rubygems_version: 2.5.1
100
101
  signing_key:
101
102
  specification_version: 4
102
103
  summary: History rollback with paper_trail for rails_admin