|
10 | 10 | <tr class="<%= deleted_item?(i) ? 'deleted-content' : '' %>"> |
11 | 11 | <% if i.class == Post %> |
12 | 12 | <% type_name = (i.question? ? 'Question' : (i.article? ? 'Article' : 'Answer')) %> |
13 | | - <td> |
14 | | - <span class="h-fw-bold"> |
15 | | - <%= type_name %> |
16 | | - </span> |
17 | | - </td> |
| 13 | + <td class="wrap-word"><span class="h-fw-bold"><%= type_name %></span></td> |
18 | 14 | <td>—</td> |
19 | 15 | <td class="h-fs-caption"> |
20 | 16 | <% working_title = i.answer? ? "A: #{i.parent.title}" : i.title %> |
21 | 17 | <strong><%= working_title %></strong><br> |
22 | 18 | <%= i.body_plain[0..300] + ((i.body_plain.length > 300) ? "..." : "") %><br> |
23 | | - <%= link_to '(more)', generic_share_link(i), 'aria-label': "More information about #{type_name} #{working_title}" %> |
| 19 | + <%= link_to '(more)', |
| 20 | + generic_share_link(i), |
| 21 | + 'aria-label': "More information about #{type_name} #{working_title}" %> |
24 | 22 | </td> |
25 | 23 | <td>—</td> |
26 | 24 | <% elsif i.class == Comment %> |
27 | | - <td> |
28 | | - Comment |
29 | | - </td> |
30 | | - <td> |
31 | | - <%= link_to "Post #" + i.post.id.to_s, generic_share_link(i.post) %> |
32 | | - </td> |
| 25 | + <td class="wrap-word">Comment</td> |
| 26 | + <td><%= link_to "Post #" + i.post.id.to_s, generic_share_link(i.post) %></td> |
33 | 27 | <td class="h-fs-caption"> |
34 | | - <%= i.content[0..300] + ((i.content.length > 300) ? "..." : "") %><br> |
| 28 | + <%= i.content[0..300] + ((i.content.length > 300) ? '...' : '') %><br> |
35 | 29 | <%= link_to '(more)', comment_link(i), 'aria-label': 'More information about comment' %> |
36 | 30 | </td> |
37 | 31 | <td>—</td> |
38 | 32 | <% elsif i.class == PostHistory %> |
39 | | - <td> |
40 | | - Edit |
41 | | - </td> |
42 | | - <td> |
43 | | - <%= link_to "Post #" + i.post.id.to_s, generic_share_link(i.post) %> |
44 | | - </td> |
| 33 | + <td class="wrap-word">Edit</td> |
| 34 | + <td><%= link_to "Post #" + i.post.id.to_s, generic_share_link(i.post) %></td> |
45 | 35 | <td class="h-fs-caption"> |
46 | 36 | <% if i.comment %> |
47 | 37 | <em><%= i.post_history_type.name.gsub("_", " ").capitalize %></em>:<br><%= i.comment %> |
|
51 | 41 | </td> |
52 | 42 | <td>—</td> |
53 | 43 | <% elsif i.class == SuggestedEdit %> |
54 | | - <td> |
55 | | - Suggested Edit |
56 | | - </td> |
57 | | - <td> |
58 | | - <%= link_to "Post #" + i.post.id.to_s, generic_share_link(i.post) %> |
59 | | - </td> |
| 44 | + <td class="wrap-word">Suggested Edit</td> |
| 45 | + <td><%= link_to "Post #" + i.post.id.to_s, generic_share_link(i.post) %></td> |
60 | 46 | <td class="h-fs-caption"> |
61 | 47 | <em>Suggested edit</em>:<br><%= i.comment %><br> |
62 | | - <%= link_to '(more)', suggested_edit_url(i.id), 'aria-label': "More information about suggested edit #{i.comment}" %> |
| 48 | + <%= link_to '(more)', |
| 49 | + suggested_edit_url(i.id), |
| 50 | + 'aria-label': "More information about suggested edit #{i.comment}" %> |
63 | 51 | </td> |
64 | 52 | <td> |
65 | | - <%= (i.pending? ? "pending" : (i.approved? ? "helpful" : "declined")) %> |
| 53 | + <%= (i.pending? ? 'pending' : (i.approved? ? 'helpful' : 'declined')) %> |
66 | 54 | </td> |
67 | 55 | <% elsif mod && i.class == ModWarning %> |
68 | | - <td> |
69 | | - <span class="h-fw-bold h-c-red-700">Warning</span> |
70 | | - </td> |
| 56 | + <td class="wrap-word"><span class="h-fw-bold h-c-red-700">Warning</span></td> |
71 | 57 | <td>—</td> |
72 | 58 | <td class="h-fs-caption"> |
73 | 59 | <%= i.body[0..300] + ((i.body.length > 300) ? "..." : "") %> |
74 | 60 | </td> |
75 | 61 | <td>—</td> |
76 | 62 | <% elsif mod && i.class == Flag %> |
| 63 | + <td class="wrap-word">Flag</td> |
77 | 64 | <td> |
78 | | - Flag |
79 | | - </td> |
80 | | - <td> |
81 | | - <% if i.post_type == 'Post' %> |
| 65 | + <% if i.post_type == 'Post' %> |
82 | 66 | <%= link_to "Post #" + i.post.id.to_s, generic_share_link(i.post)%> |
83 | | - <% elsif i.post_type == 'Comment' %> |
84 | | - <%= link_to "Comment thread: " + i.post.comment_thread.title, comment_link(i.post) %> |
85 | | - <% end %> |
| 67 | + <% elsif i.post_type == 'Comment' %> |
| 68 | + <%= link_to "Comment thread: " + i.post.comment_thread.title, comment_link(i.post) %> |
| 69 | + <% end %> |
86 | 70 | </td> |
87 | 71 | <td class="h-fs-caption"> |
88 | 72 | <%= i.reason[0..300] + ((i.reason.length > 300) ? "..." : "") %><br> |
|
91 | 75 | <%= i.status || "pending" %> |
92 | 76 | </td> |
93 | 77 | <% else %> |
94 | | - <td> |
95 | | - <span class="badge is-tag is-muted">Unknown</span> |
96 | | - </td> |
| 78 | + <td class="wrap-word"><span class="badge is-tag is-muted">Unknown</span></td> |
97 | 79 | <td>—</td> |
98 | 80 | <td><%= i.class %></td> |
99 | 81 | <td>—</td> |
|
0 commit comments