Add url to frontend

This commit is contained in:
manson 2014-07-04 12:06:42 +08:00
parent b351e858c7
commit ee40481f1b
3 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ class PersonalConferencesController < ApplicationController
writing_conference_list = writing_conferences.collect do |writing_conference| writing_conference_list = writing_conferences.collect do |writing_conference|
{ {
"year" => writing_conference.year, "year" => writing_conference.year,
"paper_title" => writing_conference.paper_title, "paper_title" => writing_conference.create_link,
"author" => writing_conference.member_profile.name, "author" => writing_conference.member_profile.name,
"link_to_show" => OrbitHelper.url_to_show(writing_conference.to_param) "link_to_show" => OrbitHelper.url_to_show(writing_conference.to_param)
} }

View File

@ -2,7 +2,7 @@
<tr id="<%= dom_id writing_conference %>" class="<%= writing_conference.is_hidden ? "checkHide" : "" %>"> <tr id="<%= dom_id writing_conference %>" class="<%= writing_conference.is_hidden ? "checkHide" : "" %>">
<td><%= writing_conference.year %></td> <td><%= writing_conference.year %></td>
<td> <td>
<%= 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"%>
<div class="quick-edit"> <div class="quick-edit">
<ul class="nav nav-pills hide"> <ul class="nav nav-pills hide">
<li><%= link_to t('edit'), '/admin/members/'+writing_conference.member_profile.to_param+'/writing_conferences/'+writing_conference.id+'/edit' %></li> <li><%= link_to t('edit'), '/admin/members/'+writing_conference.member_profile.to_param+'/writing_conferences/'+writing_conference.id+'/edit' %></li>

View File

@ -46,7 +46,7 @@
<% end %> <% end %>
<td><%= writing_conference.year %></td> <td><%= writing_conference.year %></td>
<td> <td>
<%= 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"%>
<div class="quick-edit"> <div class="quick-edit">
<ul class="nav nav-pills hide"> <ul class="nav nav-pills hide">
<li><%= link_to t('edit'), '/admin/members/'+@member.to_param+'/writing_conferences/'+writing_conference.id+'/edit' %></li> <li><%= link_to t('edit'), '/admin/members/'+@member.to_param+'/writing_conferences/'+writing_conference.id+'/edit' %></li>