[refs #2161] Fix some links and save method into personal repos
This commit is contained in:
parent
a6be1b4b1c
commit
4e9e418c66
|
@ -14,13 +14,13 @@ module PersonalRepository
|
|||
pl.platform_type = 'personal'
|
||||
pl.distrib_type = 'mandriva2011'
|
||||
pl.visibility = 'open'
|
||||
pl.save
|
||||
pl.save!
|
||||
|
||||
rep = pl.repositories.build
|
||||
rep.owner = pl.owner
|
||||
rep.name = 'main'
|
||||
rep.unixname = 'main'
|
||||
rep.save
|
||||
rep.save!
|
||||
end
|
||||
|
||||
def personal_platform
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
%ul.wat-cf
|
||||
%li.first= link_to t("layout.personal_repositories.show"), personal_repository_path(@repository)
|
||||
%li.active= link_to t("layout.personal_repositories.settings"), settings_personal_repository_path(@repository)
|
||||
%li= link_to t("layout.personal_repositories.private_users"), platform_private_users_path(@repository.platform) if @repository.platform.hidden?
|
||||
.content
|
||||
%h2.title= t("layout.personal_repositories.settings_header")
|
||||
.inner
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
%ul.wat-cf
|
||||
%li.first.active= link_to t("layout.personal_repositories.show"), personal_repository_path(@repository)
|
||||
%li= link_to t("layout.personal_repositories.settings"), settings_personal_repository_path(@repository)
|
||||
%li= link_to t("layout.personal_repositories.private_users"), platform_private_users_path(@repository.platform) if @repository.platform.hidden?
|
||||
.content
|
||||
.inner
|
||||
%p
|
||||
|
|
|
@ -146,6 +146,7 @@ ru:
|
|||
change_visibility_from_open: Сменить статус на "Приватный"
|
||||
settings: Настройки
|
||||
show: Мой репозиторий
|
||||
private_users: Пользователи приватного репозитория
|
||||
|
||||
products:
|
||||
list: Список
|
||||
|
|
Loading…
Reference in New Issue