[refs #223] Add new build btn to project page

This commit is contained in:
konstantin.grabar 2012-04-10 17:07:09 +04:00
parent 207be85ff4
commit 3cff036508
3 changed files with 5 additions and 1 deletions

View File

@ -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'
.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'

View File

@ -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

View File

@ -10,6 +10,7 @@ ru:
show: Проект
build: Собрать
new_build: Новая сборка %{project_name}
new_build_list: Новая сборка
confirm_delete: Вы уверены, что хотите удалить этот проект?
new: Новый проект
location: Расположение