fix wrong link

This commit is contained in:
Matthew K. Fu JuYuan 2012-05-09 15:54:00 +08:00
parent 618e4f4047
commit 93946c37f4
4 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@ module Panel::Announcement::BackEnd::BulletinCategorysHelper
include ActionView::Helpers::UrlHelper
def show_permission_link(bulletin_category)
def show_anc_cate_permission_link(bulletin_category)
type = 'submit'
oa = bulletin_category.get_object_auth_by_title(type)
if oa.nil?

View File

@ -5,7 +5,7 @@
<div class="quick-edit">
<ul class="nav nav-pills hide">
<%if is_manager? || is_admin? %>
<li><%= show_permission_link(bulletin_category) %></li>
<li><%= show_anc_cate_permission_link(bulletin_category) %></li>
<% end %>
<% if is_admin?%>
<li><%= link_to t('bulletin_category.edit'), edit_panel_announcement_back_end_bulletin_category_path(bulletin_category), :remote => true %></li>

View File

@ -2,7 +2,7 @@ module Panel::News::BackEnd::NewsBulletinCategorysHelper
include ActionView::Helpers::UrlHelper
def show_permission_link(news_bulletin_category)
def show_news_cate_permission_link(news_bulletin_category)
type = 'submit'
oa = news_bulletin_category.get_object_auth_by_title(type)
if oa.nil?

View File

@ -5,7 +5,7 @@
<div class="quick-edit">
<ul class="nav nav-pills hide">
<%if is_manager? || is_admin? %>
<li><%= show_permission_link(news_bulletin_category) %></li>
<li><%= show_news_cate_permission_link(news_bulletin_category) %></li>
<% end %>
<% if is_admin?%>
<li><%= link_to t('bulletin_category.edit'), edit_panel_news_back_end_news_bulletin_category_path(news_bulletin_category), :remote => true %></li>