From ee40481f1b583fee44de3256942e83bf95370a5f Mon Sep 17 00:00:00 2001 From: manson Date: Fri, 4 Jul 2014 12:06:42 +0800 Subject: [PATCH] Add url to frontend --- app/controllers/personal_conferences_controller.rb | 2 +- .../admin/writing_conferences/_writing_conference.html.erb | 2 +- app/views/plugin/personal_conference/_profile.html.erb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/personal_conferences_controller.rb b/app/controllers/personal_conferences_controller.rb index 6a57e3d..7471ceb 100644 --- a/app/controllers/personal_conferences_controller.rb +++ b/app/controllers/personal_conferences_controller.rb @@ -4,7 +4,7 @@ class PersonalConferencesController < ApplicationController writing_conference_list = writing_conferences.collect do |writing_conference| { "year" => writing_conference.year, - "paper_title" => writing_conference.paper_title, + "paper_title" => writing_conference.create_link, "author" => writing_conference.member_profile.name, "link_to_show" => OrbitHelper.url_to_show(writing_conference.to_param) } diff --git a/app/views/admin/writing_conferences/_writing_conference.html.erb b/app/views/admin/writing_conferences/_writing_conference.html.erb index 86f610a..dc0ec21 100644 --- a/app/views/admin/writing_conferences/_writing_conference.html.erb +++ b/app/views/admin/writing_conferences/_writing_conference.html.erb @@ -2,7 +2,7 @@ "> <%= writing_conference.year %> - <%= link_to writing_conference.create_link, '', target: "blank"%> + <%= link_to writing_conference.paper_title, OrbitHelper.url_to_plugin_show(writing_conference.to_param,'personal_conference'), target: "blank"%>