2012-09-11 16:30:14 +01:00
|
|
|
-set_meta_tags :title => [title_object(@repository), t('layout.repositories.edit')]
|
2012-09-06 14:43:50 +01:00
|
|
|
= render 'submenu'
|
|
|
|
= render 'sidebar'
|
|
|
|
|
|
|
|
%h3.fix= "#{t("layout.repositories.about")}: #{@repository.name}"
|
|
|
|
|
|
|
|
= form_for @repository, :url => platform_repository_path(@platform, @repository), :html => { :class => :form } do |f|
|
|
|
|
= render "form", :f => f
|
2012-09-11 16:30:14 +01:00
|
|
|
%br
|
|
|
|
|
2013-07-26 15:41:39 +01:00
|
|
|
- if can?(:update, @repository)
|
|
|
|
.hr
|
|
|
|
%h3= t('layout.repositories.extra_actions')
|
|
|
|
|
|
|
|
= link_to t('layout.repositories.regenerate_metadata'),
|
|
|
|
regenerate_metadata_platform_repository_path(@platform, @repository),
|
|
|
|
:method => :put, :confirm => t('layout.confirm'), :class => 'button'
|
|
|
|
|
|
|
|
- if @platform.main?
|
|
|
|
- if @repository.sync_locked?
|
|
|
|
- label = t('layout.repositories.unlock_sync')
|
|
|
|
- path = unlock_sync_platform_repository_path(@platform, @repository)
|
|
|
|
- else
|
|
|
|
- label = t('layout.repositories.lock_sync')
|
|
|
|
- path = lock_sync_platform_repository_path(@platform, @repository)
|
|
|
|
|
|
|
|
= link_to label, path, :method => :put, :confirm => t('layout.confirm'), :class => 'button'
|
|
|
|
.both
|
|
|
|
.hr
|
|
|
|
|
|
|
|
|
2013-06-13 16:56:34 +01:00
|
|
|
|
2013-04-05 20:12:09 +01:00
|
|
|
- if @platform.main?
|
|
|
|
= render "shared/members_table",
|
|
|
|
:remove_members_path => remove_members_platform_repository_path(@platform, @repository),
|
|
|
|
:remove_member_path => remove_member_platform_repository_path(@platform, @repository),
|
|
|
|
:add_member_path => add_member_platform_repository_path(@platform, @repository),
|
|
|
|
:members => @members,
|
|
|
|
:editable_object => @repository
|