playsure_helper 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/playsure_helper/page_helper.rb +15 -11
- data/lib/playsure_helper/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: 0ac8abaa5a3ddc82df064050471828e2edd300b8
|
4
|
+
data.tar.gz: b4ea49f9ef80ebbd2307ed2d81fa8e3ab2fac885
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e10716fccd298c157dc87a4b9da08714f474b2f38a6070e976a5f2eda9c94f522a10b9d90ba2de663dcea6b3a766d8e52440ce52d7d01ecdb124c0ecf5eb84cd
|
7
|
+
data.tar.gz: 7b2c97f7ad766b785183d84378fe5cc64f31e19c63659d1774a5f48fa65eb0cd8dc1151ca34f4533df81efc4ba838d71fd1a588e31e906f70d6d6a09a589e3e1
|
@@ -1,18 +1,22 @@
|
|
1
|
+
require 'seo_helper'
|
2
|
+
|
1
3
|
module PlaysureHelper
|
2
4
|
module Helper
|
3
|
-
|
5
|
+
module PageHelper
|
6
|
+
include SeoHelper
|
4
7
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
+
def render_body_tag
|
9
|
+
class_attribute = ["#{controller_name}-controller","#{action_name}-action"].join(" ")
|
10
|
+
id_attribute = (@body_id)? " id=\"#{@body_id}-page\"" : ""
|
8
11
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
12
|
+
raw(%Q|<!--[if lt IE 7 ]>r
|
13
|
+
<body class="#{class_attribute} ie6"><![endif]-->
|
14
|
+
<!--[if gte IE 7 ]>
|
15
|
+
<body class="#{class_attribute} ie"><![endif]-->
|
16
|
+
<!--[if !IE]>-->
|
17
|
+
<body#{id_attribute} class="#{class_attribute}">
|
18
|
+
<!--<![endif]-->|)
|
19
|
+
end
|
16
20
|
end
|
17
21
|
end
|
18
22
|
end
|