From c148a8a14558538bb405f25fe94e72e44ad2f9a9 Mon Sep 17 00:00:00 2001
From: huang
<% has_branches = (!@repository.branches.nil? && @repository.branches.length > 0) From bd77ad9ac14e8643ecfa6cd82d86fd5d5df15700 Mon Sep 17 00:00:00 2001 From: alan <547533434@qq.com> Date: Wed, 13 May 2015 17:25:31 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E5=B1=95=E5=BC=80=E3=80=82=E6=94=B6?= =?UTF-8?q?=E8=B5=B7=20Signed-off-by:=20alan=20<547533434@qq.com>?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/boards/_course_show.html.erb | 21 +++++++++++++-------- app/views/boards/_project_show.html.erb | 21 ++++++++++++++------- app/views/boards/show.html.erb | 9 ++++++++- public/stylesheets/leftside.css | 1 + 4 files changed, 36 insertions(+), 16 deletions(-) diff --git a/app/views/boards/_course_show.html.erb b/app/views/boards/_course_show.html.erb index ce3dd2091..5dde6c460 100644 --- a/app/views/boards/_course_show.html.erb +++ b/app/views/boards/_course_show.html.erb @@ -58,18 +58,23 @@
-- <%= topic.content %> -
- <% if topic.content.size > 300 %> -- + +
讨论区共有<%= @topic_count %>个帖子
<% if @topics.any? %> <% @topics.each do |topic| %> +- <%= topic.content %> -
- <% if topic.content.size > 300 %> -- + +
- <% end %> + <%= link_to_attachments_course topic, :author => false %> <%= l(:label_activity_time)%>: <%= format_time topic.created_on %> @@ -177,6 +183,7 @@ <% end %> <% end %><%= l(:label_no_data) %>
diff --git a/app/views/boards/show.html.erb b/app/views/boards/show.html.erb index 9faf07b9a..2e736bdf7 100644 --- a/app/views/boards/show.html.erb +++ b/app/views/boards/show.html.erb @@ -24,7 +24,14 @@