Merge pull request #368 from warpc/195-new_design_for_projects

[issue #195] Fixed access string in repo block
This commit is contained in:
Vladimir Sharshov 2012-03-31 03:39:52 -07:00
commit 0f597ad544
3 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
.description-top
= text_field_tag :url, git_repo_url(project.git_repo_name), :class => 'name', :spellcheck => 'false', :readonly => true
.role= t("layout.read_write_access")
.role= can?(:write, project) ? t("layout.read_write_access") : t("layout.read_access")
= render :partial => 'projects/branch_select', :locals => {:project => project}
.both
:javascript

View File

@ -9,6 +9,7 @@ en:
enter_commit_message: Commit message
read_write_access: read & write
read_access: read-only
by: by

View File

@ -9,6 +9,7 @@ ru:
enter_commit_message: Сопровождающее сообщение
read_write_access: чтение и запись
read_access: только чтение
by: ''