Skip to content

Commit

Permalink
Merge pull request #1174 from andreas-schwab/master
Browse files Browse the repository at this point in the history
[webui] Fix format_projectname for home:foo
  • Loading branch information
bgeuken committed Sep 29, 2015
2 parents a3a2c41 + d058f11 commit e18fbec
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/api/app/helpers/webui/webui_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,12 @@ def format_projectname(prjname, login)
splitted = prjname.split(':', 3)
if splitted[0] == 'home'
if login and splitted[1] == login
if splitted.length == 2
prjname = '~'
else
prjname = '~:' + splitted[-1]
end
prjname = '~'
else
prjname = '~' + splitted[1] + ':' + splitted[-1]
prjname = '~' + splitted[1]
end
if splitted.length > 2
prjname += ':' + splitted[-1]
end
end
prjname
Expand Down

0 comments on commit e18fbec

Please sign in to comment.