History

Add link to offline page

Thibaut committed 11 years ago

Commit 71f33871 parent 95f81054 files · +4 −4Browse files

Unified · Split

4 files
  1. assets/javascripts/templates/pages/root_tmpl.coffee.erb +1 −0
  2. assets/javascripts/views/layout/nav.coffee +1 −1
  3. assets/stylesheets/components/_mobile.scss +1 −3
  4. views/app.erb +1 −0
assets/javascripts/templates/pages/root_tmpl.coffee.erb+1−0
@@ -71,6 +71,7 @@ app.templates.intro = """ · 70 unmodified lines
7171
7272 app.templates.mobileNav = """
7373 <nav class="_mobile-nav">
74+ <a href="/offline" class="_mobile-nav-link">Offline</a>
7475 <a href="/about" class="_mobile-nav-link">About</a>
7576 <a href="/news" class="_mobile-nav-link">News</a>
7677 <a href="/help" class="_mobile-nav-link">Help</a>
assets/javascripts/views/layout/nav.coffee+1−1
@@ -18,7 +18,7 @@ class app.views.Nav extends app.View · 17 unmodified lines
1818 return
1919
2020 afterRoute: (route, context) =>
21− if route is 'page'
21+ if route in ['page', 'offline']
2222 @select context.pathname
2323 else
2424 @deselect()
assets/stylesheets/components/_mobile.scss+1−3
@@ -172,11 +172,9 @@ · 171 unmodified lines
172172
173173 ._mobile-nav-link {
174174 float: left;
175− width: 33%;
175+ width: 25%;
176176 text-align: center;
177177 font-weight: bold;
178−
179− &:nth-child(2n) { width: 34%; }
180178 }
181179
182180 //
views/app.erb+1−0
@@ -11,6 +11,7 @@ · 10 unmodified lines
1111 <a href="/" class="_nav-link">DevDocs</a>
1212 </h1>
1313 <nav class="_nav">
14+ <a href="/offline" class="_nav-link">Offline</a>
1415 <a href="/about" class="_nav-link">About</a>
1516 <a href="/news" class="_nav-link">News</a>
1617 <a href="/help" class="_nav-link">Tips</a>