From 586c3709db9293fc1327e3eac3acdf2e9b87bb07 Mon Sep 17 00:00:00 2001 From: yutao <283765470@qq.com> Date: Thu, 28 May 2015 09:18:02 +0800 Subject: [PATCH] ... --- app/views/boards/_course_show.html.erb | 10 +++++++--- app/views/boards/_project_show.html.erb | 11 ++++++++--- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/app/views/boards/_course_show.html.erb b/app/views/boards/_course_show.html.erb index 1f8cd9b77..889e82350 100644 --- a/app/views/boards/_course_show.html.erb +++ b/app/views/boards/_course_show.html.erb @@ -38,10 +38,14 @@
:
-<%= h(topic.subject) %>
+ <% if topic.course_editable_by?(User.current) %> <%= l(:button_edit) %> diff --git a/app/views/boards/_project_show.html.erb b/app/views/boards/_project_show.html.erb index a02bbff34..48b3d6ccf 100644 --- a/app/views/boards/_project_show.html.erb +++ b/app/views/boards/_project_show.html.erb @@ -34,9 +34,14 @@<%= h(topic.subject) %>
+ <% author = topic.author.to_s %> + +:
+ +