seo_fuel 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -4,8 +4,6 @@ _This gem is still in early development. Described features work, but some featu
4
4
 
5
5
  SEO Fuel is a super easy way to manage SEO tags in your Rails app. It doesn't require any adjustments to existing models or controllers.
6
6
 
7
- ![Edit SEO right in your browser](http://server6.dagjeweg.nl/bestanden/seo_fuel_example.png "Example Usage")
8
-
9
7
  ## Philosophy
10
8
  Where to put SEO? The main idea behind this gem is that end users often want to be able to fine tune SEO settings right in the browser, without going to some sort of backend or options file.
11
9
 
@@ -30,7 +30,7 @@
30
30
  </div>
31
31
  <div class="spacer"></div>
32
32
  <div id="seo_buttons">
33
- <span id="cancel_seo_btn"><%= link_to I18n.t('seo.cancel'), "#" %> of</span>
33
+ <span id="cancel_seo_btn"><%= link_to I18n.t('seo.cancel'), "#" %> <%= I18n.t('seo.or') %></span>
34
34
 
35
35
  <%= f.submit I18n.t('seo.save')%>
36
36
  </div>
@@ -4,6 +4,7 @@ en:
4
4
  cancel: Cancel
5
5
  save: Save
6
6
  more_options: More options
7
+ or: or
7
8
  form:
8
9
  title: "Title"
9
10
  title_tip: ""
@@ -4,6 +4,7 @@ nl:
4
4
  cancel: Annuleer
5
5
  save: Opslaan
6
6
  more_options: Meer opties
7
+ or: of
7
8
  form:
8
9
  title: "Title tag"
9
10
  title_tip: "De tekst die als titel van de pagina wordt ingesteld. Is te zien boven in je browserscherm."
@@ -1,3 +1,3 @@
1
1
  module SeoFuel
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -83,8 +83,8 @@ module SeoFuel
83
83
  # renders a list of robot restrictions (nofollow, noindex)
84
84
  def robot_restrictions
85
85
  restrictions = []
86
- restrictions << "noindex" if current_page.noindex
87
- restrictions << "nofollow" if current_page.nofollow
86
+ restrictions << "noindex" if current_page && current_page.noindex
87
+ restrictions << "nofollow" if current_page && current_page.nofollow
88
88
  if restrictions.any?
89
89
  return restrictions.join(', ')
90
90
  else
@@ -2,6 +2,7 @@ $(document).ready(function() {
2
2
  $('#edit_seo_btn').bind('click', function() {
3
3
  $('#edit_seo_btn').slideUp();
4
4
  $('#edit_seo_dialog').slideDown();
5
+ $('#seo_tag_title').focus();
5
6
  });
6
7
 
7
8
  $('#cancel_seo_btn, #save_seo_tag').bind('click', function() {
@@ -9,7 +10,8 @@ $(document).ready(function() {
9
10
  });
10
11
 
11
12
  $('#more-options-btn').bind('click', function() {
12
- $('#more-options').toggle();
13
+ $('#more-options').show();
14
+ $('#more-options-btn').hide();
13
15
  });
14
16
 
15
17
  });
@@ -17,4 +19,6 @@ $(document).ready(function() {
17
19
  function hideSeoForm(){
18
20
  $('#edit_seo_dialog').slideUp();
19
21
  $('#edit_seo_btn').slideDown();
22
+ $('#more-options').hide();
23
+ $('#more-options-btn').show();
20
24
  }
@@ -8,18 +8,19 @@
8
8
  position: fixed;
9
9
  top: -5px;
10
10
  left: 50%;
11
- margin-left: -75px;
11
+ margin-left: -78px;
12
12
  min-width: 150px;
13
13
  background: #fff;
14
14
  border: 1px solid #dedede;
15
15
  padding-bottom: 4px;
16
16
  padding-top: 10px;
17
+ padding-left: 3px;
18
+ padding-right: 4px;
17
19
  background-image: linear-gradient(bottom, rgb(166,166,166) 6%, rgb(217,217,217) 56%);
18
20
  background-image: -o-linear-gradient(bottom, rgb(166,166,166) 6%, rgb(217,217,217) 56%);
19
21
  background-image: -moz-linear-gradient(bottom, rgb(166,166,166) 6%, rgb(217,217,217) 56%);
20
22
  background-image: -webkit-linear-gradient(bottom, rgb(166,166,166) 6%, rgb(217,217,217) 56%);
21
23
  background-image: -ms-linear-gradient(bottom, rgb(166,166,166) 6%, rgb(217,217,217) 56%);
22
-
23
24
  background-image: -webkit-gradient(
24
25
  linear,
25
26
  left bottom,
@@ -27,12 +28,10 @@
27
28
  color-stop(0.06, rgb(166,166,166)),
28
29
  color-stop(0.56, rgb(217,217,217))
29
30
  );
31
+
32
+
30
33
  -webkit-border-radius: 3px;
31
- -moz-border-radius: 3px;
32
- /* border-radius: 3px;
33
- -webkit-box-shadow: 0px 0px 2px 2px #dedede;
34
- box-shadow: 0px 0px 2px 2px #dedede;
35
- */
34
+ -moz-border-radius: 3px;
36
35
  border: 1px solid #aaa;
37
36
 
38
37
  font-family: arial;
@@ -43,6 +42,21 @@
43
42
  filter: dropshadow(color=#dedede, offx=1, offy=1);
44
43
  }
45
44
 
45
+ #edit_seo_btn:hover {
46
+ background-image: linear-gradient(bottom, rgb(166,166,166) 6%, rgb(237,237,237) 56%);
47
+ background-image: -o-linear-gradient(bottom, rgb(166,166,166) 6%, rgb(237,23,237) 56%);
48
+ background-image: -moz-linear-gradient(bottom, rgb(166,166,166) 6%, rgb(237,237,237) 56%);
49
+ background-image: -webkit-linear-gradient(bottom, rgb(166,166,166) 6%, rgb(237,237,237) 56%);
50
+ background-image: -ms-linear-gradient(bottom, rgb(166,166,166) 6%, rgb(237,237,237) 56%);
51
+ background-image: -webkit-gradient(
52
+ linear,
53
+ left bottom,
54
+ left top,
55
+ color-stop(0.06, rgb(166,166,166)),
56
+ color-stop(0.56, rgb(237,237,237))
57
+ );
58
+ }
59
+
46
60
  #edit_seo_dialog {
47
61
 
48
62
  width: 800px;
@@ -87,6 +101,7 @@
87
101
  }
88
102
  .seo_form input[type=submit] {
89
103
  width: 150px;
104
+ margin-top: -2px;
90
105
  background: #eee;
91
106
  -webkit-border-radius: 3px;
92
107
  -moz-border-radius: 3px;
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.2
4
+ version: 0.1.3
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: 2012-10-12 00:00:00.000000000 Z
12
+ date: 2012-10-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake