diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb index 1bb831843..14919d79a 100644 --- a/app/helpers/users_helper.rb +++ b/app/helpers/users_helper.rb @@ -110,13 +110,13 @@ module UsersHelper else case state when 0 - s = content_tag('span', '我加入的课程', :class => "current-page") + s = content_tag('span', l(:label_my_course), :class => "current-page") content << content_tag('li', s) content << content_tag('li', link_to('我的作业', {:controller => 'users', :action => 'user_courses', :type => 1})) content_tag('div', content, :class => "pagination") when 1 s = content_tag('span', '我的作业', :class => "current-page") - content << content_tag('li', link_to('我加入的课程', {:controller => 'users', :action => 'user_courses', :type => 0})) + content << content_tag('li', link_to(l(:label_my_course), {:controller => 'users', :action => 'user_courses', :type => 0})) content << content_tag('li', s, :class => "current-page") content_tag('div', content, :class => "pagination") end diff --git a/app/views/account/register.html.erb b/app/views/account/register.html.erb index 48b4641a7..f1d97d7a4 100644 --- a/app/views/account/register.html.erb +++ b/app/views/account/register.html.erb @@ -257,7 +257,7 @@ - + diff --git a/app/views/bids/_bid_homework_show.html.erb b/app/views/bids/_bid_homework_show.html.erb index cea2165d4..eb992840d 100644 --- a/app/views/bids/_bid_homework_show.html.erb +++ b/app/views/bids/_bid_homework_show.html.erb @@ -15,7 +15,7 @@ <% if bid.reward_type.nil? or bid.reward_type == 1 %> <%= l(:label_bids_reward_method) %><%= l(:label_call_bonus) %> <%= l(:label_RMB_sign) %> <%= bid.budget%> <% elsif bid.reward_type == 2 %> <%= l(:label_bids_reward_method) %><%= bid.budget%> <% else %> - + <% end %> diff --git a/app/views/bids/_homework.html.erb b/app/views/bids/_homework.html.erb index 3d6ded4fc..a4ebdea25 100644 --- a/app/views/bids/_homework.html.erb +++ b/app/views/bids/_homework.html.erb @@ -11,7 +11,7 @@ <% if User.current.logged? && (!Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.nil? && (Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.roles&Role.where('id = ? or id = ?', 5, 7)).size >0) %>
- <%= toggle_link l(:button_bidding_homework), 'put-bid-form' %> + <%= toggle_link l(:button_submit_homework), 'put-bid-form' %>
<% elsif @homework_list.empty? %>
暂无学生提交作业!
diff --git a/app/views/bids/show.html.erb b/app/views/bids/show.html.erb index 977c35b67..2565b72bc 100644 --- a/app/views/bids/show.html.erb +++ b/app/views/bids/show.html.erb @@ -20,8 +20,8 @@ <%= @bid.budget%> <% else %> - <%= l(:label_bids_reward_method) %> - <%= l(:label_bids_credit) %> <%= @bid.budget%> <%= l(:label_bids_credit_number) %> + <% end %> diff --git a/app/views/layouts/base_homework.html.erb b/app/views/layouts/base_homework.html.erb index e3e47eaf6..94985a3fa 100644 --- a/app/views/layouts/base_homework.html.erb +++ b/app/views/layouts/base_homework.html.erb @@ -33,9 +33,9 @@
- +
- + diff --git a/app/views/projects/_course_form.html.erb b/app/views/projects/_course_form.html.erb index 9b794f22a..d53edec95 100644 --- a/app/views/projects/_course_form.html.erb +++ b/app/views/projects/_course_form.html.erb @@ -180,7 +180,7 @@ <% end %> <% end %> -
<%= h @bid.name %><%= h @bid.name %>
<%= watcher_link(@bid, User.current) %> + <% unless @course.nil? %> <% if @course.term == l(:label_spring) %>

@@ -226,8 +226,8 @@ <% end %>

- - + + <% end %>

<%= f.text_field :project_type, :value => 1 %>

diff --git a/app/views/projects/new.html.erb b/app/views/projects/new.html.erb index 027559317..c724eb124 100644 --- a/app/views/projects/new.html.erb +++ b/app/views/projects/new.html.erb @@ -5,13 +5,13 @@
<%= render :partial => 'course_form', :locals => { :f => f } %> <%= submit_tag l(:button_create) %> - <%= submit_tag l(:button_create_and_continue), :name => 'course_continue' %> + <% else %>

<%=l(:label_project_new)%>

<%= render :partial => 'form', :locals => { :f => f } %> <%= submit_tag l(:button_create) %> - <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> + <% end %> <%= javascript_tag "$('#project_name').focus();" %>
diff --git a/config/locales/zh.yml b/config/locales/zh.yml index 42969b631..1678e35d3 100644 --- a/config/locales/zh.yml +++ b/config/locales/zh.yml @@ -508,6 +508,7 @@ zh: label_new_contest: 竞赛 label_requirement_focus: 关注需求 label_developer: 用户 + label_account_developer: 开发者 label_enterprise_into: 进入企业 label_college_into: 进入高校 label_investor: 投资人: @@ -905,7 +906,7 @@ zh: button_check_all: 全选 button_uncheck_all: 清除 button_delete: 删除 - button_create: 创建 + button_create: 提交 #bai button_create_and_continue: 创建并继续 button_test: 测试 button_edit: 编辑 @@ -914,7 +915,7 @@ zh: button_change: 修改 button_apply: 查询 - button_clear: 取消查询 + button_clear: 清除留言 button_clear_requirement: 取消 button_lock: 锁定 button_unlock: 解锁 @@ -1285,7 +1286,7 @@ zh: field_enterprise: '企业:' button_bidding_homework: 参加竞标 #huang - field_homework_type: 作业类型 + field_homework_type: 提交形式 #bai label_homework_respond: 作业情况 label_bid_me: 我要应标 @@ -1515,7 +1516,7 @@ zh: label_user_create_project: 创建了 #added by bai label_identity: 身份 - label_teacher: 教 师 + label_teacher: 教师 label_teacher_homework: 教师姓名 label_student: 学生 label_other: 其他 @@ -1534,6 +1535,9 @@ zh: label_course_time: 课程年度 label_i_new_activity: 有了新活动在 label_choose_course: 选择课程 + button_submit_homework: 提交作业 + label_my_course: 我的课程 + button_submit_bid: 参与竞标 #end diff --git a/db/migrate/20131009074454_change_student_id_type.rb b/db/migrate/20131009074454_change_student_id_type.rb new file mode 100644 index 000000000..083463307 --- /dev/null +++ b/db/migrate/20131009074454_change_student_id_type.rb @@ -0,0 +1,9 @@ +class ChangeStudentIdType < ActiveRecord::Migration + def up + change_column :user_extensions, :student_id, :string + end + + def down + raise ActiveRecord::IrreversibleMigration + end +end diff --git a/db/schema.rb b/db/schema.rb index 595967ae9..fcd95793e 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20130929011921) do +ActiveRecord::Schema.define(:version => 20131009074454) do create_table "a_user_watchers", :force => true do |t| t.string "name" @@ -699,7 +699,7 @@ ActiveRecord::Schema.define(:version => 20130929011921) do t.datetime "updated_at", :null => false t.integer "identity" t.string "technical_title" - t.integer "student_id" + t.string "student_id" t.string "teacher_realname" t.string "student_realname" t.string "location_city" diff --git a/public/themes/redpenny-master/stylesheets/application.css b/public/themes/redpenny-master/stylesheets/application.css index e7983e74c..f5ccc53d5 100644 --- a/public/themes/redpenny-master/stylesheets/application.css +++ b/public/themes/redpenny-master/stylesheets/application.css @@ -372,7 +372,7 @@ ul.projects li.root { background-color:#fff; /*顶层导航颜色*/ color: #fff; - font-size:15px; + font-size:13px; /* bai */ font-family: 微软雅黑; position:relative; padding:0;