介绍页

This commit is contained in:
cxt 2019-03-23 16:18:06 +08:00
parent 550dcc1948
commit 5b078e1a04
6 changed files with 52 additions and 6 deletions

View File

@ -27,6 +27,7 @@ class WelcomeController < ApplicationController
def index
# 企业版定制: params[:project]为传过来的参数
=begin
redirect_to signin_path
return
unless params[:organization].nil?
@ -87,7 +88,8 @@ class WelcomeController < ApplicationController
@projects = @projects_all.order("score desc")
end
end
=end
render :layout => 'base_introduce'
rescue Exception => e
render_404
end

View File

@ -1,12 +1,16 @@
<div class="content_Intruduce">
<div class="in_head">
<p class="clearfix">
<%=link_to image_tag("../images/nav_logo.png",width:"30px"),user_activities_path(User.current.id),:class=>"fl mt10 ml20" %>
<%=link_to image_tag("../images/nav_logo.png",width:"30px"), home_path(),:class=>"fl mt10 ml20" %>
<span class="colorWhite ml10 fl mt15">Trustie</span>
<span class="fr mt15">
<a href="http://forge.trustie.net/forums/1/memos/1168" target="_blank" class="colorWhite mr20">帮助中心</a>
<a href="<%= signin_url_without_domain %>" class="colorWhite mr20">登录</a>
<a href="<%= register_url_without_domain %>" class="colorWhite mr20">注册</a>
<% if User.current.logged? %>
<%=link_to image_tag(url_to_avatar(User.current), width:"30px", class: "portraitRadius"), user_activities_path(User.current), :class=>"mr20" %>
<% else %>
<a href="<%= signin_url_without_domain %>" class="colorWhite mr20">登录</a>
<a href="<%= register_url_without_domain %>" class="colorWhite mr20">注册</a>
<% end %>
</span>
</p>
<p class="in_head_rederect">

View File

@ -1,6 +1,6 @@
<div class="navHomepage">
<div class="navHomepageLogo fl">
<%=link_to image_tag("../images/nav_logo.png",width:"51px", height: "45px",class: "mt3"), user_activities_path(User.current.id)%>
<%=link_to image_tag("../images/nav_logo.png",width:"51px", height: "45px",class: "mt3"), home_path()%>
</div>
<div class="fl">
<ul>

View File

@ -1,6 +1,6 @@
<div class="navHomepage">
<div class="navHomepageLogo fl">
<%= link_to image_tag("../images/nav_logo.png",width:"51px", height: "45px",class: "mt3"), signin_path %>
<%= link_to image_tag("../images/nav_logo.png",width:"51px", height: "45px",class: "mt3"), home_path %>
</div>
<div class="fl">
<ul>

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<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 %>
<%= call_hook :view_layouts_base_html_head %>
<%= stylesheet_link_tag 'css/common', 'css/structure', 'css/public', :media => 'all' %>
<%= javascript_include_tag "jquery.leanModal.min" %>
<!-- page specific tags -->
<%= yield :header_tags -%>
</head>
<!--add by huang-->
<body onload="prettyPrint();">
<div class="">
<%= yield %>
</div>
<div class="cl"></div>
<%= render :partial => 'layouts/footer' %>
<div class="cl"></div>
<%= render :partial => 'layouts/new_feedback' %>
<div id="ajax-modal" style="display:none;"></div>
<%= call_hook :view_layouts_base_body_bottom %>
</body>
</html>

View File

@ -1,3 +1,4 @@
<% if false %>
<% @nav_dispaly_forum_label = 1 %>
<%= stylesheet_link_tag 'welcome' %>
<%= javascript_include_tag 'welcome' %>
@ -156,3 +157,7 @@
<div class="clearfix"></div>
<%= render partial: 'link_to_another' %>
<% end %>
<%= render partial: 'account/introduce' %>