rails_admin_sitemap 0.3.0 → 0.3.0.1
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: 55c3a1ea70fc06f75486b67bbae3d38580c5017a
|
4
|
+
data.tar.gz: b9acad6ac6d0bbe649548764a80dd940f3a10b79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bae5ee3bcff12cc4d87b39520a3afe9539e0258abec6496f657206ca78f2cc8a2de66089d70cd0c51aca788cdfff7a8ea44193e3a824a933d7529368aebcfbfb
|
7
|
+
data.tar.gz: 7de7fd4a13fb190afd4a840de225c018a2054b704ec42eb21bff510c821bd759b5edce6b99286ec046d41548aae890cb285bfd749b81b2ea49521c3e0b425000
|
@@ -6,5 +6,5 @@
|
|
6
6
|
|
7
7
|
= link_to "Проверить", "/sitemap.xml.gz", target: :_blank, title: "Проверить сожержимое sitemap.xml там и сейчас"
|
8
8
|
'
|
9
|
-
= link_to "Проверить тут", sitemap_path(model_name: @abstract_model, get_xml: true), title: "Проверить сожержимое sitemap.xml здесь и сейчас", onclick: "$('#file_contents').load(this.href, function(){$('#file_contents').text($('#file_contents').html())}); return false;"
|
9
|
+
= link_to "Проверить тут", sitemap_path(model_name: @abstract_model, get_xml: true), title: "Проверить сожержимое sitemap.xml здесь и сейчас", onclick: "$('#file_contents').load(this.href + '?' + (new Date().getTime()), function(){$('#file_contents').text($('#file_contents').html())}); return false;"
|
10
10
|
pre#file_contents{style='margin-bottom: 20px;'}
|
@@ -11,6 +11,13 @@ module RailsAdmin
|
|
11
11
|
true
|
12
12
|
end
|
13
13
|
|
14
|
+
register_instance_option :route_fragment do
|
15
|
+
'sitemap_generator'
|
16
|
+
end
|
17
|
+
|
18
|
+
register_instance_option :template_name do
|
19
|
+
'sitemap'
|
20
|
+
end
|
14
21
|
|
15
22
|
register_instance_option :controller do
|
16
23
|
Proc.new do
|
@@ -105,6 +112,14 @@ module RailsAdmin
|
|
105
112
|
true
|
106
113
|
end
|
107
114
|
|
115
|
+
register_instance_option :route_fragment do
|
116
|
+
'sitemap_generator'
|
117
|
+
end
|
118
|
+
|
119
|
+
register_instance_option :template_name do
|
120
|
+
'sitemap'
|
121
|
+
end
|
122
|
+
|
108
123
|
end
|
109
124
|
end
|
110
125
|
end
|