修改了讨论区显示
This commit is contained in:
parent
0381179536
commit
9b044f8d13
|
@ -1,11 +1,12 @@
|
|||
<%= board_breadcrumb(@board) %>
|
||||
|
||||
<div class="contextual">
|
||||
<!--new and follow-->
|
||||
<div class="content-title-top">
|
||||
<%= link_to l(:label_message_new),
|
||||
new_board_message_path(@board),
|
||||
:class => 'icon icon-add',
|
||||
:onclick => 'showAndScrollTo("add-message", "message_subject"); return false;' if User.current.logged? %>
|
||||
<%= watcher_link(@board, User.current) %>
|
||||
<!-- <%= watcher_link(@board, User.current) %> -->
|
||||
</div>
|
||||
|
||||
<div id="add-message" style="display:none;">
|
||||
|
@ -21,11 +22,13 @@
|
|||
<% end %>
|
||||
</div>
|
||||
|
||||
<h3><%=h @board.name %></h3>
|
||||
<p class="subtitle"><%=h @board.description %></p>
|
||||
<!--display the board-->
|
||||
<div class="borad-title"><%=h @board.name %></div>
|
||||
<div class="borad-description"><%=h @board.description %></div>
|
||||
<div class="borad-topic-count">共有 <%=link_to @topics.count %> 个贴子</div>
|
||||
|
||||
<% if @topics.any? %>
|
||||
<table class="list messages">
|
||||
<!-- <table class="list messages">
|
||||
<thead><tr>
|
||||
<th><%= l(:field_subject) %></th>
|
||||
<th><%= l(:field_author) %></th>
|
||||
|
@ -33,9 +36,29 @@
|
|||
<%= sort_header_tag('replies', :caption => l(:label_reply_plural)) %>
|
||||
<%= sort_header_tag('updated_on', :caption => l(:label_message_last)) %>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tbody> -->
|
||||
<% @topics.each do |topic| %>
|
||||
<tr class="message <%= cycle 'odd', 'even' %> <%= topic.sticky? ? 'sticky' : '' %> <%= topic.locked? ? 'locked' : '' %>">
|
||||
<table class="content-text-list">
|
||||
<td colspan="2" valign="top" width="50" ><%= link_to image_tag(url_to_avatar(topic.author), :class => "avatar"), user_path(topic.author) %></td>
|
||||
<td>
|
||||
<table width="580px" border="0">
|
||||
<tr>
|
||||
<td valign="top" width="500px"><%= link_to h(topic.subject), board_message_path(@board, topic) %></td>
|
||||
<td align="right" rowspan="3"><table class="borad-count"><tr><td align="center" class="borad-count-digit"><%=link_to (topic.replies_count), board_message_path(@board, topic) %></td></tr>
|
||||
<tr><td align="center">回答</td></tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" ><span class="font_description">标签</span></td>
|
||||
</tr>
|
||||
<tr><% if topic.last_reply %>
|
||||
<td align="left" colspan="2" ><span class="font_lighter"><%= authoring topic.last_reply.created_on, topic.last_reply.author %><br /><% end %></span></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!-- <tr class="message <%= cycle 'odd', 'even' %> <%= topic.sticky? ? 'sticky' : '' %> <%= topic.locked? ? 'locked' : '' %>">
|
||||
<td class="subject"><%= link_to h(topic.subject), board_message_path(@board, topic) %></td>
|
||||
<td class="author"><%= link_to_user(topic.author) %></td>
|
||||
<td class="created_on"><%= format_time(topic.created_on) %></td>
|
||||
|
@ -46,10 +69,10 @@
|
|||
<%= link_to_message topic.last_reply %>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
</tr> -->
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- </tbody>
|
||||
</table> -->
|
||||
<div class="pagination"><%= pagination_links_full @topic_pages, @topic_count %></div>
|
||||
<% else %>
|
||||
<p class="nodata"><%= l(:label_no_data) %></p>
|
||||
|
|
|
@ -49,7 +49,6 @@
|
|||
|
||||
|
||||
<!-- end -->
|
||||
|
||||
<!--project page-->
|
||||
<div id="sidebar">
|
||||
<div class="spaceleft">
|
||||
|
|
|
@ -11,6 +11,35 @@ h4 {border-bottom: 1px dotted #bbb;}
|
|||
|
||||
/*new by huang*/
|
||||
/**/
|
||||
.borad-count{
|
||||
width: 50px;
|
||||
background-color: #e5e2e2;
|
||||
}
|
||||
|
||||
.borad-title{
|
||||
font-size: 16px;
|
||||
color: #ed8924;
|
||||
padding-left: 5px;
|
||||
padding-top: -5px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.borad-topic-count{
|
||||
padding-top: 10px;
|
||||
padding-left: 5px;
|
||||
border-bottom:solid 1px #848282;
|
||||
}
|
||||
|
||||
.borad-description{
|
||||
padding-top: 5px;
|
||||
color: #848282;
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
.borad-count-digit{
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.underline-evreycontent{
|
||||
margin-bottom: 10px;
|
||||
border-bottom: 1px dashed rgb(204, 204, 204);
|
||||
|
|
Loading…
Reference in New Issue