add mobile navigation for lists and timelines

This commit is contained in:
Andreas N 2015-01-30 22:46:44 +01:00
parent caa6a06ab0
commit 99c7aa8f86
5 changed files with 18 additions and 1 deletions

View File

@ -1,3 +1,4 @@
= render 'static/mobile-nav'
.container.j2-page
.col-md-3.col-sm-3
= render 'shared/sidebar'

View File

@ -1,3 +1,4 @@
= render 'static/mobile-nav'
.container.j2-page
.col-md-3.col-sm-3
= render 'shared/sidebar'

View File

@ -32,7 +32,7 @@
.col-md-6.col-sm-6.col-xs-6
%h4.entry-text#answered-count= current_user.smiled_count
%h6.entry-subtext Smiles
.panel.panel-default
.panel.panel-default.hidden-xs
.panel-body
%ul.nav.nav-pills.nav-stacked
= nav_entry "Timeline", root_path

View File

@ -0,0 +1,14 @@
%nav.navbar.navbar-default.navbar-fixed-top.visible-xs{role: "navigation"}
.container
.navbar-header
%button.navbar-toggle{"data-target" => "#j2-tl-navbar-collapse", "data-toggle" => "collapse", type: "button"}
%span.sr-only Toggle navigation
%span.icon-bar
%span.icon-bar
%span.icon-bar
%a.navbar-brand{href: "/"} Timelines & Lists
#j2-tl-navbar-collapse.collapse.navbar-collapse
%ul.nav.navbar-nav
= nav_entry "Public", public_timeline_path
- current_user.groups.each do |group|
= nav_entry group.display_name, group_timeline_path(group.name)

View File

@ -1,4 +1,5 @@
- if user_signed_in?
= render 'static/mobile-nav'
.container.j2-page
.col-md-3.col-sm-3
= render 'shared/sidebar'