Add url to frontend

This commit is contained in:
manson 2014-07-04 12:12:14 +08:00
parent bcb21d2126
commit 74b92c97e7
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
<tr id="<%= dom_id diploma %>" class="<%= diploma.is_hidden ? "checkHide" : "" %>">
<td><%= diploma.duration %></td>
<td>
<%= link_to diploma.school_name, '', target: "blank"%>
<%= link_to diploma.school_name, OrbitHelper.url_to_plugin_show(diploma.to_param,'personal_diploma'), target: "blank"%>
<div class="quick-edit">
<ul class="nav nav-pills hide">
<li><%= link_to t('edit'), '/admin/members/'+diploma.member_profile.to_param+'/diplomas/'+diploma.id+'/edit' %></li>

View File

@ -45,7 +45,7 @@
<% end %>
<td><%= diploma.duration %></td>
<td>
<%= link_to diploma.school_name, '', target: "blank"%>
<%= link_to diploma.school_name, OrbitHelper.url_to_plugin_show(diploma.to_param,'personal_diploma'), target: "blank"%>
<div class="quick-edit">
<ul class="nav nav-pills hide">
<li><%= link_to t('edit'), '/admin/members/'+@member.to_param+'/diplomas/'+diploma.id+'/edit' %></li>