|
|
|
@ -13,7 +13,7 @@
|
|
|
|
|
<%= javascript_heads %>
|
|
|
|
|
<%= heads_for_theme %>
|
|
|
|
|
<%= stylesheet_link_tag 'prettify','jquery/jquery-ui-1.9.2','css/common','css/structure','css/public','repository','css/courses','css/org','css/project', 'css/popup' %>
|
|
|
|
|
<%= javascript_include_tag 'cookie','project', 'organization','header','prettify','select_list_move','org'%>
|
|
|
|
|
<%= javascript_include_tag 'cookie','project',"avatars", 'organization','header','prettify','select_list_move','org'%>
|
|
|
|
|
<%= javascript_include_tag 'attachments' %>
|
|
|
|
|
<%= call_hook :view_layouts_base_html_head %>
|
|
|
|
|
<!-- page specific tags -->
|
|
|
|
@ -78,16 +78,14 @@
|
|
|
|
|
<!--<%#= image_tag(url_to_avatar(@organization), :width=>"60", :height=>"60", :alt=>"组织logo") %>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<div class="pr_info_logo fl fl mr10 mb5" id="homepage_portrait_image">
|
|
|
|
|
<%= image_tag(url_to_avatar(@organization),width:"60", height: "60", :id=>'nh_user_tx') %>
|
|
|
|
|
<% if User.current.logged?%>
|
|
|
|
|
<% if User.current.id == @organization.creator_id%>
|
|
|
|
|
<div id="edit_org_file_btn" class="none">
|
|
|
|
|
<div class="homepageEditProfile">
|
|
|
|
|
<a href="<%= clear_org_avatar_temp_organization_path(@organization) %>" data-remote="true" class="homepageEditProfileIcon"></a>
|
|
|
|
|
</div>
|
|
|
|
|
<% if User.current.logged? && User.current.admin_of_org?(@organization)%>
|
|
|
|
|
<%=link_to image_tag(url_to_avatar(@organization),width:"60", height: "60", :id=>'nh_source_tx'), my_clear_user_avatar_temp_path(:organization => @organization.id), :remote => true%>
|
|
|
|
|
<div class="homepageEditProfile undis">
|
|
|
|
|
<%=link_to '', my_clear_user_avatar_temp_path(:organization => @organization.id), :remote => true, :class => 'homepageEditProfileIcon', :title => '点击编辑Logo' %>
|
|
|
|
|
</div>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= image_tag(url_to_avatar(@organization), :width => "60", :height => "60", :alt => "组织logo") %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end%>
|
|
|
|
|
</div>
|
|
|
|
|
<!--<div class="orgName fl mb5 f14">组织id:<%#= @organization.id %></div>-->
|
|
|
|
|
<div class="orgName fl mb5 f14" title="<%= @organization.name %>">
|
|
|
|
@ -172,6 +170,10 @@
|
|
|
|
|
<span><%= l(:label_loading) %></span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="nh_tx_dialog_html" class="white_content" style="display:none;">
|
|
|
|
|
<%=render :partial => 'layouts/upload_avatar', :locals => {:source => @organization} %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$("#courseMenu").mouseenter(function(){
|
|
|
|
|
$("#topnav_course_menu").show();
|
|
|
|
|