diff --git a/app/views/ties/_pending.html.erb b/app/views/ties/_pending.html.erb new file mode 100644 index 00000000..c5190615 --- /dev/null +++ b/app/views/ties/_pending.html.erb @@ -0,0 +1,33 @@ +<% if actor.ties.pending.any? %> +
+
+ <%= image_tag('notifications.png', :class => "middle_box_picture_icon") %> +
<%= t 'tie.pending.other' %>
+ +
+ <% actor.ties.pending.each do |tie| %> +
+ +
+ +
+ 18 contacts in common +
+ <%= 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 %> +
+
+ <% end %> +
+<% end -%> + diff --git a/config/locales/en.yml b/config/locales/en.yml index 3aa63422..23a725fe 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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 @@ -22,4 +26,4 @@ en: socialstream: "SocialStream" ask: add_friend: "¿Add %{name} as friend?" - all_rights_reserved: All rights reserved \ No newline at end of file + all_rights_reserved: All rights reserved