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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc161cc645cb9e24bd48b539f1d0e1ca95aa1c51
|
4
|
+
data.tar.gz: 76e2645b71112f447a400de9a618e9b3d161d70f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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: "Данная версия не существует."
|
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.
|
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:
|
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.
|
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
|