From f31fe81c5d68ab831f464422fd329c46a8ceef94 Mon Sep 17 00:00:00 2001 From: guange <8863824@gmail.com> Date: Wed, 13 May 2015 15:33:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E8=AF=BE=E7=A8=8B=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E9=99=84=E4=BB=B6=E6=8F=90=E5=88=B0=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=92=8C=E5=8A=A8=E6=80=81=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/users_controller.rb | 1 + app/views/news/_course_news.html.erb | 1 + app/views/users/show.html.erb | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 2a10af260..ccf382006 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -15,6 +15,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. class UsersController < ApplicationController + helper :attachments layout :setting_layout #Added by young diff --git a/app/views/news/_course_news.html.erb b/app/views/news/_course_news.html.erb index a7b9693b2..947b95076 100644 --- a/app/views/news/_course_news.html.erb +++ b/app/views/news/_course_news.html.erb @@ -44,6 +44,7 @@ <%= l(:label_create_time)%>:<%= format_time(news.created_on)%> + <%= link_to_attachments_course news %>
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index ae1be35e3..484a79ea2 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -432,6 +432,7 @@

<%= textAreailizable act, :description %> + <%= link_to_attachments_course e.act %>

@@ -683,4 +684,4 @@ }); }); -<% html_title(l(:label_activity)) -%> \ No newline at end of file +<% html_title(l(:label_activity)) -%>