2014-01-21 04:51:49 +00: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}"
|
|
|
|
|
2014-01-21 04:51:49 +00:00
|
|
|
= 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')
|
|
|
|
|
2014-01-21 04:51:49 +00:00
|
|
|
= form_for @repository, url: regenerate_metadata_platform_repository_path(@platform, @repository), html: { class: :form, method: :put } do |f|
|
2013-08-02 17:46:46 +01:00
|
|
|
.leftlist= t('layout.repositories.regenerate_metadata')
|
|
|
|
.rightlist
|
|
|
|
= select_tag :build_for_platform_id, options_from_collection_for_select(Platform.main, :id, :name) if @platform.personal?
|
2014-03-14 21:55:28 +00:00
|
|
|
= f.submit t('layout.repositories.regenerate_metadata'), data: { confirm: t('layout.confirm') }
|
2013-08-02 17:46:46 +01:00
|
|
|
.both
|
2013-07-26 15:41:39 +01:00
|
|
|
|
2013-08-25 16:49:04 +01:00
|
|
|
- if @repository.repository_statuses.present?
|
2014-01-21 04:51:49 +00:00
|
|
|
%table#myTable.tablesorter.platform-repos{cellspacing: "0", cellpadding: "0"}
|
2013-08-25 16:49:04 +01:00
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th= t('activerecord.attributes.regeneration_status.status')
|
|
|
|
%th= t('activerecord.attributes.regeneration_status.last_regenerated_status')
|
2013-08-27 16:43:30 +01:00
|
|
|
%th= t('activerecord.attributes.regeneration_status.last_regenerated_log_sha1')
|
2013-08-25 16:49:04 +01:00
|
|
|
%th= t('activerecord.attributes.regeneration_status.last_regenerated_at')
|
|
|
|
- unless @platform.main?
|
|
|
|
%th= t('activerecord.models.platform')
|
|
|
|
%tbody
|
|
|
|
- @repository.repository_statuses.sort_by{ |s| s.platform.name }.each do |status|
|
2014-01-21 04:51:49 +00:00
|
|
|
%tr{class: cycle('odd', 'even')}
|
2013-08-25 16:49:04 +01:00
|
|
|
%td= t("layout.regeneration_statuses.statuses.#{status.human_status}")
|
|
|
|
%td= t("layout.regeneration_statuses.last_regenerated_statuses.#{status.human_regeneration_status}")
|
2013-08-27 16:48:16 +01:00
|
|
|
%td= link_to_file_store('regeneration.log', status.last_regenerated_log_sha1)
|
2013-08-25 16:49:04 +01:00
|
|
|
%td= status.last_regenerated_at
|
|
|
|
- unless @platform.main?
|
|
|
|
%td= status.platform.name
|
|
|
|
.both
|
|
|
|
|
2013-07-26 15:41:39 +01:00
|
|
|
- if @platform.main?
|
2013-07-29 13:24:41 +01:00
|
|
|
- if @repository.sync_lock_file_exists?
|
|
|
|
- label = t('layout.repositories.remove_sync_lock_file')
|
2014-01-21 04:51:49 +00:00
|
|
|
- path = sync_lock_file_platform_repository_path(@platform, @repository, remove: true)
|
2013-07-26 15:41:39 +01:00
|
|
|
- else
|
2013-07-29 13:24:41 +01:00
|
|
|
- label = t('layout.repositories.add_sync_lock_file')
|
|
|
|
- path = sync_lock_file_platform_repository_path(@platform, @repository)
|
2014-01-21 04:51:49 +00:00
|
|
|
= form_for @repository, url: path, html: { class: :form, method: :put } do |f|
|
2013-08-02 17:46:46 +01:00
|
|
|
.leftlist= t('layout.repositories.sync_lock_file_info')
|
2014-03-14 21:55:28 +00:00
|
|
|
.rightlist= f.submit label, data: { confirm: t('layout.confirm') }
|
2013-07-26 15:41:39 +01:00
|
|
|
.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",
|
2014-01-21 04:51:49 +00:00
|
|
|
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
|