add link to the activity

This commit is contained in:
EricTYL 2020-02-13 15:54:36 +08:00
parent 862b4bd8df
commit 77179fa0fc
2 changed files with 5 additions and 5 deletions

View File

@ -2,8 +2,8 @@
<tr id="<%= dom_id activity %>" class="with_action">
<td class="span1"><%= activity.member_profile.name %></td>
<td class="span1"><%= activity.year %></td>
<td class="span5"><%= activity.activity_name %>
<div class="quick-edit">
<td class="span5"><%= link_to activity.activity_name, OrbitHelper.url_to_plugin_show(activity.to_param,'personal_activity'), target: "blank"%>
<div class="quick-edit">
<ul class="nav nav-pills hide">
<% if current_user.is_admin? %>
<li><%= link_to t('edit'), edit_admin_activity_path(activity) %></li>

View File

@ -39,7 +39,7 @@ end
<% end %>
<td><%= activity.year %></td>
<td>
<%#= link_to activity.create_link, OrbitHelper.url_to_plugin_show(activity.to_param,'personal_activity'), target: "blank"%>
<%= link_to activity.activity_name, OrbitHelper.url_to_plugin_show(activity.to_param,'personal_activity'), target: "blank"%>
<% activity.activity_name %>
<% if has_access? %>
<div class="quick-edit">
@ -66,8 +66,8 @@ end
<% if has_access? %>
<div class="action pull-right">
<%#= link_to content_tag(:i, nil, :class => 'icon-edit') +' '+ t('setting'),'/admin/members/'+@member.to_param+'/books/frontend_setting', :class => 'btn btn-primary' %>
<%#= link_to content_tag(:i, nil, :class => 'icon-plus') +' '+ t('new_'),
'/admin/members/'+@member.to_param+'/books/new', :class => 'btn btn-primary' %>
<%= link_to content_tag(:i, nil, :class => 'icon-plus') +' '+ t('new_'),
'/admin/members/'+@member.to_param+'/activities/new', :class => 'btn btn-primary' %>
</div>
<% end %>
<div class="pagination pagination-centered">