Add url to frontend

This commit is contained in:
manson 2014-07-04 12:18:53 +08:00
parent 8f6c892f87
commit 983c44db02
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
<tr id="<%= dom_id lab %>" class="<%= lab.is_hidden ? "checkHide" : "" %>"> <tr id="<%= dom_id lab %>" class="<%= lab.is_hidden ? "checkHide" : "" %>">
<td><%= lab.year %></td> <td><%= lab.year %></td>
<td> <td>
<%= link_to lab.lab_title, '', target: "blank"%> <%= link_to lab.lab_title, OrbitHelper.url_to_plugin_show(lab.to_param,'personal_lab'), 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/'+lab.member_profile.to_param+'/labs/'+lab.id+'/edit' %></li> <li><%= link_to t('edit'), '/admin/members/'+lab.member_profile.to_param+'/labs/'+lab.id+'/edit' %></li>

View File

@ -44,7 +44,7 @@
<% end %> <% end %>
<td><%= lab.year %></td> <td><%= lab.year %></td>
<td> <td>
<%= link_to lab.lab_title, '', target: "blank"%> <%= link_to lab.lab_title, OrbitHelper.url_to_plugin_show(lab.to_param,'personal_lab'), 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+'/labs/'+lab.id+'/edit' %></li> <li><%= link_to t('edit'), '/admin/members/'+@member.to_param+'/labs/'+lab.id+'/edit' %></li>