mobile: added stream and activity links to header

This commit is contained in:
Diaspora Europe 2012-03-15 18:10:29 +01:00
parent 39ee27acf0
commit cd62c33f17
2 changed files with 31 additions and 1 deletions

View file

@ -51,6 +51,12 @@
.container{:style => "position: relative;"} .container{:style => "position: relative;"}
= link_to(image_tag('header-logo2x.png', :height => 40, :width => 40, :id => 'header_title'), stream_path) = link_to(image_tag('header-logo2x.png', :height => 40, :width => 40, :id => 'header_title'), stream_path)
- if user_signed_in? - if user_signed_in?
#header-nav
.stream-nav
= link_to(t('.my_stream'), stream_path)
.activity-nav
= link_to(t('.my_activity'), activity_stream_path)
#nav_badges #nav_badges
.badge{:id => "notification_badge"} .badge{:id => "notification_badge"}
= link_to(image_tag('icons/notifications_grey.png', :height => 16, :width => 16, :id => 'notification-flag'), notifications_path) = link_to(image_tag('icons/notifications_grey.png', :height => 16, :width => 16, :id => 'notification-flag'), notifications_path)

View file

@ -283,7 +283,7 @@ body {
text-decoration: none; } text-decoration: none; }
#nav_badges .badge { #nav_badges .badge {
position: relative; position: relative;
top: -15px; top: -12px;
display: inline; display: inline;
margin: 0 2px; margin: 0 2px;
padding: 8px 3px; padding: 8px 3px;
@ -615,3 +615,27 @@ select {
margin-bottom: 5px; margin-bottom: 5px;
} }
#header-nav {
font-weight: bold;
height: 100%;
margin-right: 5px;
margin-top: 3px;
display: inline-block;
}
#header-nav a {
padding: 0 10px;
width: 100%;
color: #939393;
}
#header-nav > div {
display: inline;
font-weight: bold;
margin: 0 2px;
padding: 8px 3px 9px;
position: relative;
top: -15px;
width: 28px;
}