forked from opencongress/opencongress
-
Notifications
You must be signed in to change notification settings - Fork 1
/
letters.html.haml
34 lines (32 loc) · 892 Bytes
/
letters.html.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.padding
%h2 Contact Congress Letters
%table
%tr
%th Date
%th User
%th Privacy
%th District
%th To/Responses
%th Bill/Position
%th # comments
%th # page views
- @letters.each do |l|
%tr
%td= link_to l.created_at.strftime("%b %d, %Y"), contact_congress_letter_path(l)
%td= l.user.nil? ? 'No User' : link_to(l.user.login, user_profile_path(l.user.login))
%td= l.privacy
%td= l.user.nil? ? "?" : l.user.my_district
%td
- l.formageddon_threads.each do |t|
= t.formageddon_recipient.name
(
= (t.formageddon_letters.size - 1)
)
%br
%td
= link_to l.bill.typenumber, bill_path(l.bill)
\:
= l.disposition
%td= l.comments.size
%td= l.views
= will_paginate @letters