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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7bc51bdeafb5c59c2002a266a50954333479ac7a
4
- data.tar.gz: 2a0f94f206f07d133c0a939cc7557e4597ac41ce
3
+ metadata.gz: eaaee80396cd1ddaca558e32d5006d12d874b094
4
+ data.tar.gz: 3ac3076cbb534f88f10a6b77fde24a6c79dddf26
5
5
  SHA512:
6
- metadata.gz: 411fa7bf5f7b05860c9e1ebc57cf45c6df452815ff7728d529b7782e1ff8580004f6a8385f9cf8521e565db43fc4f5915284a2466115a4a5651876d83280773f
7
- data.tar.gz: bb31a361cea476eb6faa06019a6e08534eb211aa308326d6e753137338a8cee3e929584a7c03703bf344275bf9e69caf456719513bdc11d79d8076d21e7a675a
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
- content_tag :p do
6
- link_to name, params.merge(empty: key), class: ['phead-side__link', ('_active' if params[:empty] == key.to_s)]
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
- = seo_empty_link('Все', nil)
4
- = seo_empty_link('Пустые', true)
5
- = seo_empty_link('Полные', false)
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
- = paginate @seos
34
+ - begin
35
+ = paginate @seos, theme: :redde
36
+ - rescue
37
+ = paginate @seos
32
38
 
@@ -1,3 +1,3 @@
1
1
  module ReddeSeo
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redde_seo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleg Bovykin