new notification/request text on aspects/index
This commit is contained in:
parent
71ca93720b
commit
2e472ded94
5 changed files with 30 additions and 28 deletions
|
|
@ -32,4 +32,10 @@ module NotificationsHelper
|
|||
t('no_new_notifications')
|
||||
end
|
||||
end
|
||||
|
||||
def new_notification_link(count)
|
||||
if count > 0
|
||||
link_to new_notification_text(count), notifications_path
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
%li.aspect{:data=>{:guid=>aspect.id}}
|
||||
%li{:data=>{:guid=>aspect.id}}
|
||||
.right
|
||||
= link_to t('contacts', :count => contact_count), edit_aspect_path(aspect), :rel => 'facebox'
|
||||
%b{:class => ("dull" if contacts.length == 0)}
|
||||
|
|
|
|||
|
|
@ -24,16 +24,22 @@
|
|||
= link_to current_user.diaspora_handle, person_path(current_user.person)
|
||||
/= info_text(t('.handle_explanation'))
|
||||
|
||||
- if @request_count > 0
|
||||
#new_request_pane{:class => "everyone"}
|
||||
%h1.new_request{:style => 'text-align:center'}
|
||||
= new_request_link(@request_count)
|
||||
- if @notification_count > 0 || @request_count > 0
|
||||
- if @request_count > 0
|
||||
#new_requests
|
||||
%h4
|
||||
= new_request_link(@request_count)
|
||||
|
||||
#left_pane
|
||||
#aspect_listings.section
|
||||
= render 'aspects/aspect_listings', :aspect_hashes => @aspect_hashes
|
||||
- if @notification_count > 0
|
||||
#new_notifications
|
||||
%h4
|
||||
= new_notification_link(@notification_count)
|
||||
%hr
|
||||
|
||||
.section
|
||||
%h4= t('shared.invitations.invites')
|
||||
= render "shared/invitations", :invites => @invites
|
||||
#aspect_listings.section
|
||||
= render 'aspects/aspect_listings', :aspect_hashes => @aspect_hashes
|
||||
|
||||
.section
|
||||
%h4= t('shared.invitations.invites')
|
||||
= render "shared/invitations", :invites => @invites
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
|
||||
- content_for :head do
|
||||
= include_javascripts :home
|
||||
= include_javascripts :aspects
|
||||
|
||||
- content_for :page_title do
|
||||
= @aspect.name.html_safe
|
||||
|
|
|
|||
|
|
@ -1232,27 +1232,17 @@ ul#settings_nav
|
|||
:margin 0
|
||||
:padding 0
|
||||
|
||||
#left_pane
|
||||
#aspect_listings
|
||||
a
|
||||
:font
|
||||
:weight bold
|
||||
|
||||
.section
|
||||
:margin
|
||||
:bottom 24px
|
||||
|
||||
ul
|
||||
:padding 0
|
||||
:margin 0
|
||||
> li
|
||||
:position relative
|
||||
#aspect_listings
|
||||
|
||||
.dull
|
||||
:color #aaa
|
||||
:font
|
||||
:style italic
|
||||
|
||||
.section
|
||||
:margin
|
||||
:bottom 24px
|
||||
|
||||
#aspect_listings
|
||||
.contacts
|
||||
:margin
|
||||
|
|
@ -1262,6 +1252,7 @@ ul#settings_nav
|
|||
:padding 0
|
||||
:margin 0
|
||||
> li
|
||||
:position relative
|
||||
:padding 8px 0
|
||||
:border
|
||||
:bottom 1px solid #ddd
|
||||
|
|
@ -1369,7 +1360,6 @@ input[type="search"]
|
|||
ul.aspects
|
||||
:margin 0
|
||||
:padding 0
|
||||
:color #999
|
||||
:font
|
||||
:size 24px
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue