From 4b6b5504cabd144adc9fed212c553c668173b645 Mon Sep 17 00:00:00 2001 From: huang Date: Mon, 28 Mar 2016 14:11:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=97=E6=96=97=E6=A1=86=E6=9E=B6=EF=BC=88?= =?UTF-8?q?=E6=9C=AA=E5=AE=8C=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/organizations_controller.rb | 2 +- app/views/layouts/base_org_newstyle.html.erb | 584 +++++++++++++----- public/images/org_new_style/bg.jpg | Bin 0 -> 55689 bytes public/images/org_new_style/bg2.jpg | Bin 0 -> 31668 bytes public/images/org_new_style/con-left1.jpg | Bin 0 -> 6345 bytes public/images/org_new_style/con-left2.jpg | Bin 0 -> 4417 bytes public/images/org_new_style/con-right.gif | Bin 0 -> 1894 bytes public/images/org_new_style/detailimg1.jpg | Bin 0 -> 50723 bytes public/images/org_new_style/detailimg2.jpg | Bin 0 -> 33550 bytes public/images/org_new_style/detailimg3.jpg | Bin 0 -> 22446 bytes public/images/org_new_style/detailimg4.jpg | Bin 0 -> 32803 bytes .../org_new_style/header-background.jpg | Bin 0 -> 134016 bytes public/images/org_new_style/icons.png | Bin 0 -> 39862 bytes public/images/org_new_style/img1.jpg | Bin 0 -> 27550 bytes public/images/org_new_style/img2.jpg | Bin 0 -> 25093 bytes public/images/org_new_style/logo.jpg | Bin 0 -> 16979 bytes public/images/org_new_style/pic1.jpg | Bin 0 -> 57968 bytes public/images/org_new_style/pic2.jpg | Bin 0 -> 54611 bytes public/images/org_new_style/pic3.jpg | Bin 0 -> 34750 bytes public/images/org_new_style/slide1.png | Bin 0 -> 235600 bytes public/images/org_new_style/slide2.png | Bin 0 -> 232903 bytes public/stylesheets/org_new_style.css | 182 ++++++ 22 files changed, 604 insertions(+), 164 deletions(-) create mode 100644 public/images/org_new_style/bg.jpg create mode 100644 public/images/org_new_style/bg2.jpg create mode 100644 public/images/org_new_style/con-left1.jpg create mode 100644 public/images/org_new_style/con-left2.jpg create mode 100644 public/images/org_new_style/con-right.gif create mode 100644 public/images/org_new_style/detailimg1.jpg create mode 100644 public/images/org_new_style/detailimg2.jpg create mode 100644 public/images/org_new_style/detailimg3.jpg create mode 100644 public/images/org_new_style/detailimg4.jpg create mode 100644 public/images/org_new_style/header-background.jpg create mode 100644 public/images/org_new_style/icons.png create mode 100644 public/images/org_new_style/img1.jpg create mode 100644 public/images/org_new_style/img2.jpg create mode 100644 public/images/org_new_style/logo.jpg create mode 100644 public/images/org_new_style/pic1.jpg create mode 100644 public/images/org_new_style/pic2.jpg create mode 100644 public/images/org_new_style/pic3.jpg create mode 100644 public/images/org_new_style/slide1.png create mode 100644 public/images/org_new_style/slide2.png create mode 100644 public/stylesheets/org_new_style.css diff --git a/app/controllers/organizations_controller.rb b/app/controllers/organizations_controller.rb index 6cd55be39..68bcd2b22 100644 --- a/app/controllers/organizations_controller.rb +++ b/app/controllers/organizations_controller.rb @@ -29,7 +29,7 @@ class OrganizationsController < ApplicationController helper :issues include UsersHelper before_filter :find_organization, :only => [:show, :members, :apply_subdomain, :select_org_layout] - layout 'base_org' + layout 'base_org_newstyle' def index end diff --git a/app/views/layouts/base_org_newstyle.html.erb b/app/views/layouts/base_org_newstyle.html.erb index 0296d20b4..bdfec084f 100644 --- a/app/views/layouts/base_org_newstyle.html.erb +++ b/app/views/layouts/base_org_newstyle.html.erb @@ -1,6 +1,3 @@ -<% @nav_dispaly_project_label = 1 - @nav_dispaly_forum_label = 1 %> -<%#@nav_dispaly_project_label = 1 %> @@ -12,8 +9,8 @@ <%= favicon %> <%= javascript_heads %> <%= heads_for_theme %> - <%= stylesheet_link_tag 'pleft','prettify','jquery/jquery-ui-1.9.2','header','new_user','repository','courses','org', 'share' %> - <%= javascript_include_tag 'cookie','project', 'organization','header','prettify','select_list_move','org'%> + <%= stylesheet_link_tag 'org_new_style' %> + <%= javascript_include_tag 'org'%> <%= javascript_include_tag 'attachments' %> <%= call_hook :view_layouts_base_html_head %> @@ -29,138 +26,434 @@ showMathMenuMSIE: false, tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]} }); - + + + -
-
- -
    - - <% if User.current.logged? %> - - - <% else %> - - - <% end %> -
- -
-
-
-
-
-
- - - - - -
- <%= link_to truncate(@organization.name,:length => 26), organization_path(@organization.id), :class=>"pr_info_name c_dark fb break_word" %> - <% if User.current.logged? %> - <% if @organization.is_public? %> - <%= l(:label_public)%> - <% else %> - <%= l(:label_private)%> - <% end %> - <% end %> -
- - <% if User.current.admin_of_org?(@organization) %> - 配置 - <% end %> - - - - - - - - - - -
-
- <%= 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 %> -
-
-
- <%= render :partial => "organizations/org_left_subfield_list", :locals => {:organization => @organization} %> -
-
访问计数 <%= @organization.visits.to_i %>
-
-
- <%= render_flash_messages %> - <%= yield %> - <%= call_hook :view_layouts_base_content %> -
-
-
-
- - -
-