fixes #3354
This commit is contained in:
@@ -6,20 +6,27 @@ div.list-of-forum-posts {
|
|||||||
}
|
}
|
||||||
|
|
||||||
article {
|
article {
|
||||||
margin-bottom: 3em;
|
border: 1px solid #999;
|
||||||
|
margin: 1em 0em;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
|
box-shadow: 1px 1px 2px #AAA;
|
||||||
|
|
||||||
&:target {
|
&:target {
|
||||||
background-color: #FFC;
|
background-color: #FFC;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.author {
|
div.author {
|
||||||
|
padding: 1em 1em 0 1em;
|
||||||
width: 12em;
|
width: 12em;
|
||||||
float: left;
|
float: left;
|
||||||
margin-right: 2em;
|
|
||||||
|
time {
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
div.content {
|
div.content {
|
||||||
|
padding: 1em;
|
||||||
margin-left: 14em;
|
margin-left: 14em;
|
||||||
|
|
||||||
menu {
|
menu {
|
||||||
|
|||||||
@@ -3,3 +3,13 @@
|
|||||||
<%= render "forum_posts/forum_post", :forum_post => forum_post %>
|
<%= render "forum_posts/forum_post", :forum_post => forum_post %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</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>
|
<tr>
|
||||||
<th>Title</th>
|
<th>Title</th>
|
||||||
<th>Creator</th>
|
<th>Creator</th>
|
||||||
<th>Updated by</th>
|
<th class="updater">Updated by</th>
|
||||||
<th>Updated at</th>
|
<th class="updated-at">Updated at</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -35,10 +35,19 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</td>
|
</td>
|
||||||
<td><%= link_to_user topic.creator %></td>
|
<td><%= link_to_user topic.creator %></td>
|
||||||
<td><%= link_to_user topic.updater %></td>
|
<td class="updater"><%= link_to_user topic.updater %></td>
|
||||||
<td><%= compact_time topic.updated_at %></td>
|
<td class="updated-at"><%= compact_time topic.updated_at %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</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