fix wrong link
This commit is contained in:
parent
618e4f4047
commit
93946c37f4
|
@ -2,7 +2,7 @@ module Panel::Announcement::BackEnd::BulletinCategorysHelper
|
||||||
include ActionView::Helpers::UrlHelper
|
include ActionView::Helpers::UrlHelper
|
||||||
|
|
||||||
|
|
||||||
def show_permission_link(bulletin_category)
|
def show_anc_cate_permission_link(bulletin_category)
|
||||||
type = 'submit'
|
type = 'submit'
|
||||||
oa = bulletin_category.get_object_auth_by_title(type)
|
oa = bulletin_category.get_object_auth_by_title(type)
|
||||||
if oa.nil?
|
if oa.nil?
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<div class="quick-edit">
|
<div class="quick-edit">
|
||||||
<ul class="nav nav-pills hide">
|
<ul class="nav nav-pills hide">
|
||||||
<%if is_manager? || is_admin? %>
|
<%if is_manager? || is_admin? %>
|
||||||
<li><%= show_permission_link(bulletin_category) %></li>
|
<li><%= show_anc_cate_permission_link(bulletin_category) %></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if is_admin?%>
|
<% if is_admin?%>
|
||||||
<li><%= link_to t('bulletin_category.edit'), edit_panel_announcement_back_end_bulletin_category_path(bulletin_category), :remote => true %></li>
|
<li><%= link_to t('bulletin_category.edit'), edit_panel_announcement_back_end_bulletin_category_path(bulletin_category), :remote => true %></li>
|
||||||
|
|
|
@ -2,7 +2,7 @@ module Panel::News::BackEnd::NewsBulletinCategorysHelper
|
||||||
include ActionView::Helpers::UrlHelper
|
include ActionView::Helpers::UrlHelper
|
||||||
|
|
||||||
|
|
||||||
def show_permission_link(news_bulletin_category)
|
def show_news_cate_permission_link(news_bulletin_category)
|
||||||
type = 'submit'
|
type = 'submit'
|
||||||
oa = news_bulletin_category.get_object_auth_by_title(type)
|
oa = news_bulletin_category.get_object_auth_by_title(type)
|
||||||
if oa.nil?
|
if oa.nil?
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<div class="quick-edit">
|
<div class="quick-edit">
|
||||||
<ul class="nav nav-pills hide">
|
<ul class="nav nav-pills hide">
|
||||||
<%if is_manager? || is_admin? %>
|
<%if is_manager? || is_admin? %>
|
||||||
<li><%= show_permission_link(news_bulletin_category) %></li>
|
<li><%= show_news_cate_permission_link(news_bulletin_category) %></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if is_admin?%>
|
<% 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>
|
<li><%= link_to t('bulletin_category.edit'), edit_panel_news_back_end_news_bulletin_category_path(news_bulletin_category), :remote => true %></li>
|
||||||
|
|
Reference in New Issue