2015-11-12 17:00:35 +08:00
|
|
|
|
<% @nav_dispaly_project_label = 1
|
|
|
|
|
@nav_dispaly_forum_label = 1 %>
|
|
|
|
|
<%#@nav_dispaly_project_label = 1 %>
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
|
<title><%= h html_title %></title>
|
|
|
|
|
<meta name="description" content="<%= Redmine::Info.app_name %>" />
|
|
|
|
|
<meta name="keywords" content="issue,bug,tracker" />
|
|
|
|
|
<%= csrf_meta_tag %>
|
|
|
|
|
<%= favicon %>
|
|
|
|
|
<%= javascript_heads %>
|
|
|
|
|
<%= heads_for_theme %>
|
2015-12-14 16:41:18 +08:00
|
|
|
|
<%= stylesheet_link_tag 'pleft','prettify','jquery/jquery-ui-1.9.2','header','new_user','repository','courses','org' %>
|
2015-11-12 17:00:35 +08:00
|
|
|
|
<%= javascript_include_tag 'cookie','project', 'header','prettify','select_list_move','org'%>
|
2015-12-14 16:41:18 +08:00
|
|
|
|
<%= javascript_include_tag 'attachments' %>
|
2015-11-12 17:00:35 +08:00
|
|
|
|
<%= call_hook :view_layouts_base_html_head %>
|
|
|
|
|
<!-- page specific tags -->
|
|
|
|
|
<%= yield :header_tags -%>
|
2015-12-07 12:53:51 +08:00
|
|
|
|
<!-- MathJax的配置 -->
|
|
|
|
|
<script type="text/javascript"
|
|
|
|
|
src="/javascripts/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
|
|
|
|
|
</script>
|
|
|
|
|
<!-- 配置 : 在生成的公式图片上去掉Math定义的右键菜单,$$ $$ \( \) \[ \] 中的公式给予显示-->
|
|
|
|
|
<script type="text/x-mathjax-config">
|
|
|
|
|
MathJax.Hub.Config({
|
|
|
|
|
showMathMenu: false,
|
|
|
|
|
showMathMenuMSIE: false,
|
|
|
|
|
tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}
|
|
|
|
|
});
|
|
|
|
|
</script>
|
2015-11-12 17:00:35 +08:00
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
<!--add by huang-->
|
|
|
|
|
<body onload="prettyPrint();">
|
2015-12-05 14:34:16 +08:00
|
|
|
|
<div class="orgContainer">
|
|
|
|
|
<div class="orgNav">
|
2015-12-07 12:53:51 +08:00
|
|
|
|
<div class="navOrgLogo fl"><a href="javascript:void(0);" onclick="show_homepage(<%= @organization.id %>, <%= @organization.home_id.nil? ? 0 : 1 %>);"><img src="/images/home_logo.png" width="21" height="19" alt="Trustie" class="mt3" /></a></div>
|
2015-12-05 14:34:16 +08:00
|
|
|
|
<ul>
|
2015-12-07 12:53:51 +08:00
|
|
|
|
<li class="navOrgMenu fl">
|
|
|
|
|
<a href="javascript:void(0);" onclick="show_homepage(<%= @organization.id %>, <%= @organization.home_id.nil? ? 0 : 1 %>);" class="linkGrey8 f14">首页</a>
|
|
|
|
|
<%#= link_to '首页', organization_path(@organization, :show_homepage => 1),:class=>"linkGrey8 f14" %>
|
|
|
|
|
</li>
|
2015-11-12 17:00:35 +08:00
|
|
|
|
<% if User.current.logged? %>
|
2015-12-07 14:31:08 +08:00
|
|
|
|
<li class="navOrgMenu fr" id="orgSwitch" style="cursor:pointer;">
|
|
|
|
|
<span class="orgMenuArrow" id="orgArrow">
|
|
|
|
|
<ul class="org_login_list" style="display:none;">
|
2015-12-07 15:52:13 +08:00
|
|
|
|
<li> <%= link_to "个人主页",user_path(User.current), :class => "linkGrey8", :target => "_blank" %></li>
|
|
|
|
|
<li><%= link_to "退出",logout_organization_path(@organization), :class =>"linkGrey8", :method => 'post', :rel => "nofollow" %></li>
|
|
|
|
|
<!--<li><%#= link_to "退出",signout_path, :class =>"linkGrey8", :method => 'post', :rel => "nofollow" %></li>-->
|
2015-12-07 14:31:08 +08:00
|
|
|
|
</ul>
|
|
|
|
|
</span>
|
|
|
|
|
</li>
|
2015-12-07 15:52:13 +08:00
|
|
|
|
<li class="navOrgMenu fr" id="orgUser" style="cursor:pointer;"><a href="javascript:void(0);" class="linkGrey8 f14" id="orgUserName"><%= User.current %></a></li>
|
2015-12-07 14:31:08 +08:00
|
|
|
|
<!--<li class="navOrgMenu fr"><%#=link_to User.current, user_path(User.current), :class => "linkGrey8 f14" %></li>-->
|
2015-11-12 17:00:35 +08:00
|
|
|
|
<% else %>
|
2015-12-05 14:34:16 +08:00
|
|
|
|
<li class="navOrgMenu fr"><a href="<%= signin_path(:login=>true) %>" class="linkGrey8 f14">登录</a></li>
|
|
|
|
|
<li class="navOrgMenu fr"><a href="<%= signin_path(:login=>false) %>" class="linkGrey8 f14 mr15">注册</a></li>
|
2015-11-12 17:00:35 +08:00
|
|
|
|
<% end %>
|
2015-12-05 14:34:16 +08:00
|
|
|
|
</ul>
|
|
|
|
|
<!--<div class="navHomepageProfile">
|
|
|
|
|
<ul>
|
|
|
|
|
<li class="homepageProfileMenuIcon"><a href="javascript:void(0);">
|
|
|
|
|
<div class="mt5 mb8"><img src="images/homepageProfileImage.png" width="40" height="40" /></div>
|
|
|
|
|
</a>
|
|
|
|
|
<ul class="topnav_login_list" style="display:none;">
|
|
|
|
|
<li><a href="javascript:void(0);" class="menuGrey">修改资料</a> </li>
|
|
|
|
|
<li><a href="javascript:void(0);" class="menuGrey">账号设置</a> </li>
|
|
|
|
|
<li><a href="javascript:void(0);" class="menuGrey">退出</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>-->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2015-11-12 17:00:35 +08:00
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<div class="homepageContentContainer">
|
|
|
|
|
<div class="homepageContent">
|
|
|
|
|
<div class="homepageLeft">
|
|
|
|
|
<div class="homepagePortraitContainer">
|
|
|
|
|
<!--<div class="pr_info_logo fl mr10 mb5">-->
|
|
|
|
|
<!--<%#= 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>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end%>
|
|
|
|
|
</div>
|
2015-11-14 10:01:30 +08:00
|
|
|
|
<!--<div class="orgName fl mb5 f14">组织id:<%#= @organization.id %></div>-->
|
|
|
|
|
<div class="orgName fl mb5 f14">
|
|
|
|
|
<%= link_to @organization.name, organization_path(@organization.id), :class=>"pr_info_name fl c_dark fb break_word" %>
|
2015-12-07 12:53:51 +08:00
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
|
<% if @organization.is_public? %>
|
|
|
|
|
<span class="img_private"><%= l(:label_public)%></span>
|
|
|
|
|
<% else %>
|
|
|
|
|
<span class="img_private"><%= l(:label_private)%></span>
|
|
|
|
|
<% end %>
|
2015-11-13 09:13:57 +08:00
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
|
2015-11-14 10:01:30 +08:00
|
|
|
|
<% if User.current.admin_of_org?(@organization) %>
|
|
|
|
|
<a href="<%= setting_organization_path(@organization) %>" class="pr_join_a c_white"><span class="pr_setting"></span>配置</a>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<!--<div style="clear:both;">-->
|
|
|
|
|
<!--<%#= link_to l(:label_org_name)+"#{@organization.name}", organization_path(@organization.id), :class=>"pr_info_name fl c_dark fb break_word" %>-->
|
|
|
|
|
<!--<%# if @organization.is_public? %>-->
|
|
|
|
|
<!--<span class="img_private"><%#= l(:label_public)%></span>-->
|
|
|
|
|
<!--<%# else %>-->
|
|
|
|
|
<!--<span class="img_private"><%#= l(:label_private)%></span>-->
|
|
|
|
|
<!--<%# end %>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
|
2015-11-12 17:00:35 +08:00
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<div class="f12 fontGrey3">
|
2015-12-07 12:53:51 +08:00
|
|
|
|
<%= link_to '文章', organization_org_document_comments_path(@organization) %>
|
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
|
(
|
|
|
|
|
<%= link_to OrgDocumentComment.where("organization_id =? and parent_id is null", @organization.id).count, organization_org_document_comments_path(@organization), :class => "linkBlue" %>
|
|
|
|
|
)
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
<%= link_to '成员', members_organization_path(@organization.id) %>
|
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
|
(<%= link_to @organization.org_members.count, members_organization_path(@organization.id), :id => 'org_members_count_id', :class => "linkBlue" %>)
|
|
|
|
|
<% end %>
|
2015-11-12 17:00:35 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2015-12-04 17:34:48 +08:00
|
|
|
|
<div class="homepageLeftMenuContainer" id="sub_field_left_lists">
|
|
|
|
|
<%= render :partial => "organizations/org_left_subfield_list", :locals => {:organization => @organization} %>
|
2015-11-12 17:00:35 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2015-12-05 14:34:16 +08:00
|
|
|
|
<div class="homepageRight" style="margin-top:<%= params[:show_homepage].nil? ? '10px':'0px' %>;">
|
2015-11-12 17:00:35 +08:00
|
|
|
|
<%= render_flash_messages %>
|
|
|
|
|
<%= yield %>
|
|
|
|
|
<%= call_hook :view_layouts_base_content %>
|
|
|
|
|
<div style="clear:both;"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!--页面底部-->
|
|
|
|
|
<div class="cl"></div>
|
2015-12-25 16:04:49 +08:00
|
|
|
|
<%= render :partial => 'layouts/new_footer' %>
|
2015-11-12 17:00:35 +08:00
|
|
|
|
<div class="cl"></div>
|
2015-11-17 17:34:50 +08:00
|
|
|
|
<div id="ajax-modal" style="display:none;"></div>
|
|
|
|
|
|
|
|
|
|
<div id="ajax-indicator" style="display:none;">
|
|
|
|
|
<span><%= l(:label_loading) %></span>
|
|
|
|
|
</div>
|
2015-11-26 16:29:50 +08:00
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$("#courseMenu").mouseenter(function(){
|
|
|
|
|
$("#topnav_course_menu").show();
|
|
|
|
|
});
|
|
|
|
|
$("#courseMenu").mouseleave(function(){
|
|
|
|
|
$("#topnav_course_menu").hide();
|
|
|
|
|
});
|
2015-11-27 09:50:17 +08:00
|
|
|
|
$("#projectMenu").mouseenter(function(){
|
|
|
|
|
$("#topnav_project_menu").show();
|
|
|
|
|
});
|
|
|
|
|
$("#projectMenu").mouseleave(function(){
|
|
|
|
|
$("#topnav_project_menu").hide();
|
|
|
|
|
});
|
2015-12-07 12:53:51 +08:00
|
|
|
|
|
|
|
|
|
function show_homepage(id, has_homepage){
|
|
|
|
|
if (has_homepage == 1)
|
|
|
|
|
{
|
|
|
|
|
window.location.href = "/organizations/" + id + "?show_homepage=1";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2015-12-07 14:31:08 +08:00
|
|
|
|
alert("您还未设置首页!");
|
2015-12-07 12:53:51 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2015-12-07 14:31:08 +08:00
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
$("#orgUser,#orgSwitch").click(function(){
|
|
|
|
|
$(".org_login_list").toggle();
|
|
|
|
|
if($("#orgArrow").attr("class") == "orgMenuArrow"){
|
|
|
|
|
$("#orgArrow").attr("class","orgMenuArrow2");
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
$("#orgArrow").attr("class","orgMenuArrow") ;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
if($(".org_login_list").children().click){
|
|
|
|
|
$(".org_login_list").css("display","none");
|
|
|
|
|
$("#orgArrow").attr("class","orgMenuArrow");
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
</script>
|
2015-11-12 17:00:35 +08:00
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
|