rosa-build/app/helpers/projects_helper.rb

11 lines
249 B
Ruby
Raw Normal View History

2012-01-30 20:39:34 +00:00
# -*- encoding : utf-8 -*-
2011-03-10 11:35:46 +00:00
module ProjectsHelper
2011-11-22 18:58:23 +00:00
def git_repo_url(name)
if current_user
"http://#{current_user.uname}@#{request.host_with_port}/#{name}.git"
else
"http://#{request.host_with_port}/#{name}.git"
end
end
2011-03-10 11:35:46 +00:00
end