Skip to content

Commit

Permalink
Pending ties partial
Browse files Browse the repository at this point in the history
  • Loading branch information
atd committed Oct 14, 2010
1 parent f2295ae commit 28d85d9
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
33 changes: 33 additions & 0 deletions app/views/ties/_pending.html.erb
@@ -0,0 +1,33 @@
<% if actor.ties.pending.any? %>
<div class="middle_box">
<div class="middle_box_header">
<%= image_tag('notifications.png', :class => "middle_box_picture_icon") %>
<div class="middle_box_text_header"><%= t 'tie.pending.other' %></div>
<div class="title_righ">
<a href="#"><%= t 'tie.pending.see_all' %></a>
</div>
</div>
<% actor.ties.pending.each do |tie| %>
<div class="middle_box_content">
<div class="actor_logo">
<%= link_to(image_tag(tie.sender_subject.logo, :size => "55x40"),
tie.sender_subject.name) %>
</div>
<div class="middle_box_description">
<div class="middle_box_link">
<%= link_to(tie.sender_subject.name, tie.sender_subject) %>
</div>
<div class="middle_box_brief">
18 contacts in common
</div>
<%= link_to t('new', :scope => tie.relation.granted.name),
new_tie_path("tie[sender_id]" => current_user.actor.id,
"tie[receiver_id]" => tie.sender.id,
"tie[relation_name]" => tie.relation.granted.name),
:remote => true %>
</div>
</div>
<% end %>
</div>
<% end -%>

6 changes: 5 additions & 1 deletion config/locales/en.yml
Expand Up @@ -14,6 +14,10 @@ en:
one: "Home"
location:
message: "You are here > %{location}"
tie:
pending:
other: Pending requests
see_all: See all
time:
ago: "%{time} ago"
days: Days
Expand All @@ -22,4 +26,4 @@ en:
socialstream: "SocialStream"
ask:
add_friend: "¿Add %{name} as friend?"
all_rights_reserved: All rights reserved
all_rights_reserved: All rights reserved

0 comments on commit 28d85d9

Please sign in to comment.