网站两边空白颜色调整、网站导航栏调整、admin账户新建用户bug修复
This commit is contained in:
parent
057447f810
commit
bd43ef5d61
|
@ -507,7 +507,7 @@ class UsersController < ApplicationController
|
||||||
@user.password = @user.password_confirmation = nil
|
@user.password = @user.password_confirmation = nil
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html { render :action => 'new' }
|
format.html { render :action => 'new',:layout => "base" }
|
||||||
format.api { render_validation_errors(@user) }
|
format.api { render_validation_errors(@user) }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
<% @nav_dispaly_home_path_label = 1
|
||||||
|
@nav_dispaly_main_course_label = 1
|
||||||
|
@nav_dispaly_main_project_label = 1
|
||||||
|
@nav_dispaly_main_contest_label = 1 %>
|
||||||
|
<% @nav_dispaly_forum_label = 1%>
|
||||||
<%= call_hook :view_account_login_top %>
|
<%= call_hook :view_account_login_top %>
|
||||||
|
|
||||||
<script type="text/javascript" language="javascript">
|
<script type="text/javascript" language="javascript">
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
<% @nav_dispaly_home_path_label = 1
|
||||||
|
@nav_dispaly_main_course_label = 1
|
||||||
|
@nav_dispaly_main_project_label = 1
|
||||||
|
@nav_dispaly_main_contest_label = 1 %>
|
||||||
|
<% @nav_dispaly_forum_label = 1%>
|
||||||
<h3><%=l(:label_password_lost)%></h3>
|
<h3><%=l(:label_password_lost)%></h3>
|
||||||
|
|
||||||
<%= form_tag(lost_password_path) do %>
|
<%= form_tag(lost_password_path) do %>
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
<% @nav_dispaly_home_path_label = 1
|
||||||
|
@nav_dispaly_main_course_label = 1
|
||||||
|
@nav_dispaly_main_project_label = 1
|
||||||
|
@nav_dispaly_main_contest_label = 1 %>
|
||||||
|
<% @nav_dispaly_forum_label = 1%>
|
||||||
<!-- added by bai 增加地区-->
|
<!-- added by bai 增加地区-->
|
||||||
<script type="text/javascript" language="javascript">
|
<script type="text/javascript" language="javascript">
|
||||||
function showcity(province, cityField) {
|
function showcity(province, cityField) {
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
<%
|
||||||
|
@nav_dispaly_contest_label = 1
|
||||||
|
@nav_dispaly_store_all_label = 1
|
||||||
|
@nav_dispaly_forum_label = 1
|
||||||
|
%>
|
||||||
<!-- fq -->
|
<!-- fq -->
|
||||||
<!-- modified by huang -->
|
<!-- modified by huang -->
|
||||||
<div class="top-content">
|
<div class="top-content">
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
<%
|
||||||
|
@nav_dispaly_contest_label = 1
|
||||||
|
@nav_dispaly_store_all_label = 1
|
||||||
|
@nav_dispaly_forum_label = 1
|
||||||
|
%>
|
||||||
<!-- fq -->
|
<!-- fq -->
|
||||||
<h3><%=l(:label_new_call)%></h3>
|
<h3><%=l(:label_new_call)%></h3>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
<% @nav_dispaly_home_path_label = 1
|
||||||
|
@nav_dispaly_main_course_label = 1
|
||||||
|
@nav_dispaly_main_project_label = 1
|
||||||
|
@nav_dispaly_main_contest_label = 1 %>
|
||||||
<!-- added by fq -->
|
<!-- added by fq -->
|
||||||
<div class="top-content">
|
<div class="top-content">
|
||||||
<table width="940px">
|
<table width="940px">
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
<% @nav_dispaly_home_path_label = 1
|
||||||
|
@nav_dispaly_main_course_label = 1
|
||||||
|
@nav_dispaly_main_project_label = 1
|
||||||
|
@nav_dispaly_main_contest_label = 1 %>
|
||||||
|
<% @nav_dispaly_forum_label = 1%>
|
||||||
<!-- added by fq -->
|
<!-- added by fq -->
|
||||||
<h3><%= l :label_forum_new %></h1>
|
<h3><%= l :label_forum_new %></h1>
|
||||||
|
|
||||||
|
|
|
@ -2,29 +2,29 @@
|
||||||
request.headers['REQUEST_URI'] = "" if request.headers['REQUEST_URI'].nil?
|
request.headers['REQUEST_URI'] = "" if request.headers['REQUEST_URI'].nil?
|
||||||
realUrl = request.original_url
|
realUrl = request.original_url
|
||||||
if (realUrl.match(/.*forge\.trustie\.net\/*/))
|
if (realUrl.match(/.*forge\.trustie\.net\/*/))
|
||||||
@nav_dispaly_project_label = 1
|
#@nav_dispaly_project_label = 1
|
||||||
@nav_dispaly_forum_label = 1
|
#@nav_dispaly_forum_label = 1
|
||||||
elsif (realUrl.match(/.*course\.trustie\.net\/*/))
|
elsif (realUrl.match(/.*course\.trustie\.net\/*/))
|
||||||
@nav_dispaly_course_all_label = 1
|
#@nav_dispaly_course_all_label = 1
|
||||||
@nav_dispaly_forum_label = 1
|
#@nav_dispaly_forum_label = 1
|
||||||
@nav_dispaly_course_label = nil
|
#@nav_dispaly_course_label = nil
|
||||||
@nav_dispaly_store_all_label = 1
|
#@nav_dispaly_store_all_label = 1
|
||||||
elsif (realUrl.match(/.*user\.trustie\.net\/*/))
|
elsif (realUrl.match(/.*user\.trustie\.net\/*/))
|
||||||
@nav_dispaly_home_path_label = 1
|
#@nav_dispaly_home_path_label = 1
|
||||||
@nav_dispaly_main_course_label = 1
|
#@nav_dispaly_main_course_label = 1
|
||||||
@nav_dispaly_main_project_label = 1
|
#@nav_dispaly_main_project_label = 1
|
||||||
@nav_dispaly_main_contest_label = 1
|
#@nav_dispaly_main_contest_label = 1
|
||||||
elsif (realUrl.match(/.*contest\.trustie\.net\/*/))
|
elsif (realUrl.match(/.*contest\.trustie\.net\/*/))
|
||||||
@nav_dispaly_contest_label = 1
|
#@nav_dispaly_contest_label = 1
|
||||||
@nav_dispaly_store_all_label = 1
|
#@nav_dispaly_store_all_label = 1
|
||||||
else
|
else
|
||||||
@nav_dispaly_project_all_label = 1
|
#@nav_dispaly_project_all_label = 1
|
||||||
@nav_dispaly_course_all_label = 1
|
#@nav_dispaly_course_all_label = 1
|
||||||
@nav_dispaly_forum_label = 1
|
#@nav_dispaly_forum_label = 1
|
||||||
@nav_dispaly_bid_label = 1
|
#@nav_dispaly_bid_label = 1
|
||||||
@nav_dispaly_contest_label = 1
|
#@nav_dispaly_contest_label = 1
|
||||||
@nav_dispaly_store_all_label = 1
|
#@nav_dispaly_store_all_label = 1
|
||||||
@nav_dispaly_user_label = 1
|
#@nav_dispaly_user_label = 1
|
||||||
end
|
end
|
||||||
%>
|
%>
|
||||||
<div id="top-menu" style="background-color: #15bccf;height:40px;margin-top: 10px;margin-bottom: 10px;">
|
<div id="top-menu" style="background-color: #15bccf;height:40px;margin-top: 10px;margin-bottom: 10px;">
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
<% @nav_dispaly_home_path_label = 1
|
||||||
|
@nav_dispaly_main_course_label = 1
|
||||||
|
@nav_dispaly_main_project_label = 1
|
||||||
|
@nav_dispaly_main_contest_label = 1 %>
|
||||||
|
<% @nav_dispaly_forum_label = 1%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="<%= current_language %>">
|
<html lang="<%= current_language %>">
|
||||||
<head>
|
<head>
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
<% @nav_dispaly_bid_label = 1 %>
|
|
||||||
|
<% @nav_dispaly_forum_label = 1
|
||||||
|
@nav_dispaly_bid_label = 1 %>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
<% @nav_dispaly_contest_label = 1 %>
|
<%
|
||||||
|
@nav_dispaly_contest_label = 1
|
||||||
|
@nav_dispaly_store_all_label = 1
|
||||||
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
<% #@nav_dispaly_course_label = 1 %>
|
<% @nav_dispaly_course_all_label = 1
|
||||||
|
@nav_dispaly_forum_label = 1
|
||||||
|
@nav_dispaly_course_label = nil
|
||||||
|
@nav_dispaly_store_all_label = 1 %>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
<% @nav_dispaly_home_path_label = 1
|
||||||
|
@nav_dispaly_main_course_label = 1
|
||||||
|
@nav_dispaly_main_project_label = 1
|
||||||
|
@nav_dispaly_main_contest_label = 1 %>
|
||||||
<% @nav_dispaly_forum_label = 1%>
|
<% @nav_dispaly_forum_label = 1%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
<% @nav_dispaly_course_label = 1 %>
|
<% @nav_dispaly_course_all_label = 1
|
||||||
|
@nav_dispaly_forum_label = 1
|
||||||
|
@nav_dispaly_course_label = nil
|
||||||
|
@nav_dispaly_store_all_label = 1 %>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
<% @nav_dispaly_home_path_label = 1
|
||||||
|
@nav_dispaly_main_course_label = 1
|
||||||
|
@nav_dispaly_main_project_label = 1
|
||||||
|
@nav_dispaly_main_contest_label = 1 %>
|
||||||
<% @nav_dispaly_forum_label = 1%>
|
<% @nav_dispaly_forum_label = 1%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
<% @nav_dispaly_contest_label = 1 %>
|
<%
|
||||||
|
@nav_dispaly_contest_label = 1
|
||||||
|
@nav_dispaly_store_all_label = 1
|
||||||
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
<% @nav_dispaly_project_label = 1
|
||||||
|
@nav_dispaly_forum_label = 1 %>
|
||||||
<% #@nav_dispaly_project_label = 1 %>
|
<% #@nav_dispaly_project_label = 1 %>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
<% @nav_dispaly_home_path_label = 1
|
||||||
|
@nav_dispaly_main_course_label = 1
|
||||||
|
@nav_dispaly_main_project_label = 1
|
||||||
|
@nav_dispaly_main_contest_label = 1 %>
|
||||||
|
<% @nav_dispaly_forum_label = 1%>
|
||||||
<% @nav_dispaly_user_label = show_item_on_navbar(params) %>
|
<% @nav_dispaly_user_label = show_item_on_navbar(params) %>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
<% @nav_dispaly_home_path_label = 1
|
||||||
|
@nav_dispaly_main_course_label = 1
|
||||||
|
@nav_dispaly_main_project_label = 1
|
||||||
|
@nav_dispaly_main_contest_label = 1 %>
|
||||||
|
<% @nav_dispaly_forum_label = 1%>
|
||||||
<!-- <h1>New memo</h1> -->
|
<!-- <h1>New memo</h1> -->
|
||||||
<%= javascript_include_tag "ckeditor/ckeditor.js" %>
|
<%= javascript_include_tag "ckeditor/ckeditor.js" %>
|
||||||
<div class="top-content">
|
<div class="top-content">
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
<% @nav_dispaly_home_path_label = 1
|
||||||
|
@nav_dispaly_main_course_label = 1
|
||||||
|
@nav_dispaly_main_project_label = 1
|
||||||
|
@nav_dispaly_main_contest_label = 1 %>
|
||||||
|
<% @nav_dispaly_forum_label = 1%>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(
|
$(document).ready(
|
||||||
function () {
|
function () {
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
<% @nav_dispaly_project_label = 1
|
||||||
|
@nav_dispaly_forum_label = 1 %>
|
||||||
<%= labelled_form_for @project do |f| %>
|
<%= labelled_form_for @project do |f| %>
|
||||||
<!--Added by young-->
|
<!--Added by young-->
|
||||||
<% if @course_tag == '1' %>
|
<% if @course_tag == '1' %>
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
<% @nav_dispaly_home_path_label = 1
|
||||||
|
@nav_dispaly_main_course_label = 1
|
||||||
|
@nav_dispaly_main_project_label = 1
|
||||||
|
@nav_dispaly_main_contest_label = 1 %>
|
||||||
|
<% @nav_dispaly_forum_label = 1%>
|
||||||
<!-- modified by huang -->
|
<!-- modified by huang -->
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function searchUser(){
|
function searchUser(){
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
<% @nav_dispaly_home_path_label = 1
|
||||||
|
@nav_dispaly_main_course_label = 1
|
||||||
|
@nav_dispaly_main_project_label = 1
|
||||||
|
@nav_dispaly_main_contest_label = 1 %>
|
||||||
|
<% @nav_dispaly_forum_label = 1%>
|
||||||
<h3><%= link_to l(:label_user_plural), users_path %> » <%=l(:label_user_new)%></h3>
|
<h3><%= link_to l(:label_user_plural), users_path %> » <%=l(:label_user_new)%></h3>
|
||||||
|
|
||||||
<%= labelled_form_for @user do |f| %>
|
<%= labelled_form_for @user do |f| %>
|
||||||
|
|
|
@ -80,9 +80,9 @@
|
||||||
<tr>
|
<tr>
|
||||||
<% if act.reward_type ==3 %>
|
<% if act.reward_type ==3 %>
|
||||||
<% if e.user == User.current%>
|
<% if e.user == User.current%>
|
||||||
<td colspan="2" valign="top"><strong> <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %></strong><span class="font_lighter"><%= l(:label_i_new_activity) %></span> <%= link_to format_activity_title("#{l(:label_active_homework)}##{act.id}:#{act.name}"), respond_path(e.act_id) %></td>
|
<td colspan="2" valign="top"><strong> <%= link_to("#{l(:label_i)}", user_path(e.user_id)) %></strong><span class="font_lighter"><%= l(:label_i_new_activity) %></span> <%= link_to format_activity_title("#{l(:label_active_homework)}##{act.id}:#{act.name}"), respond_path(e.act_id),host: Setting.course_domain%></td>
|
||||||
<% else %>
|
<% else %>
|
||||||
<td colspan="2" valign="top"><strong><%= link_to(h(e.user), user_path(e.user_id)) %></strong> <span class="font_lighter"><%= l(:label_new_activity) %></span> <%= link_to format_activity_title("#{l(:label_active_homework)}##{act.id}:#{act.name}"), respond_path(e.act_id) %></td>
|
<td colspan="2" valign="top"><strong><%= link_to(h(e.user), user_path(e.user_id)) %></strong> <span class="font_lighter"><%= l(:label_new_activity) %></span> <%= link_to format_activity_title("#{l(:label_active_homework)}##{act.id}:#{act.name}"), respond_path(e.act_id),host: Setting.course_domain %></td>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<% if e.user == User.current%>
|
<% if e.user == User.current%>
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
<%
|
||||||
|
@nav_dispaly_contest_label = 1
|
||||||
|
@nav_dispaly_store_all_label = 1
|
||||||
|
%>
|
||||||
<%= stylesheet_link_tag 'welcome' %>
|
<%= stylesheet_link_tag 'welcome' %>
|
||||||
<script type="text/javascript" language="javascript">
|
<script type="text/javascript" language="javascript">
|
||||||
function clearInfo(id, content) {
|
function clearInfo(id, content) {
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
<% @nav_dispaly_course_all_label = 1
|
||||||
|
@nav_dispaly_forum_label = 1
|
||||||
|
@nav_dispaly_course_label = nil
|
||||||
|
@nav_dispaly_store_all_label = 1 %>
|
||||||
<%= stylesheet_link_tag 'welcome' %>
|
<%= stylesheet_link_tag 'welcome' %>
|
||||||
<%= javascript_include_tag 'welcome' %>
|
<%= javascript_include_tag 'welcome' %>
|
||||||
<script type="text/javascript" language="javascript" xmlns="http://www.w3.org/1999/html"
|
<script type="text/javascript" language="javascript" xmlns="http://www.w3.org/1999/html"
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
<% @nav_dispaly_project_label = 1
|
||||||
|
@nav_dispaly_forum_label = 1 %>
|
||||||
<%= stylesheet_link_tag 'welcome' %>
|
<%= stylesheet_link_tag 'welcome' %>
|
||||||
<%= javascript_include_tag 'welcome' %>
|
<%= javascript_include_tag 'welcome' %>
|
||||||
<script type="text/javascript" language="javascript">
|
<script type="text/javascript" language="javascript">
|
||||||
|
|
|
@ -50,7 +50,7 @@ only screen and (min-device-pixel-ratio: 2) {
|
||||||
|
|
||||||
body,#wrapper
|
body,#wrapper
|
||||||
{
|
{
|
||||||
background-color:#fff; /*整体背景色ecfffb*/
|
background-color:#F6F7F8;/*fff整体背景色ecfffb*/
|
||||||
font-family:'微软雅黑',Helvetica,Arial,"Lucida Grande",verdana,sans-serif
|
font-family:'微软雅黑',Helvetica,Arial,"Lucida Grande",verdana,sans-serif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue