From c025e409053924005694feec419adcd63c8dd686 Mon Sep 17 00:00:00 2001 From: huang Date: Fri, 9 Sep 2016 09:51:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=AD=A3=E5=BC=8F=E7=89=88?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=91=98=E7=95=8C=E9=9D=A2=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E8=B7=9F=E8=B8=AA=E6=A0=87=E7=AD=BE500=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/application_helper.rb | 2 +- app/views/projects/_tools_expand.html.erb | 2 +- app/views/projects/_tracker_project.html.erb | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 app/views/projects/_tracker_project.html.erb diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index b08b777df..de86df4bf 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -652,7 +652,7 @@ module ApplicationHelper s << watcher_link(@project, User.current)#, ['whiteButton']) s << "" end - s << (render :partial => 'projects/project', :locals => {:project => project}).to_s + s << (render :partial => 'projects/tracker_project', :locals => {:project => project}).to_s else s << (render :partial => 'projects/course', :locals => {:project => project}).to_s end diff --git a/app/views/projects/_tools_expand.html.erb b/app/views/projects/_tools_expand.html.erb index 50f633264..72f095609 100644 --- a/app/views/projects/_tools_expand.html.erb +++ b/app/views/projects/_tools_expand.html.erb @@ -1,6 +1,6 @@
  • <% if allow_pull_request(@project) > 0 && allow_show_pull_request(@project) == 0 %> - <%= link_to "Pull Requests", project_pull_requests_path(@project) %> + <%= link_to "Pull Requests", project_pull_requests_path(@project) %> <% end %>
  • diff --git a/app/views/projects/_tracker_project.html.erb b/app/views/projects/_tracker_project.html.erb new file mode 100644 index 000000000..925b3cbf6 --- /dev/null +++ b/app/views/projects/_tracker_project.html.erb @@ -0,0 +1,6 @@ +
    +
    +

    <%= textilizable(project.short_description.strip, :project => project) %>

    +
    +
    +