Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reduced shown peding request to a random pair

  • Loading branch information...
commit 328c35960718ef7d4302ccc423105214697c6e64 1 parent 5e4b057
@Roendal Roendal authored
View
6 app/assets/stylesheets/base.css
@@ -206,4 +206,8 @@ textarea.new_contact_text_area{ width:100%; height: 100px; color: #2A3890;}
.activities_title_header.selected{
border: 2px solid #46B9E8;
-}
+}
+
+.more_pending{
+ text-align: center;
+}
View
11 app/views/contacts/_pendings.html.erb
@@ -2,10 +2,17 @@
<div class="block">
<div class="header">
<%= image_tag('btn/btn_notifications.png', :class => "header_icon") %>
- <div class="header_text"><%= t 'contact.pending.other' %></div>
+ <div class="header_text">
+ <%= t 'contact.pending.other' %>
+ </div>
</div>
<div class="content">
- <%= render current_subject.pending_contacts %>
+ <%= render current_subject.pending_contacts.shuffle.first(2) %>
+ <div class="row more_pending">
+ <%= link_to t('contact.pending.all_n', :count => current_subject.pending_contacts.size), contacts_path(:pending=>true)%>
+ </div>
+ <div class="space_center">
+ </div>
</div>
</div>
<% end -%>
View
1  config/locales/en.yml
@@ -87,6 +87,7 @@ en:
pending:
other: "Pending requests"
all: "All"
+ all_n: "See all pending requests (%{count})"
relation:
one: "Contact type"
new: "New type"
Please sign in to comment.
Something went wrong with that request. Please try again.