102 lines
4.5 KiB
Plaintext
102 lines
4.5 KiB
Plaintext
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
<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 %>
|
||
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/common', 'css/structure','css/public', 'prettify','css/project','css/courses','css/popup','syllabus','css/moduel', 'css/user', :media => 'all' %>
|
||
<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
|
||
<%= javascript_heads %>
|
||
<%= javascript_include_tag "bootstrap","avatars","new_user",'attachments','prettify'%>
|
||
<%= heads_for_theme %>
|
||
<%= call_hook :view_layouts_base_html_head %>
|
||
<%= yield :header_tags -%>
|
||
<!-- 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>
|
||
</head>
|
||
|
||
<body onload="prettyPrint();">
|
||
<div class="navContainer">
|
||
<% is_current_user = User.current.logged? && User.current == @user%>
|
||
<% if User.current.logged? %>
|
||
<%= render :partial => 'layouts/logined_header' %>
|
||
<% else%>
|
||
<%= render :partial => 'layouts/unlogin_header' %>
|
||
<% end%>
|
||
</div>
|
||
<div class="cl"></div>
|
||
<div class="homepageContentContainer">
|
||
<!--div class="homepageRightBannerImg"></div-->
|
||
<div class="cl"></div>
|
||
<div class="homepageContent">
|
||
<div class="homepageLeft mt10" id="LSide">
|
||
<div class="user_leftnav ">
|
||
<ul class="users_accordion mb10">
|
||
<li id="user_06" class="user_icons_project">
|
||
<%= link_to '项目',{:controller => "users", :action => "user_projectlist", :id => @user}, :id => 'user_project_list'%>
|
||
<font class="show-all-sub"><%= link_to '全部',{:controller => "users", :action => "user_projectlist", :id => @user}, :style => "color:#aaa;" %></font>
|
||
<% projects = @user.favorite_projects.visible.select("projects.*, (SELECT MAX(updated_at) FROM `forge_activities` WHERE forge_activities.project_id = projects.id) AS a").order("a desc").limit(10)%>
|
||
<div class="<%= projects.empty? ? 'none' : ''%>" id="homepage_left_project_list">
|
||
<%=render :partial => 'layouts/homepage_left_project_list', :locals => {:projects => projects} %>
|
||
</div>
|
||
</li>
|
||
<% if is_current_user %>
|
||
<li id="user_07" class="user_icons_new">
|
||
<%= link_to "新建项目", new_project_path(:host=> Setting.host_name), :target => "_blank", :style => "font-size:14px;" %>
|
||
</li>
|
||
<li id="user_08" class="user_icons_addproject">
|
||
<%= link_to "加入项目", applied_join_project_path, :remote => true, :method => "post", :style => "font-size:14px;" %>
|
||
</li>
|
||
<li id="user_09" class="user_icons_myissues">
|
||
<%= link_to "我的Issue", user_issues_user_path(@user), :target => "_blank", :style => "font-size:14px;" %>
|
||
</li>
|
||
<% end %>
|
||
</ul>
|
||
</div>
|
||
<%# 更新访问数,刷新的时候更新访问次数 %>
|
||
<% update_visiti_count @user %>
|
||
<div class="fontGrey5 mt10 ml20">访问计数 <%= @user.visits.to_i %> (自2016年5月)</div>
|
||
</div>
|
||
<div class="homepageRight">
|
||
<%= yield %>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="cl"></div>
|
||
<%= render :partial => 'layouts/footer' %>
|
||
<div class="cl"></div>
|
||
|
||
<div id="ajax-modal" style="display:none;"></div>
|
||
<div id="ajax-indicator" style="display:none;">
|
||
<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 => @user} %>
|
||
</div>
|
||
|
||
<script>
|
||
function leftProjectslistChange(){
|
||
var target = $('#user_projects_li>li');
|
||
for(var i = 10; i < target.length; i++){
|
||
target.eq(i).slideToggle();
|
||
}
|
||
$('#hide_show_projecticon').toggleClass("user_icons_closeclass");
|
||
$('#hide_show_projecticon').toggleClass("user_icons_moreclass");
|
||
}
|
||
</script>
|
||
</body>
|
||
</html> |