Add My Activity icon mobile
This commit is contained in:
parent
6302181582
commit
c9b58c9ff6
4 changed files with 18 additions and 16 deletions
|
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
|
* Add "My Activity" icon mobile. [#3687](https://github.com/diaspora/diaspora/pull/3687)
|
||||||
* Add password_confirmation field to registration page. [#3647](https://github.com/diaspora/diaspora/pull/3647)
|
* Add password_confirmation field to registration page. [#3647](https://github.com/diaspora/diaspora/pull/3647)
|
||||||
|
|
||||||
## Bug Fixes
|
## Bug Fixes
|
||||||
|
|
|
||||||
BIN
app/assets/images/icons/my_activity.png
Normal file
BIN
app/assets/images/icons/my_activity.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 663 B |
|
|
@ -292,6 +292,8 @@ body {
|
||||||
|
|
||||||
#nav_badges {
|
#nav_badges {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
float: right;
|
||||||
|
padding: 4px 12px;
|
||||||
}
|
}
|
||||||
#nav_badges a:hover {
|
#nav_badges a:hover {
|
||||||
text-decoration: none; }
|
text-decoration: none; }
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
-# Copyright (c) 2010-2011, Diaspora Inc. This file is
|
-# Copyright (c) 2010-2011, Diaspora Inc. This file is
|
||||||
-# licensed under the Affero General Public License version 3 or later. See
|
-# licensed under the Affero General Public License version 3 or later. See
|
||||||
-# the COPYRIGHT file.
|
-# the COPYRIGHT file.
|
||||||
|
|
||||||
!!!
|
!!!
|
||||||
%html{:lang => I18n.locale.to_s, :dir => (rtl?) ? 'rtl' : 'ltr'}
|
%html{:lang => I18n.locale.to_s, :dir => (rtl?) ? 'rtl' : 'ltr'}
|
||||||
|
|
@ -49,29 +49,25 @@
|
||||||
.navbar-inner
|
.navbar-inner
|
||||||
.container{:style => "position: relative;"}
|
.container{:style => "position: relative;"}
|
||||||
= link_to(image_tag('branding/header-logo2x.png', :height => 40, :width => 40, :id => 'header_title'), stream_path)
|
= link_to(image_tag('branding/header-logo2x.png', :height => 40, :width => 40, :id => 'header_title'), stream_path)
|
||||||
|
|
||||||
- if user_signed_in?
|
- if user_signed_in?
|
||||||
#header-nav
|
|
||||||
.activity-nav
|
|
||||||
= link_to(t('streams.activity.title'), activity_stream_path)
|
|
||||||
|
|
||||||
#nav_badges
|
#nav_badges
|
||||||
.badge{:class => "badge-inverse", :id => "notification_badge"}
|
.badge{:class => "badge-inverse", :id => "contacts_badge"}
|
||||||
|
= link_to(image_tag('icons/my_activity.png', :height => 16, :width => 16), activity_stream_path)
|
||||||
|
.badge{:class => "badge-inverse", :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)
|
||||||
- if current_user.unread_notifications.count > 0
|
- if current_user.unread_notifications.count > 0
|
||||||
.badge_count
|
.badge_count
|
||||||
= current_user.unread_notifications.count
|
= current_user.unread_notifications.count
|
||||||
.badge{:class => "badge-inverse", :id => "conversations_badge"}
|
.badge{:class => "badge-inverse", :id => "conversations_badge"}
|
||||||
= link_to(image_tag('icons/mail_grey.png', :height => 11, :width => 17), conversations_path)
|
= link_to(image_tag('icons/mail_grey.png', :height => 11, :width => 17), conversations_path)
|
||||||
- if current_user.unread_message_count > 0
|
- if current_user.unread_message_count > 0
|
||||||
.badge_count
|
.badge_count
|
||||||
= current_user.unread_message_count
|
= current_user.unread_message_count
|
||||||
.badge{:class => "badge-inverse", :id => "people_badge"}
|
.badge{:class => "badge-inverse", :id => "people_badge"}
|
||||||
= link_to(image_tag('icons/search_grey.png', :height => 14, :width => 14), people_path)
|
= link_to(image_tag('icons/search_grey.png', :height => 14, :width => 14), people_path)
|
||||||
.badge{:class => "badge-inverse", :id => "contacts_badge"}
|
.badge{:class => "badge-inverse", :id => "contacts_badge"}
|
||||||
= link_to(image_tag('icons/user_grey.png', :height => 16, :width => 16), contacts_path)
|
= link_to(image_tag('icons/user_grey.png', :height => 16, :width => 16), contacts_path)
|
||||||
|
|
||||||
- if user_signed_in?
|
|
||||||
.right
|
|
||||||
- if yield(:header_action).present?
|
- if yield(:header_action).present?
|
||||||
= yield(:header_action)
|
= yield(:header_action)
|
||||||
- else
|
- else
|
||||||
|
|
@ -79,6 +75,9 @@
|
||||||
|
|
||||||
#main.container{:role => "main"}
|
#main.container{:role => "main"}
|
||||||
.row
|
.row
|
||||||
|
- if current_page?(:activity_stream)
|
||||||
|
%h3
|
||||||
|
= t('streams.activity.title')
|
||||||
= yield
|
= yield
|
||||||
|
|
||||||
- if user_signed_in?
|
- if user_signed_in?
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue