Skip to content

Commit 20a3a6d

Browse files
committed
Show e-mail in membership requests page; ref #201
1 parent d1459a3 commit 20a3a6d

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

app/views/group/membership_requests/index.html.haml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
%table
99
%thead
1010
%th= t ".user"
11+
%th= t ".email"
1112
%th= t ".requested_at"
1213
%th= t ".status"
1314
%th= t ".actioned_by"
@@ -16,6 +17,7 @@
1617
- @requests.each do |r|
1718
%tr
1819
%td= link_to_profile(r.user)
20+
%td= r.user.email
1921
%td= t ".created_at", time_ago: time_ago_in_words(r.created_at)
2022
%td= r.status
2123
%td= link_to t(".by", name: r.actioned_by.name), user_path(r.actioned_by) if r.rejected? || r.confirmed?

config/locales/en-GB.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,12 @@
191191
by: "by %{name}"
192192
confirm: "Confirm"
193193
created_at: "%{time_ago} ago"
194+
email: "E-mail address"
194195
no_requests_yet: "There have been no membership requests for this group yet."
195196
reject: "Reject"
196197
requested_at: "Requested At"
197198
status: "Status"
198-
title: "Membership Requests for %{group}"
199+
title: "Membership requests for %{group}"
199200
user: "User"
200201
new:
201202
title: "Request membership of %{group_name}"

0 commit comments

Comments
 (0)