From 897eabd57a7e5cb6c1633ab3931bfe871e0706f8 Mon Sep 17 00:00:00 2001 From: ouyangxuhua Date: Wed, 13 Jan 2016 16:21:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BF=AB=E6=8D=B7=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E6=9D=83=E9=99=90=E9=97=AE=E9=A2=98=E5=8F=8A=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/org_subfields_controller.rb | 2 +- app/views/files/_subfield_files.html.erb | 2 +- .../files/_upload_subfield_file.html.erb | 16 +++--- app/views/layouts/_user_courses.html.erb | 51 +++++++++++++------ app/views/layouts/_user_projects.html.erb | 6 +-- app/views/layouts/new_base_user.html.erb | 2 +- config/routes.rb | 2 +- public/stylesheets/share.css | 1 + 8 files changed, 49 insertions(+), 33 deletions(-) diff --git a/app/controllers/org_subfields_controller.rb b/app/controllers/org_subfields_controller.rb index 465bf1208..6bd6ecbf0 100644 --- a/app/controllers/org_subfields_controller.rb +++ b/app/controllers/org_subfields_controller.rb @@ -23,7 +23,7 @@ class OrgSubfieldsController < ApplicationController @organization = Organization.find(params[:id]) @org_subfield = OrgSubfield.find_by_sql("select distinct org_subfields.* from org_subfields,"+ "subfield_subdomain_dirs where org_subfields.id = subfield_subdomain_dirs.org_subfield_id and "+ - " org_subfields.organization_id=#{@organization.id} and subfield_subdomain_dirs.name='#{params[:name]}'").first + " org_subfields.organization_id=#{@organization.id} and subfield_subdomain_dirs.name='#{params[:sub_dir_name]}'").first if @org_subfield.field_type == 'Post' redirect_to organization_path(@organization, :org_subfield_id => @org_subfield.id) end diff --git a/app/views/files/_subfield_files.html.erb b/app/views/files/_subfield_files.html.erb index 1a222780e..6da0caccb 100644 --- a/app/views/files/_subfield_files.html.erb +++ b/app/views/files/_subfield_files.html.erb @@ -78,7 +78,7 @@