diff --git a/app/views/git/shared/_fork.html.haml b/app/views/git/shared/_fork.html.haml index 001100dbb..899a711d0 100644 --- a/app/views/git/shared/_fork.html.haml +++ b/app/views/git/shared/_fork.html.haml @@ -1,2 +1,4 @@ - if can? :fork, @project - .r#fork-and-edit= link_to t('layout.projects.fork_and_edit'), fork_project_path(@project), :method => :post, :confirm => t("layout.confirm"), :class => 'button' \ No newline at end of file + .r#fork-and-edit= link_to t('layout.projects.fork_and_edit'), fork_project_path(@project), :method => :post, :confirm => t("layout.confirm"), :class => 'button' +- if can? :create, @project.build_lists.new + .r{:style => "display: block"}= link_to t('layout.projects.new_build_list'), new_project_build_list_path(@project), :class => 'button' diff --git a/config/locales/models/project.en.yml b/config/locales/models/project.en.yml index f2380d9f8..11f4df34b 100644 --- a/config/locales/models/project.en.yml +++ b/config/locales/models/project.en.yml @@ -10,6 +10,7 @@ en: show: Project build: Build new_build: New build %{project_name} + new_build_list: New build confirm_delete: Are you sure you want to delete this project? new: New project location: Location diff --git a/config/locales/models/project.ru.yml b/config/locales/models/project.ru.yml index 762cb9f82..ae9a75c7a 100644 --- a/config/locales/models/project.ru.yml +++ b/config/locales/models/project.ru.yml @@ -10,6 +10,7 @@ ru: show: Проект build: Собрать new_build: Новая сборка %{project_name} + new_build_list: Новая сборка confirm_delete: Вы уверены, что хотите удалить этот проект? new: Новый проект location: Расположение