[refs #353] divide long string

This commit is contained in:
Alexander Machehin 2012-04-10 00:13:42 +06:00
parent e349a69883
commit 5658707fe1
3 changed files with 8 additions and 4 deletions

View File

@ -8,14 +8,18 @@
%h3=t 'layout.projects.fork_modal_header'
.modal-footer
- if current_user.projects.exists? :name => @project.name
%p.center=raw t 'layout.projects.already_exists', :path => (link_to "#{current_user.uname}/#{@project.name}", project_path(current_user.projects.by_name(@project.name).first.id))
%p.center
=t 'layout.projects.already_exists'
=link_to "#{current_user.uname}/#{@project.name}", project_path(current_user.projects.by_name(@project.name).first.id)
- else
= form_for @project, :url => fork_project_path(@project), :html => { :class => :form, :multipart => true, :method => :post } do |f|
=f.submit t('layout.projects.fork_to', :to => current_user.uname), :class => 'btn btn-primary'
- Group.can_own_project(current_user).each do |group|
.modal-footer
- if group.projects.exists? :name => @project.name
%p.center=raw t 'layout.projects.already_exists', :path => (link_to "#{group.uname}/#{@project.name} (#{t 'activerecord.models.group'})", project_path(group.projects.by_name(@project.name).first.id))
%p.center
=t 'layout.projects.already_exists'
=link_to "#{group.uname}/#{@project.name} (#{t 'activerecord.models.group'})", project_path(group.projects.by_name(@project.name).first.id)
- else
= form_for @project, :url => fork_project_path(@project), :html => { :class => :form, :multipart => true, :method => :post } do |f|
= hidden_field_tag :group, group.id

View File

@ -6,7 +6,7 @@ en:
fork_and_edit: Fork
fork_to: Fork to %{to}
fork_modal_header: Where do you want to fork this project?
already_exists: Already exists project %{path}
already_exists: Already exists project
list: List
list_header: Projects
edit_header: Edit project

View File

@ -6,7 +6,7 @@ ru:
fork_and_edit: Клонировать
fork_to: Клонировать в %{to}
fork_modal_header: Куда Вы хотите клонировать проект?
already_exists: Уже существует проект %{path}
already_exists: Уже существует проект
list: Список
list_header: Проекты
edit_header: Редактировать проект