rails_admin_robots_txt 0.1.0.1 → 0.1.0.2
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: 5aae30691acf1e0f3552002627dac608ff5b5123
|
4
|
+
data.tar.gz: e461be45bb670fa1e33fe6ce6fe06b700054b25d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df89ffdda0a0adf5918b9f1720a6ba8fae2a2ddc008a19142615e9ebafe0813f9ec27cceddbd96d10865e0e77c70ee2b7ec0e9efe8838f21d105c61f63c0ed6f
|
7
|
+
data.tar.gz: 8314640db871577d4b981f2e9a1ea5023c34d2cc20fc4471c70507fcd0a62fd42f5de2c362ef8552fc78d78f880ef5cdec45532a9646e3ff6e9570d03ca28a55
|
@@ -9,5 +9,5 @@
|
|
9
9
|
|
10
10
|
= link_to "Проверить", "/robots.txt", target: :_blank, title: "Проверить сожержимое robots.txt там и сейчас"
|
11
11
|
'
|
12
|
-
= link_to "Проверить тут", "/robots.txt", title: "Проверить сожержимое robots.txt здесь и сейчас", onclick: "$('#file_contents').load(this.href); return false;"
|
12
|
+
= link_to "Проверить тут", "/robots.txt", title: "Проверить сожержимое robots.txt здесь и сейчас", onclick: "$('#file_contents').load(this.href + '?' + (new Date().getTime())); return false;"
|
13
13
|
pre#file_contents{style='margin-bottom: 20px;'}
|
@@ -20,6 +20,10 @@ module RailsAdmin
|
|
20
20
|
end
|
21
21
|
|
22
22
|
register_instance_option :route_fragment do
|
23
|
+
'robots_txt_editor'
|
24
|
+
end
|
25
|
+
|
26
|
+
register_instance_option :template_name do
|
23
27
|
'robots_txt'
|
24
28
|
end
|
25
29
|
|
@@ -82,6 +86,14 @@ module RailsAdmin
|
|
82
86
|
true
|
83
87
|
end
|
84
88
|
|
89
|
+
register_instance_option :route_fragment do
|
90
|
+
'robots_txt_editor'
|
91
|
+
end
|
92
|
+
|
93
|
+
register_instance_option :template_name do
|
94
|
+
'robots_txt'
|
95
|
+
end
|
96
|
+
|
85
97
|
end
|
86
98
|
end
|
87
99
|
end
|