Fix bug in page and news
This commit is contained in:
parent
aa114568c4
commit
27cf99462e
|
@ -41,10 +41,6 @@ class Panel::News::BackEnd::NewsBulletinsController < OrbitBackendController
|
||||||
|
|
||||||
@news_bulletin_link = NewsBulletinLink.new
|
@news_bulletin_link = NewsBulletinLink.new
|
||||||
@link_url = panel_news_back_end_news_bulletins_path
|
@link_url = panel_news_back_end_news_bulletins_path
|
||||||
|
|
||||||
@news_bulletins.delete_if{ |news_bulletin|
|
|
||||||
news_bulletin.is_pending == true && ((!news_bulletin.bulletin_category.authed_users('fact_check').include?(current_user) rescue nil) || news_bulletin.create_user_id!=current_user.id)
|
|
||||||
}
|
|
||||||
|
|
||||||
@news_bulletin_file = NewsBulletinFile.new
|
@news_bulletin_file = NewsBulletinFile.new
|
||||||
@file_url = panel_news_back_end_news_bulletins_path
|
@file_url = panel_news_back_end_news_bulletins_path
|
||||||
|
|
|
@ -18,6 +18,6 @@
|
||||||
<%= link_to page_context.version, panel_page_content_back_end_view_path(page_context.page_id) %>
|
<%= link_to page_context.version, panel_page_content_back_end_view_path(page_context.page_id) %>
|
||||||
<%end -%>
|
<%end -%>
|
||||||
</td>
|
</td>
|
||||||
<td><%= display_date_time(page_context) %></td>
|
<td><%= display_date_time(page_context.updated_at) %></td>
|
||||||
<td><%= User.find(page_context.create_user_id).name %></td>
|
<td><%= User.find(page_context.create_user_id).name %></td>
|
||||||
</tr>
|
</tr>
|
Loading…
Reference in New Issue