From 9b044f8d132e49c4e6e6b331a6a2c66b3b1ab7cd Mon Sep 17 00:00:00 2001 From: huangjingquan Date: Thu, 21 Nov 2013 09:38:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E8=AE=A8=E8=AE=BA?= =?UTF-8?q?=E5=8C=BA=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/boards/show.html.erb | 43 ++++++++++++++++++------ app/views/layouts/base_projects.html.erb | 3 +- public/stylesheets/application.css | 29 ++++++++++++++++ 3 files changed, 63 insertions(+), 12 deletions(-) diff --git a/app/views/boards/show.html.erb b/app/views/boards/show.html.erb index e0ee2aab7..3fd5065d0 100644 --- a/app/views/boards/show.html.erb +++ b/app/views/boards/show.html.erb @@ -1,11 +1,12 @@ <%= board_breadcrumb(@board) %> -
+ +
<%= 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) %> +
-

<%=h @board.name %>

-

<%=h @board.description %>

+ +
<%=h @board.name %>
+
<%=h @board.description %>
+
共有 <%=link_to @topics.count %> 个贴子
<% if @topics.any? %> - + <% @topics.each do |topic| %> - +
+ + + +
<%= link_to image_tag(url_to_avatar(topic.author), :class => "avatar"), user_path(topic.author) %> + + + + + + + + + <% if topic.last_reply %> + + +
<%= link_to h(topic.subject), board_message_path(@board, topic) %> + +
<%=link_to (topic.replies_count), board_message_path(@board, topic) %>
回答
标签
<%= authoring topic.last_reply.created_on, topic.last_reply.author %>
<% end %>
+ + <% end %> - - + <% else %>

<%= l(:label_no_data) %>

diff --git a/app/views/layouts/base_projects.html.erb b/app/views/layouts/base_projects.html.erb index 333702f25..80aa0f787 100644 --- a/app/views/layouts/base_projects.html.erb +++ b/app/views/layouts/base_projects.html.erb @@ -48,8 +48,7 @@ - - +