abf/abf-ideas#83 rollback some changes
This commit is contained in:
parent
8ba75fe48c
commit
1b119d6249
|
@ -12,21 +12,23 @@
|
||||||
.hr
|
.hr
|
||||||
%h3= t('layout.repositories.extra_actions')
|
%h3= t('layout.repositories.extra_actions')
|
||||||
|
|
||||||
|
= form_for @repository, :url => regenerate_metadata_platform_repository_path(@platform, @repository), :html => { :class => :form, :method => :put } do |f|
|
||||||
.leftlist= t('layout.repositories.regenerate_metadata')
|
.leftlist= t('layout.repositories.regenerate_metadata')
|
||||||
.rightlist= link_to t('layout.repositories.regenerate_metadata'),
|
.rightlist
|
||||||
regenerate_metadata_platform_repository_path(@platform, @repository),
|
= select_tag :build_for_platform_id, options_from_collection_for_select(Platform.main, :id, :name) if @platform.personal?
|
||||||
:method => :put, :confirm => t('layout.confirm'), :class => 'button'
|
= f.submit t('layout.repositories.regenerate_metadata'), :confirm => t('layout.confirm')
|
||||||
|
.both
|
||||||
|
|
||||||
- if @platform.main?
|
- if @platform.main?
|
||||||
.leftlist= t('layout.repositories.sync_lock_file_info')
|
|
||||||
- if @repository.sync_lock_file_exists?
|
- if @repository.sync_lock_file_exists?
|
||||||
- label = t('layout.repositories.remove_sync_lock_file')
|
- label = t('layout.repositories.remove_sync_lock_file')
|
||||||
- path = sync_lock_file_platform_repository_path(@platform, @repository, :remove => true)
|
- path = sync_lock_file_platform_repository_path(@platform, @repository, :remove => true)
|
||||||
- else
|
- else
|
||||||
- label = t('layout.repositories.add_sync_lock_file')
|
- label = t('layout.repositories.add_sync_lock_file')
|
||||||
- path = sync_lock_file_platform_repository_path(@platform, @repository)
|
- path = sync_lock_file_platform_repository_path(@platform, @repository)
|
||||||
|
= form_for @repository, :url => path, :html => { :class => :form, :method => :put } do |f|
|
||||||
.rightlist= link_to label, path, :method => :put, :confirm => t('layout.confirm'), :class => 'button'
|
.leftlist= t('layout.repositories.sync_lock_file_info')
|
||||||
|
.rightlist= f.submit label, :confirm => t('layout.confirm')
|
||||||
.both
|
.both
|
||||||
.hr
|
.hr
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue