Showing the changes to assets/javascripts (2 of 4 files). Show all
Unified · Split
| @@ -71,6 +71,7 @@ app.templates.intro = """ · 70 unmodified lines | |||
| 71 | 71 | ||
| 72 | app.templates.mobileNav = """ | 72 | app.templates.mobileNav = """ |
| 73 | <nav class="_mobile-nav"> | 73 | <nav class="_mobile-nav"> |
| 74 | <a href="/offline" class="_mobile-nav-link">Offline</a> | ||
| 74 | <a href="/about" class="_mobile-nav-link">About</a> | 75 | <a href="/about" class="_mobile-nav-link">About</a> |
| 75 | <a href="/news" class="_mobile-nav-link">News</a> | 76 | <a href="/news" class="_mobile-nav-link">News</a> |
| 76 | <a href="/help" class="_mobile-nav-link">Help</a> | 77 | <a href="/help" class="_mobile-nav-link">Help</a> |
| @@ -18,7 +18,7 @@ class app.views.Nav extends app.View · 17 unmodified lines | |||
| 18 | return | 18 | return |
| 19 | 19 | ||
| 20 | afterRoute: (route, context) => | 20 | afterRoute: (route, context) => |
| 21 | if route is 'page' | 21 | if route in ['page', 'offline'] |
| 22 | @select context.pathname | 22 | @select context.pathname |
| 23 | else | 23 | else |
| 24 | @deselect() | 24 | @deselect() |