diff --git a/app/models/repository.rb b/app/models/repository.rb index 79ee09901..8020fc5f4 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -23,6 +23,7 @@ class Repository < ActiveRecord::Base raise "Directory #{path} already exists" if exists if new_record? FileUtils.mkdir_p(path) + %w(release updates).each { |subrep| FileUtils.mkdir_p(path + subrep) } elsif unixname_changed? FileUtils.mv(build_path(unixname_was), buildpath(unixname)) end diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml index 43a24d1cf..8c76c4607 100644 --- a/app/views/projects/show.html.haml +++ b/app/views/projects/show.html.haml @@ -7,6 +7,9 @@ = t('layout.projects.git_repo_location') = @project.git_repo_path -= link_to t('layout.projects.back_to_the_list'), platform_repository_path(@repository, @platform) += link_to t('layout.projects.back_to_the_list'), platform_repository_path(@platform, @repository) %br/ = link_to "git-repo", platform_repository_project_repo_path(@platform, @repository, @project) + +%h2 Release +%h2 Updates