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 %>
|
2016-01-07 15:58:22 +08:00
|
|
|
|
<%= stylesheet_link_tag 'pleft','prettify','jquery/jquery-ui-1.9.2','header','new_user','repository','courses','org', 'share' %>
|
2015-12-30 15:46:01 +08:00
|
|
|
|
<%= javascript_include_tag 'cookie','project', 'organization','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? %>
|
2016-02-20 15:18:24 +08:00
|
|
|
|
<li class="navOrgMenu fr" id="orgUser" style="cursor:pointer;">
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(User.current),:width => '23',:height => '23'), user_path(User.current),:alt => '用户头像', :target => '_blank',:style=>'border-radius:3px; vertical-align:top; margin-top:3px; display:inline-block; margin-right:3px;' %>
|
|
|
|
|
<%= link_to User.current, user_path(User.current),:id => "orgUserName",:class => 'fontGrey2 f14 mr5',:target => '_blank' %>
|
|
|
|
|
<%= link_to "退出",logout_organization_path(@organization), :class =>"menuGrey", :method => 'post', :rel => "nofollow" %>
|
2015-12-25 16:13:17 +08:00
|
|
|
|
</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>
|
2015-12-25 16:13:17 +08:00
|
|
|
|
<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>
|
2015-11-12 17:00:35 +08:00
|
|
|
|
</div>
|
2015-12-25 16:13:17 +08:00
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end%>
|
|
|
|
|
</div>
|
|
|
|
|
<!--<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" %>
|
|
|
|
|
<% 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 %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
2015-11-13 09:13:57 +08:00
|
|
|
|
|
2015-12-25 16:13:17 +08:00
|
|
|
|
<% if User.current.admin_of_org?(@organization) %>
|
2015-11-14 10:01:30 +08:00
|
|
|
|
<a href="<%= setting_organization_path(@organization) %>" class="pr_join_a c_white"><span class="pr_setting"></span>配置</a>
|
2015-12-25 16:13:17 +08:00
|
|
|
|
<% end %>
|
2015-11-14 10:01:30 +08:00
|
|
|
|
|
2015-12-25 16:13:17 +08:00
|
|
|
|
<!--<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-14 10:01:30 +08:00
|
|
|
|
|
2015-12-25 16:13:17 +08:00
|
|
|
|
<div class="cl"></div>
|
2016-01-20 09:25:12 +08:00
|
|
|
|
<div class="f12 fontGrey3">
|
|
|
|
|
<%= 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 %>
|
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
|
|
|
|
|
|
|
<%= link_to '成员', members_organization_path(@organization.id) %>
|
|
|
|
|
(<%= link_to @organization.org_members.count, members_organization_path(@organization.id), :id => 'org_members_count_id', :class => "linkBlue" %>)
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
2015-11-12 17:00:35 +08:00
|
|
|
|
</div>
|
2015-12-25 16:13:17 +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>
|
2016-01-04 11:11:42 +08:00
|
|
|
|
<div class="homepageRight" style="margin-top:<%= (params[:show_homepage].nil? && User.current.logged?) ? '10px':'0px' %>;">
|
2015-12-25 16:13:17 +08:00
|
|
|
|
<%= render_flash_messages %>
|
|
|
|
|
<%= yield %>
|
|
|
|
|
<%= call_hook :view_layouts_base_content %>
|
|
|
|
|
<div style="clear:both;"></div>
|
|
|
|
|
</div>
|
2015-11-12 17:00:35 +08:00
|
|
|
|
</div>
|
2015-12-25 16:13:17 +08:00
|
|
|
|
</div>
|
2015-11-12 17:00:35 +08:00
|
|
|
|
|
2015-12-25 16:13:17 +08:00
|
|
|
|
<!--页面底部-->
|
|
|
|
|
<div class="cl"></div>
|
2015-12-25 16:16:06 +08:00
|
|
|
|
<div id="Footer">
|
|
|
|
|
<div class="footerAboutContainer">
|
|
|
|
|
<ul class="footerAbout">
|
|
|
|
|
<li class="fl"><a href="<%= about_us_path %>" class=" f_grey mw20" target="_blank">关于我们</a>|</li>
|
|
|
|
|
<li class="fl"><a href="<%= agreement_path %>" class=" f_grey mw20" target="_blank">服务协议</a>|</li>
|
|
|
|
|
<li class="fl"><a href="http://forge.trustie.net/forums/1/memos/1168" class="f_grey mw20" target="_blank">帮助中心</a>|</li>
|
|
|
|
|
<li class="fl"><a href="<%= forums_path(:reorder_complex=>'desc')%>" class="f_grey mw20" target="_blank">贴吧交流</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
|
|
|
|
|
<ul class="copyright mt10">
|
2016-01-08 19:33:58 +08:00
|
|
|
|
<li class="fl mr30">Copyright © 2007-2016, All Rights Reserved</li>
|
2015-12-25 16:16:06 +08:00
|
|
|
|
<li>ICP备09019772</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
2015-12-25 16:13:17 +08:00
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<div id="ajax-modal" style="display:none;"></div>
|
2015-11-17 17:34:50 +08:00
|
|
|
|
|
2015-12-25 16:13:17 +08:00
|
|
|
|
<div id="ajax-indicator" style="display:none;">
|
|
|
|
|
<span><%= l(:label_loading) %></span>
|
|
|
|
|
</div>
|
2015-11-26 16:29:50 +08:00
|
|
|
|
|
2015-12-25 16:13:17 +08:00
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$("#courseMenu").mouseenter(function(){
|
|
|
|
|
$("#topnav_course_menu").show();
|
|
|
|
|
});
|
|
|
|
|
$("#courseMenu").mouseleave(function(){
|
|
|
|
|
$("#topnav_course_menu").hide();
|
|
|
|
|
});
|
|
|
|
|
$("#projectMenu").mouseenter(function(){
|
|
|
|
|
$("#topnav_project_menu").show();
|
|
|
|
|
});
|
|
|
|
|
$("#projectMenu").mouseleave(function(){
|
|
|
|
|
$("#topnav_project_menu").hide();
|
|
|
|
|
});
|
2015-12-07 12:53:51 +08:00
|
|
|
|
|
2015-12-25 16:13:17 +08:00
|
|
|
|
function show_homepage(id, has_homepage){
|
|
|
|
|
if (has_homepage == 1)
|
|
|
|
|
{
|
|
|
|
|
window.location.href = "/organizations/" + id + "?show_homepage=1";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
alert("您还未设置首页!");
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-12-07 14:31:08 +08:00
|
|
|
|
$(document).ready(function(){
|
2015-12-25 16:30:09 +08:00
|
|
|
|
$("#orgUser,#orgSwitch,#org_login_list").mouseout(function(){
|
2015-12-25 16:16:06 +08:00
|
|
|
|
$(".org_login_list").css("display","none");
|
|
|
|
|
$("#orgArrow").attr("class","orgMenuArrow");
|
2015-12-25 16:30:09 +08:00
|
|
|
|
});
|
|
|
|
|
$("#orgUser,#orgSwitch,#org_login_list").mouseover(function(){
|
|
|
|
|
$(".org_login_list").css("display","block");
|
|
|
|
|
$("#orgArrow").attr("class","orgMenuArrow2");
|
|
|
|
|
});
|
2015-12-07 14:31:08 +08:00
|
|
|
|
});
|
|
|
|
|
</script>
|
2015-11-12 17:00:35 +08:00
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
|