socialforge/app/views/layouts/base_old.html.erb

157 lines
8.2 KiB
Plaintext
Raw Normal View History

2013-08-01 10:33:49 +08:00
<!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 %>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2', 'application', :media => 'all' %>
<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
<%= javascript_heads %>
<%= heads_for_theme %>
<%= call_hook :view_layouts_base_html_head %>
<!-- page specific tags -->
<%= yield :header_tags -%>
</head>
<body class="<%= h body_css_classes %>">
<div id="wrapper">
<div id="wrapper2">
<div id="wrapper3">
<div id="top-menu">
<div id="account">
<%= render_menu :account_menu -%>
</div>
<%= content_tag('div', "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}".html_safe, :id => 'loggedas') if User.current.logged? %>
<%= render_menu :top_menu if User.current.logged? || !Setting.login_required? -%>
</div>
<!--<% if display_main_menu?(@project) %>
<div style="padding-left: 33px">
<div class="header_logo_right">
<%= link_to "项目配置", { :controller => 'projects', :action => 'settings' }, :last => true, :class => "user_setting" %>
<%= link_to "版本库", { :controller => 'repositories', :action => 'show', :repository_id => nil, :path => nil, :rev => nil },
:if => Proc.new { |p| p.repository && !p.repository.new_record? }, :class => "user_setting" %>
<%= link_to "活动", { :controller => 'activities', :action => 'index' }, :class => "user_setting" %>
<%= link_to "项目主页", { :controller => 'projects', :action => 'show' }, :class => "user_setting" %>
<!--<table><tr><td align="center" valign="middle"><%= @project.issues.count %></td><td align="center" valign="middle" ><%= link_to('缺陷',project_issues_path(@project), :class => 'project_infor_tag') %></td></tr>
<tr><td><%= session[:project_mission_num] %> </td><td><%= link_to('任务', {:controller =>'projects', :action =>'mission'}, :class => 'project_infor_tag') %></td></tr>
<tr><td><%= session[:project_on_num] %> </td><td><%= link_to('提交', {:controller =>'projects', :action =>'on'}, :class => 'project_infor_tag') %></td></tr>
<tr><td><%= @project.attachments.count %> </td><td><%= link_to('文件', project_files_path(@project), :class => 'project_infor_tag') %></td></tr>
</table> -->
<!-- </div>
<div class="header_logo_left">
<h1><strong><%= page_header_title %></strong></h1>
<table style="padding-top:0px">
<tr><td><img src="/images/new/logo_top.png" width="60" height="50"/></td>
<td><% if @project.description.present? %>
<div class="top_description"><%= textilizable @project.description %>
<% end %>
</div></td></tr>
</table>
</div>
<div style="padding:100px 0px 0px 0px">
<div style="padding:20px 0px 10px 0px">标签:<a class="htags">css</a><a class="htags">web_browser</a><a class="htags">项目托管</a><a class="htags">社交网络 </a><a class="htags"> Rails</a><a class="htags">开源</a>...</div>
<div style="margin:1;width:900px;height:1px;background-color:#DBDBDB;overflow:hidden;margin-bottom: 4px;"></div>
<div></div><%= link_to('成员: ', {:controller => 'projects', :action => 'member'}, :class => 'project_infor_tag') %><%= @project.members.count %>
<%= link_to('关注: ', {:controller => 'projects', :action => 'focus'}, :class => 'project_infor_tag') %><%= session[:project_focus_num] %>
<%= link_to('投资者: ',{:controller => 'projects', :action =>'investor'},:class => 'project_infor_tag') %><%= session[:project_investor_num] %>
<%= link_to('缺陷: ',project_issues_path(@project), :class => 'project_infor_tag') %><%= @project.issues.count %>
<%= link_to('任务: ', {:controller =>'projects', :action =>'mission'}, :class => 'project_infor_tag') %><%= session[:project_mission_num] %>
<%= link_to('提交: ', {:controller =>'projects', :action =>'on'}, :class => 'project_infor_tag') %><%= session[:project_on_num] %>
<%= link_to('文件: ', project_files_path(@project), :class => 'project_infor_tag') %><%= @project.attachments.count %>
<div style="margin:1;width:900px;height:1px;background-color:#DBDBDB;overflow:hidden;margin-top: 4px;"></div>
</div>
</div>
<% end %> -->
<div id="main" class="<%= sidebar_content? ? 'nosidebar' : 'nosidebar' %>">
<!--header-->
<div id="sidebar">
<%= yield :sidebar %>
<%= view_layouts_base_sidebar_hook_response %>
</div>
<div id="content">
<% if display_main_menu?(@project) %>
<div style="padding-left: 0px">
<div class="header_logo_right">
<%= link_to "项目配置", { :controller => 'projects', :action => 'settings' }, :last => true, :class => "user_setting" %>
<%= link_to "版本库", { :controller => 'repositories', :action => 'show', :repository_id => nil, :path => nil, :rev => nil },
:if => Proc.new { |p| p.repository && !p.repository.new_record? }, :class => "user_setting" %>
<%= link_to "活动", { :controller => 'activities', :action => 'index' }, :class => "user_setting" %>
<%= link_to "项目主页", { :controller => 'projects', :action => 'show' }, :class => "user_setting" %>
</div>
<div class="header_logo_left">
<div style="padding-left: 32px">
<h1><%= page_header_title %></h1>
<table style="padding-top:0px">
<tr>
<td><img src="/images/new/logo_top.png" width="60" height="50"/></td>
<td><% if @project.description.present? %>
<div class="top_description">
<%= textilizable @project.description %>
<% end %>
</div></td>
</tr>
</table>
</div>
</div>
<div style="padding:100px 0px 0px 0px">
<div class="tag_font">
<!-- added by william -for tag -->
<div id="tags">
2013-08-12 20:18:10 +08:00
<%= render :partial => 'tags/tag', :locals => {:obj => @project,:object_flag => "2"}%>
2013-08-01 10:33:49 +08:00
</div>
</div>
<div style="padding-left: 20px ">
<div style="margin:1;width:880px;height:1px;background-color:#DBDBDB;overflow:hidden;margin-bottom: 4px;"></div>
<%= link_to('成员: ', {:controller => 'projects', :action => 'member'}, :class => 'project_infor_tag') %><%= @project.members.count %>
<%= link_to('关注: ', {:controller => 'projects', :action => 'focus'}, :class => 'project_infor_tag') %><%= session[:project_focus_num] %>
<%= link_to('投资者: ',{:controller => 'projects', :action =>'investor'},:class => 'project_infor_tag') %><%= session[:project_investor_num] %>
<%= link_to('缺陷: ',project_issues_path(@project), :class => 'project_infor_tag') %><%= @project.issues.count %>
<%= link_to('任务: ', {:controller =>'projects', :action =>'mission'}, :class => 'project_infor_tag') %><%= session[:project_mission_num] %>
<%= link_to('提交: ', {:controller =>'projects', :action =>'on'}, :class => 'project_infor_tag') %><%= session[:project_on_num] %>
<%= link_to('文件: ', project_files_path(@project), :class => 'project_infor_tag') %><%= @project.attachments.count %>
<div style="margin:1;width:880px;height:1px;background-color:#DBDBDB;overflow:hidden;margin-top: 4px;"></div>
</div>
</div>
<% end %>
<!--by young> <%= render_flash_messages %><-->
<%= yield %>
<%= call_hook :view_layouts_base_content %>
<div style="clear:both;"></div>
<%= render_flash_messages %>
</div>
</div>
</div>
<div id="ajax-indicator" style="display:none;">
<span><%= l(:label_loading) %></span>
</div>
<div id="ajax-modal" style="display:none;"></div>
<div id="footer">
<div class="bgl">
<div class="bgr">
Powered by <%= link_to Redmine::Info.app_name, Redmine::Info.url %> &copy; 2006-2013 Jean-Philippe Lang
</div>
</div>
</div>
</div>
</div>
<%= call_hook :view_layouts_base_body_bottom %>
</body>
</html>