parent
48e7aa78d1
commit
aab9594ac9
|
@ -1,3 +1,6 @@
|
||||||
//location.reload();
|
//location.reload();
|
||||||
//window.location.href = '<%#= organization_org_document_comments_path(:organization_id => @org_document_comment.root.organization_id)%>'
|
<% if params[:detail_page] %>
|
||||||
window.location.reload();
|
window.location.href = '<%= organization_org_document_comments_path(:organization_id => @org_document_comment.root.organization_id)%>';
|
||||||
|
<% else %>
|
||||||
|
window.location.reload();
|
||||||
|
<% end %>
|
|
@ -46,7 +46,7 @@
|
||||||
<%= link_to "编辑文章", edit_org_document_comment_path(:id => @document.id, :organization_id => @document.organization_id, :flag => 1), :class => "postOptionLink" %>
|
<%= link_to "编辑文章", edit_org_document_comment_path(:id => @document.id, :organization_id => @document.organization_id, :flag => 1), :class => "postOptionLink" %>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<%= link_to "删除文章", org_document_comment_path(:id => @document.id, :organization_id => @document.organization_id), :method => 'delete',
|
<%= link_to "删除文章", org_document_comment_path(:id => @document.id, :organization_id => @document.organization_id, :detail_page => 1), :method => 'delete',
|
||||||
:data => {:confirm => l(:text_are_you_sure)},
|
:data => {:confirm => l(:text_are_you_sure)},
|
||||||
:remote => true, :class => 'postOptionLink' %>
|
:remote => true, :class => 'postOptionLink' %>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -11,14 +11,10 @@
|
||||||
<ul style="text-align: left;" >
|
<ul style="text-align: left;" >
|
||||||
<%= radio_button_tag 'org_member[role_ids][]', role.id, member.roles.include?(role) %>
|
<%= radio_button_tag 'org_member[role_ids][]', role.id, member.roles.include?(role) %>
|
||||||
<!--编辑时候显示成员,中英文切换后面需从数据库的角度优化-->
|
<!--编辑时候显示成员,中英文切换后面需从数据库的角度优化-->
|
||||||
<% if User.current.language == "zh" %>
|
<% if role.id == 11 %>
|
||||||
<% if role.id == 11 %>
|
<label >管理人员</label>
|
||||||
<label >管理人员</label>
|
<% elsif role.id == 12 %>
|
||||||
<% elsif role.id == 12 %>
|
<label >组织成员</label>
|
||||||
<label >组织成员</label>
|
|
||||||
<% end %>
|
|
||||||
<% else %>
|
|
||||||
<label ><%= h role %></label>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
<!--<br/>-->
|
<!--<br/>-->
|
||||||
|
|
Loading…
Reference in New Issue