brighter_planet_layout 0.2.20 → 0.2.21
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.
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.21
|
|
@@ -7,7 +7,14 @@ module BrighterPlanetHelper
|
|
|
7
7
|
nil
|
|
8
8
|
end
|
|
9
9
|
end
|
|
10
|
+
|
|
10
11
|
def syntax(code, lang = 'ruby')
|
|
11
12
|
::Uv.parse(code, 'xhtml', lang, false, :idle).html_safe
|
|
12
13
|
end
|
|
14
|
+
|
|
15
|
+
def link_to_homesite(text, path = '')
|
|
16
|
+
path.insert 0, 'http://brighterplanet.com/' unless ::BrighterPlanetLayout.application_name == 'Brighter Planet'
|
|
17
|
+
path << '/' if path.empty?
|
|
18
|
+
link_to text, path
|
|
19
|
+
end
|
|
13
20
|
end
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
<div id="shortcuts">
|
|
3
3
|
<h3>Shortcuts</h3>
|
|
4
4
|
<ul>
|
|
5
|
-
<li><%=
|
|
5
|
+
<li><%= link_to_homesite 'Home' %></li>
|
|
6
6
|
<li><%= link_to 'Blog', 'http://numbers.brighterplanet.com' %></li>
|
|
7
7
|
<li><%= link_to 'Dev', 'http://brighterplanet.github.com' %></li>
|
|
8
8
|
<li><%= link_to 'Keys', 'http://keys.brighterplanet.com' %></li>
|
|
9
9
|
<li><%= link_to 'Carbon', 'http://carbon.brighterplanet.com' %></li>
|
|
10
10
|
<li><%= link_to 'Data', 'http://data.brighterplanet.com' %></li>
|
|
11
|
-
<li><%=
|
|
12
|
-
<li><%=
|
|
11
|
+
<li><%= link_to_homesite 'Cards', 'cards' %></li>
|
|
12
|
+
<li><%= link_to_homesite 'Footprint', 'sessions/new' %></li>
|
|
13
13
|
</ul>
|
|
14
14
|
</div>
|
|
15
15
|
<div id="map">
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
<h1>Brighter Planet</h1>
|
|
18
18
|
<p class="slogan">Carbon is everywhere</p>
|
|
19
19
|
<p class="description">Enterprise-grade cloud technology for climate intelligence.</p>
|
|
20
|
-
<p class="description"><%=
|
|
20
|
+
<p class="description"><%= link_to_homesite 'About us', 'about' %> · <%= link_to 'Our blog', 'http://numbers.brighterplanet.com' %></p>
|
|
21
21
|
</div>
|
|
22
22
|
<div id="middleware">
|
|
23
23
|
<div class="main">
|
|
24
24
|
<h3>Carbon Middleware</h3>
|
|
25
|
-
<p>Real-time, scalable web services to enhance your business applications. <%=
|
|
25
|
+
<p>Real-time, scalable web services to enhance your business applications. <%= link_to_homesite 'Learn more', 'middleware' %></p>
|
|
26
26
|
</div>
|
|
27
27
|
<ul class="links">
|
|
28
|
-
<li><%=
|
|
29
|
-
<li><%=
|
|
28
|
+
<li><%= link_to_homesite 'Brighter Planet Visa credit and debit cards', 'cards' %> powered by Carbon Middleware technology</li>
|
|
29
|
+
<li><%= link_to_homesite 'Carbon footprint profiles', 'sessions/new' %> powered by Carbon Middleware technology</li>
|
|
30
30
|
</ul>
|
|
31
31
|
</div>
|
|
32
32
|
<div id="status">
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<div id="header">
|
|
2
2
|
<h1><span>Brighter Planet</span></h1>
|
|
3
3
|
<ul>
|
|
4
|
-
<li><%=
|
|
5
|
-
<li><%=
|
|
6
|
-
<li><%=
|
|
4
|
+
<li><%= link_to_homesite 'Home' %></li>
|
|
5
|
+
<li><%= link_to_homesite 'Products', 'products' %></li>
|
|
6
|
+
<li><%= link_to_homesite 'About us', 'about' %></li>
|
|
7
7
|
<li><%= link_to 'Blog', 'http://numbers.brighterplanet.com/' %></li>
|
|
8
8
|
<li><%= link_to 'Developers', 'http://brighterplanet.github.com' %></li>
|
|
9
9
|
</ul>
|