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 %>