fixes #3354
This commit is contained in:
@@ -6,20 +6,27 @@ div.list-of-forum-posts {
|
||||
}
|
||||
|
||||
article {
|
||||
margin-bottom: 3em;
|
||||
border: 1px solid #999;
|
||||
margin: 1em 0em;
|
||||
word-wrap: break-word;
|
||||
box-shadow: 1px 1px 2px #AAA;
|
||||
|
||||
&:target {
|
||||
background-color: #FFC;
|
||||
}
|
||||
|
||||
div.author {
|
||||
padding: 1em 1em 0 1em;
|
||||
width: 12em;
|
||||
float: left;
|
||||
margin-right: 2em;
|
||||
|
||||
time {
|
||||
font-style: italic;
|
||||
}
|
||||
}
|
||||
|
||||
div.content {
|
||||
padding: 1em;
|
||||
margin-left: 14em;
|
||||
|
||||
menu {
|
||||
|
||||
@@ -3,3 +3,13 @@
|
||||
<%= render "forum_posts/forum_post", :forum_post => forum_post %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<% content_for(:html_header) do %>
|
||||
<style>
|
||||
@media screen and (max-width: 660px) {
|
||||
#a-show { padding: 1em 0.5em; }
|
||||
div.list-of-forum-posts article div.author { width: auto; float: none; border-bottom: 1px solid #999; background: #F0F0F0; }
|
||||
div.list-of-forum-posts article div.content { width: auto; float: none; margin-left: 0; }
|
||||
}
|
||||
</style>
|
||||
<% end %>
|
||||
@@ -3,8 +3,8 @@
|
||||
<tr>
|
||||
<th>Title</th>
|
||||
<th>Creator</th>
|
||||
<th>Updated by</th>
|
||||
<th>Updated at</th>
|
||||
<th class="updater">Updated by</th>
|
||||
<th class="updated-at">Updated at</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -35,10 +35,19 @@
|
||||
<% end %>
|
||||
</td>
|
||||
<td><%= link_to_user topic.creator %></td>
|
||||
<td><%= link_to_user topic.updater %></td>
|
||||
<td><%= compact_time topic.updated_at %></td>
|
||||
<td class="updater"><%= link_to_user topic.updater %></td>
|
||||
<td class="updated-at"><%= compact_time topic.updated_at %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
<% content_for(:html_header) do %>
|
||||
<style>
|
||||
@media screen and (max-width: 660px) {
|
||||
.updater { display: none; }
|
||||
.updated-at { display: none; }
|
||||
}
|
||||
</style>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user