diff --git a/app/views/bids/_bid_show.html.erb b/app/views/bids/_bid_show.html.erb index 5b3747b12..696443f02 100644 --- a/app/views/bids/_bid_show.html.erb +++ b/app/views/bids/_bid_show.html.erb @@ -26,9 +26,9 @@ <%= l(:label_x_homework_project, :count => bid.biding_projects.count) %>(<%= link_to bid.biding_projects.count, project_for_bid_path(bid) %>) <%= l(:label_x_responses, :count => bid.commit) %>(<%= link_to bid.commit, respond_path(bid) %>) <%= l(:label_x_followers, :count => bid.watcher_users.count) %>(<%= link_to bid.watcher_users.count, respond_path(bid) %>) - <% unless bid.courses.empty? %> - <% teacher = Course.find_by_extra(bid.courses.first.identifier).teacher %> - + <% unless bid.courses.empty? %> + <% teacher = Course.find_by_extra(bid.courses.first.identifier).teacher %> + 课程名称:<%= link_to bid.courses.first.name, project_path(bid.courses.first)%>  教师:<%= link_to teacher.lastname+teacher.firstname, user_path(teacher) %> <% end %> diff --git a/app/views/projects/_new_join.html.erb b/app/views/projects/_new_join.html.erb index ca06715f3..34aa0cda5 100644 --- a/app/views/projects/_new_join.html.erb +++ b/app/views/projects/_new_join.html.erb @@ -13,7 +13,7 @@ border: 1px solid rgb(148, 148, 148); box-shadow: none; text-shadow: none; - margin-top: -10px; + /*margin-top: -10px;*/ /*margin-right: -4px;*/ } input[type="button"].bid_btn { @@ -28,7 +28,7 @@ border: 1px solid rgb(148, 148, 148); box-shadow: none; text-shadow: none; - margin-top: -10px; + /*margin-top: -10px;*/ margin-right: -2px; } textarea:focus { @@ -44,11 +44,15 @@ :remote => true, :method => :post, :id => 'new-watcher-form') do %> + + + - <%= text_field_tag 'course_password', nil, :size => 48%> - -

- <%= submit_tag '加入', :name => nil, :class => "bid_btn", :onclick => "hideModal(this);" %> +

+ +
+ <%= text_field_tag 'course_password', nil, :size => 30%> + <%= submit_tag '加入', :name => nil, :class => "bid_btn", :onclick => "hideModal(this);" %> <%= submit_tag l(:button_cancel), :name => nil, :class => "bid_btn", :onclick => "hideModal(this);", :type => 'button' %> -

+
<% end %>