abf/abf-ideas#83 rollback some changes

This commit is contained in:
Vokhmin Alexey V 2013-08-02 20:46:46 +04:00
parent 8ba75fe48c
commit 1b119d6249
1 changed files with 9 additions and 7 deletions

View File

@ -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