seo_fuel 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
|
|
1
1
|
<%= link_to I18n.t('seo.button_text'), "#", class: "seo_fuel", id: "edit_seo_btn" unless SeoFuel::VERSION < "0.0.5" %>
|
2
2
|
<div id="edit_seo_dialog" class="seo_fuel" style="display: none;">
|
3
|
-
<%= form_for SeoTag.find_or_initialize_by_path(request.path), remote: true, html: {class: "seo_form"} do |f|%>
|
3
|
+
<%= form_for SeoTag.find_or_initialize_by_path(@seo_identifier.present? ? @seo_identifier : request.path), remote: true, html: {class: "seo_form"} do |f|%>
|
4
4
|
<%= f.hidden_field :path %>
|
5
5
|
<%= hidden_field_tag :key, seo_fuel_authentication_key %>
|
6
6
|
<%= f.label :title, "#{I18n.t('seo.form.title')}".html_safe %>
|
data/lib/seo_fuel/version.rb
CHANGED
data/lib/seo_fuel/view_helper.rb
CHANGED
@@ -17,6 +17,10 @@ module SeoFuel
|
|
17
17
|
link_to text, "#", class: "seo_fuel #{klass}", id: "edit_seo_btn"
|
18
18
|
end
|
19
19
|
|
20
|
+
def seo_identifier(tag)
|
21
|
+
@seo_identifier = tag.force_encoding('utf-8')
|
22
|
+
end
|
23
|
+
|
20
24
|
# set your default title in any view template, by
|
21
25
|
# simply calling `default_title(your_title_here)`
|
22
26
|
# this title takes precedence over the default title set
|
@@ -104,7 +108,7 @@ module SeoFuel
|
|
104
108
|
# returns the current SeoTag object
|
105
109
|
# this instance contains all the SEO options
|
106
110
|
def current_page
|
107
|
-
SeoTag.find_by_path(request.path)
|
111
|
+
SeoTag.find_by_path(@seo_identifier.present? ? @seo_identifier : request.path)
|
108
112
|
end
|
109
113
|
|
110
114
|
# renders the `title_to_show` inside a `<title>` tag.
|
@@ -8,12 +8,13 @@
|
|
8
8
|
position: fixed;
|
9
9
|
top: -5px;
|
10
10
|
left: 50%;
|
11
|
+
z-index: 999;
|
11
12
|
margin-left: -78px;
|
12
13
|
min-width: 150px;
|
13
14
|
background: #fff;
|
14
15
|
border: 1px solid #dedede;
|
15
|
-
padding-bottom:
|
16
|
-
padding-top:
|
16
|
+
padding-bottom: 1px;
|
17
|
+
padding-top: 4px;
|
17
18
|
padding-left: 3px;
|
18
19
|
padding-right: 4px;
|
19
20
|
background-image: linear-gradient(bottom, rgb(166,166,166) 6%, rgb(217,217,217) 56%);
|
@@ -75,8 +76,9 @@
|
|
75
76
|
box-shadow: 0px 0px 2px 2px #dedede;
|
76
77
|
|
77
78
|
|
78
|
-
opacity:0.
|
79
|
-
filter:alpha(opacity=
|
79
|
+
opacity:0.95;
|
80
|
+
filter:alpha(opacity=95); /* For IE8 and earlier */
|
81
|
+
z-index: 999;
|
80
82
|
}
|
81
83
|
|
82
84
|
.spacer{clear:both; height:1px;}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: seo_fuel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|