summaryrefslogtreecommitdiff
path: root/app/views/pms/index.html.erb
blob: b5169f59120e2b0b9ade7a3b8e81aba4848a66e5 (plain)
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
35
<h1>Listing pms</h1>

<table>
  <thead>
    <tr>
      <th>Author</th>
      <th>Recipient</th>
      <th>Message</th>
      <th>Subject</th>
      <th>Conversation</th>
      <th></th>
      <th></th>
      <th></th>
    </tr>
  </thead>

  <tbody>
    <% @pms.each do |pm| %>
      <tr>
        <td><%= pm.author %></td>
        <td><%= pm.recipient %></td>
        <td><%= pm.message %></td>
        <td><%= pm.subject %></td>
        <td><%= pm.conversation %></td>
        <td><%= link_to 'Show', pm %></td>
        <td><%= link_to 'Edit', edit_pm_path(pm) %></td>
        <td><%= link_to 'Destroy', pm, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Pm', new_pm_path %>