权限控制

This commit is contained in:
huang 2016-04-02 00:31:36 +08:00
parent 7d07989939
commit 73297230d1
1 changed files with 11 additions and 1 deletions

View File

@ -77,7 +77,7 @@
<div class="container"> <div class="container">
<div class="header"> <div class="header">
<div class="header-con"> <div class="header-con">
<% if User.current.admin_of_org?(@organization) %>
<a href="javascript:void(0);" class="fl logo" onclick="orge_new_files_upload();"> <a href="javascript:void(0);" class="fl logo" onclick="orge_new_files_upload();">
<!--"/files/uploads/image#{iamge_path}"--> <!--"/files/uploads/image#{iamge_path}"-->
<% if @org_logo_attchment.blank? %> <% if @org_logo_attchment.blank? %>
@ -86,6 +86,16 @@
<img src="/attachments/<%= @org_logo_attchment.id %>/<%= @org_logo_attchment.filename %>" height="52"> <img src="/attachments/<%= @org_logo_attchment.id %>/<%= @org_logo_attchment.filename %>" height="52">
<% end %> <% end %>
</a> </a>
<% else %>
<a href="javascript:void(0);" class="fl logo" onclick="orge_new_files_upload();">
<!--"/files/uploads/image#{iamge_path}"-->
<% if @org_logo_attchment.blank? %>
<img src="/images/org_new_style/logo.jpg" height="52" alt=""/>
<% else %>
<img src="/attachments/<%= @org_logo_attchment.id %>/<%= @org_logo_attchment.filename %>" height="52">
<% end %>
</a>
<% end %>
<%# 登录 %> <%# 登录 %>