redde_seo 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/redde/seo/seos_helper.rb +3 -4
- data/app/views/admin/seos/index.html.haml +10 -4
- data/lib/redde_seo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eaaee80396cd1ddaca558e32d5006d12d874b094
|
4
|
+
data.tar.gz: 3ac3076cbb534f88f10a6b77fde24a6c79dddf26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51ed5570248de4d2cc0364ec7f628244fa0e735658bf93aa2e173d167edf56e6228294cea6046534745822f731e320866a7942555af962b0a161ec45db9d2638
|
7
|
+
data.tar.gz: fa3da236405353d393997f8aba423bd87114a34ea367606137a05ef9b70ae5c32349b879386d87a1b02eab7c872cd91af19204652d9d8bbf09ea31949e4e3d65
|
@@ -1,10 +1,9 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
|
3
3
|
module Redde::Seo::SeosHelper
|
4
|
-
def seo_empty_link(name, key)
|
5
|
-
|
6
|
-
|
7
|
-
end
|
4
|
+
def seo_empty_link(name, key = nil)
|
5
|
+
return name if params[:empty].to_s == key.to_s
|
6
|
+
link_to name, url_for(params.merge(empty: key))
|
8
7
|
end
|
9
8
|
|
10
9
|
def seo_type_link(name, key)
|
@@ -1,8 +1,11 @@
|
|
1
1
|
- content_for(:page_header) do
|
2
2
|
%h1 SEO
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
%p
|
4
|
+
= seo_empty_link('Все')
|
5
|
+
|
|
6
|
+
= seo_empty_link('Пустые', true)
|
7
|
+
|
|
8
|
+
= seo_empty_link('Полные', false)
|
6
9
|
%nav.phead-tabs
|
7
10
|
- @categories.each do |name, key|
|
8
11
|
= seo_type_link(name, key)
|
@@ -28,5 +31,8 @@
|
|
28
31
|
%td= seo_title_for(seo)
|
29
32
|
%td= seo_empty_for(seo)
|
30
33
|
%td= link_to 'Удалить', [:admin, seo], method: :delete, data: { confirm: 'Удалить?' }, class: :del
|
31
|
-
|
34
|
+
- begin
|
35
|
+
= paginate @seos, theme: :redde
|
36
|
+
- rescue
|
37
|
+
= paginate @seos
|
32
38
|
|
data/lib/redde_seo/version.rb
CHANGED