|
|
|
@ -70,11 +70,11 @@
|
|
|
|
|
<span style="font-size: 16px; border-bottom:1px solid #f0f0f0; margin-right: 15px;">
|
|
|
|
|
<%= label_tips %>
|
|
|
|
|
</span>
|
|
|
|
|
<% if @project.enabled_modules.where("name = 'news'").count > 0 %>
|
|
|
|
|
<%= link_to(btn_tips,
|
|
|
|
|
new_project_news_path(@project),
|
|
|
|
|
:class => 'icon icon-add',
|
|
|
|
|
:onclick => 'showAndScrollTo("add-news", "news_title"); return false;') %>
|
|
|
|
|
<% if @project.enabled_modules.where("name = 'news'").count > 0 && User.current.member_of?(@project) %>
|
|
|
|
|
<%= link_to(btn_tips,
|
|
|
|
|
new_project_news_path(@project),
|
|
|
|
|
:class => 'icon icon-add',
|
|
|
|
|
:onclick => 'showAndScrollTo("add-news", "news_title"); return false;') %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if @project && User.current.allowed_to?(:manage_news, @project) %>
|
|
|
|
|
<div id="add-news" class="add_frame" style="display:none;">
|
|
|
|
|