redde_seo 0.0.3 → 0.0.4
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 +2 -2
- 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: 5aab502b4441399a9a16afb66cd4702e9e7a8547
|
4
|
+
data.tar.gz: e2b0ba29a2b38eec17fd6f77581148f001ec664d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccfa6b0fbc6a8e9068a0951c15e67604259d20e4052929ef487f964ce088eb9ed8eb9a727b2a60f03d0ea2f7d9bafbde4c2f17f1eee747e1c370f8fd77098d2d
|
7
|
+
data.tar.gz: 313a971c1ffd79f13e2d3dc0fcd30b33cab86a5045b0dfd6abd9116f72a8c5e209388b80b7aad6c8b236b164e93d8c019d044d36c271b4b3277de5a5687e6bfa
|
@@ -4,7 +4,7 @@ module Redde::Seo::SeosHelper
|
|
4
4
|
end
|
5
5
|
|
6
6
|
def seo_url_for(seo)
|
7
|
-
title = truncate(seo.url, length:
|
7
|
+
title = truncate(seo.url, length: 40)
|
8
8
|
title.present? ? title : 'НЕ ЗАПОЛНЕНО'
|
9
9
|
end
|
10
10
|
|
@@ -18,7 +18,7 @@ module Redde::Seo::SeosHelper
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def seo_title_for(seo)
|
21
|
-
title = seo.title.present? ? seo.title : 'НЕ ЗАПОЛНЕНО'
|
21
|
+
title = seo.title.present? ? truncate(seo.title, length: 17) : 'НЕ ЗАПОЛНЕНО'
|
22
22
|
link_to title, [:edit, :admin, seo], alt: seo.url, title: seo.url
|
23
23
|
end
|
24
24
|
|
data/lib/redde_seo/version.rb
CHANGED