This commit is contained in:
yanxd 2014-07-09 14:38:52 +08:00
parent 449b87e38d
commit 38b3e86e62
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ class RepositoriesController < ApplicationController
@course_tag = params[:course]
project_path_cut = RepositoriesHelper::PROJECT_PATH_CUT
ip = RepositoriesHelper::REPO_IP_ADDRESS
@repos_url = "http://"+@repository.login.to_s+"_"+@repository.identifier.to_s+"@"+ip+
@repos_url = "http://"+@repository.login.to_s+"_"+@repository.identifier.to_s+"@"+ip.to_s+
@repository.url.slice(project_path_cut, @repository.url.length).to_s
if @course_tag == 1
render :action => 'show', :layout => 'base_courses'