2012-03-30 15:54:30 +01:00
|
|
|
-set_meta_tags :title => [title_object(@build_list.project), t('activerecord.models.build_list')]
|
2012-03-18 08:20:31 +00:00
|
|
|
.notify.blue
|
|
|
|
%div{:class => build_list_status_color(@build_list.status)}
|
|
|
|
%p= @build_list.human_status
|
2012-04-24 15:49:46 +01:00
|
|
|
%p= @build_list.updated_at
|
2012-03-18 08:20:31 +00:00
|
|
|
.both
|
2012-05-04 18:12:51 +01:00
|
|
|
= form_for @build_list do |f|
|
|
|
|
%h3= t("layout.build_lists.main_data")
|
|
|
|
.leftlist= t("activerecord.attributes.build_list.container_path")
|
|
|
|
.rightlist
|
|
|
|
- if @build_list.status == BuildList::BUILD_PUBLISHED
|
|
|
|
= t("layout.build_lists.container_published")
|
|
|
|
- elsif @build_list.container_path.present?
|
|
|
|
- container_url = "http://#{request.host_with_port}/downloads#{@build_list.container_path}"
|
|
|
|
= link_to container_url, container_url
|
2012-04-12 11:29:04 +01:00
|
|
|
.both
|
2012-05-04 18:12:51 +01:00
|
|
|
.leftlist= t("activerecord.attributes.build_list.user")
|
|
|
|
.rightlist
|
|
|
|
= link_to @build_list.user.try(:fullname), @build_list.user
|
2012-04-12 15:55:32 +01:00
|
|
|
.both
|
2012-05-15 11:12:07 +01:00
|
|
|
.leftlist= t("activerecord.attributes.build_list.build_for_platform")
|
2012-05-04 18:12:51 +01:00
|
|
|
.rightlist
|
|
|
|
= link_to @build_list.build_for_platform.name, @build_list.build_for_platform
|
|
|
|
.both
|
2012-05-15 11:12:07 +01:00
|
|
|
.leftlist= t("activerecord.attributes.build_list.save_to_platform")
|
2012-05-04 18:12:51 +01:00
|
|
|
.rightlist
|
|
|
|
= link_to @build_list.save_to_platform.name, @build_list.save_to_platform
|
|
|
|
.both
|
|
|
|
.leftlist= t("activerecord.attributes.build_list.include_repos")
|
|
|
|
.rightlist= (@build_list.include_repos||[]).map{|r| Repository.find(r).name}.join(', ')
|
|
|
|
.both
|
|
|
|
.leftlist= t("activerecord.attributes.build_list.update_type")
|
|
|
|
.rightlist
|
|
|
|
- if @build_list.can_publish? and can?(:publish, @build_list)
|
2012-07-03 23:52:13 +01:00
|
|
|
= f.select :update_type, options_for_select(BuildList::RELEASE_UPDATE_TYPES, @build_list.update_type)
|
2012-05-04 18:12:51 +01:00
|
|
|
- else
|
|
|
|
= @build_list.update_type
|
|
|
|
.both
|
|
|
|
.leftlist= t("activerecord.attributes.build_list.build_requires")
|
|
|
|
.rightlist= t("layout.#{@build_list.build_requires}_")
|
|
|
|
.both
|
|
|
|
.leftlist= t("activerecord.attributes.build_list.auto_publish")
|
|
|
|
.rightlist= t("layout.#{@build_list.auto_publish}_")
|
|
|
|
.both
|
|
|
|
.leftlist= t("activerecord.attributes.build_list.project_version")
|
|
|
|
.rightlist= @build_list.project_version
|
|
|
|
.both
|
|
|
|
.leftlist= t("activerecord.attributes.build_list.arch")
|
|
|
|
.rightlist= @build_list.arch.name
|
|
|
|
.both
|
|
|
|
.leftlist= t("activerecord.attributes.build_list.updated_at")
|
|
|
|
.rightlist= @build_list.updated_at
|
|
|
|
.both
|
|
|
|
.leftlist= t("activerecord.attributes.build_list.is_circle")
|
|
|
|
.rightlist= t("layout.#{@build_list.is_circle?}_")
|
|
|
|
.both
|
|
|
|
|
|
|
|
- if @build_list.advisory.present?
|
2012-05-05 18:18:29 +01:00
|
|
|
.leftlist= t("layout.build_lists.attached_advisory")
|
2012-05-04 23:53:45 +01:00
|
|
|
.rightlist= link_to @build_list.advisory.advisory_id, advisory_path(@build_list.advisory)
|
2012-05-04 18:12:51 +01:00
|
|
|
.both
|
|
|
|
- if !@build_list.in_work? && @build_list.started_at
|
|
|
|
%br
|
|
|
|
.leftlist
|
|
|
|
.rightlist= @build_list.human_duration
|
|
|
|
.both
|
|
|
|
- if @build_list.in_work?
|
|
|
|
%br
|
|
|
|
.leftlist
|
|
|
|
.rightlist
|
|
|
|
= "#{@build_list.human_current_duration} / #{@build_list.project.human_average_build_time}"
|
|
|
|
.both
|
|
|
|
|
|
|
|
- if @build_list.can_publish? and @build_list.save_to_platform.released and @build_list.advisory.nil?
|
2012-06-04 20:49:20 +01:00
|
|
|
#advisory_block
|
|
|
|
.leftlist= label_tag :attach_advisory, t("layout.build_lists.attached_advisory")
|
2012-06-18 23:49:17 +01:00
|
|
|
.rightlist
|
2012-07-03 23:52:13 +01:00
|
|
|
= select_tag :attach_advisory, advisories_select_options(@advisories)
|
2012-06-04 20:49:20 +01:00
|
|
|
.both
|
|
|
|
|
2012-07-03 23:52:13 +01:00
|
|
|
#advisory_search_block
|
|
|
|
%h3= t("layout.advisories.search_by_id")
|
|
|
|
.leftlist= label_tag :advisory_search, t("layout.advisories.search_hint")
|
|
|
|
.rightlist
|
|
|
|
%input#advisory_search{:type => 'text'}
|
|
|
|
%p.hint_text= t("layout.advisories.advisory_id_info", :advisory_format => advisory_id_for_hint)
|
|
|
|
.both
|
2012-07-04 12:42:43 +01:00
|
|
|
- %w(advisory_not_found server_error continue_input).each do |el|
|
|
|
|
.info{:class => el}
|
|
|
|
%p= t("layout.advisories.banners.#{el}")
|
|
|
|
|
|
|
|
-#.info.advisory_not_found
|
2012-07-03 23:52:13 +01:00
|
|
|
%p= t("layout.advisories.banners.advisory_not_found")
|
2012-07-04 12:42:43 +01:00
|
|
|
-#.info.server_error
|
2012-07-03 23:52:13 +01:00
|
|
|
%p= t("layout.advisories.banners.server_error")
|
2012-07-04 12:42:43 +01:00
|
|
|
-#.info.continue_input
|
2012-07-03 23:52:13 +01:00
|
|
|
%p= t("layout.advisories.banners.continue_input")
|
|
|
|
|
2012-06-04 20:49:20 +01:00
|
|
|
#new_advisory_form
|
|
|
|
= f.fields_for @build_list.build_advisory do |f|
|
|
|
|
= render :partial => 'advisories/form', :locals => {:f => f}
|
|
|
|
|
|
|
|
#advisory_preview
|
|
|
|
%h3= t("activerecord.models.advisory") << ' '
|
|
|
|
|
|
|
|
.leftlist= t("activerecord.attributes.advisory.description")
|
|
|
|
.rightlist.descr
|
|
|
|
.both
|
|
|
|
|
|
|
|
.leftlist= t("activerecord.attributes.advisory.references")
|
|
|
|
.rightlist.refs
|
|
|
|
.both
|
|
|
|
:javascript
|
|
|
|
$(function() {
|
|
|
|
var r = new Rosa.Routers.BuildListsAdvisoriesRouter();
|
|
|
|
});
|
2012-05-04 18:12:51 +01:00
|
|
|
|
|
|
|
= submit_tag t("layout.publish"), :confirm => t("layout.confirm"), :name => 'publish' if @build_list.can_publish? and can?(:publish, @build_list)
|
|
|
|
= submit_tag t("layout.reject_publish"), :confirm => t("layout.confirm"), :name => 'reject_publish' if @build_list.can_reject_publish? and can?(:reject_publish, @build_list)
|
2012-04-12 15:55:32 +01:00
|
|
|
|
2012-03-18 08:20:31 +00:00
|
|
|
.hr
|
|
|
|
%h3= t("layout.build_lists.items_header")
|
|
|
|
- if @item_groups.blank?
|
|
|
|
%h4.nomargin= t("layout.build_lists.no_items_data")
|
2012-03-01 17:33:46 +00:00
|
|
|
- @item_groups.each_with_index do |group, level|
|
2012-03-18 08:20:31 +00:00
|
|
|
- group.each do |item|
|
|
|
|
%h4.nomargin= "#{item.name} ##{level}"
|
|
|
|
%table.tablesorter.width565{:cellpadding => "0", :cellspacing => "0"}
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th= t("activerecord.attributes.build_list/item.name")
|
|
|
|
%th= t("activerecord.attributes.build_list/item.version")
|
|
|
|
%th= t("activerecord.attributes.build_list/item.status")
|
|
|
|
%tbody
|
|
|
|
%tr{:class => build_list_item_status_color(item.status)}
|
|
|
|
%td= item.name
|
|
|
|
%td= item.version
|
|
|
|
%td= item.human_status
|
|
|
|
.both
|
|
|
|
|
2012-05-14 20:08:31 +01:00
|
|
|
- if @build_list.packages.present?
|
|
|
|
.hr
|
|
|
|
%h3= t("layout.build_lists.packages_header")
|
|
|
|
%table.tablesorter.width565{:cellpadding => "0", :cellspacing => "0"}
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th= t("activerecord.attributes.build_list/package.fullname")
|
|
|
|
%th= t("activerecord.attributes.build_list/package.name")
|
|
|
|
%th= t("activerecord.attributes.build_list/package.version")
|
|
|
|
%th= t("activerecord.attributes.build_list/package.release")
|
|
|
|
%tbody
|
|
|
|
- @build_list.packages.each do |package|
|
|
|
|
%tr
|
|
|
|
%td= package.fullname
|
|
|
|
%td= package.name
|
|
|
|
%td= package.version
|
|
|
|
%td= package.release
|
|
|
|
.both
|
|
|
|
|
2012-03-18 08:20:31 +00:00
|
|
|
:javascript
|
|
|
|
$('article .all').addClass('bigpadding');
|
2012-03-01 17:33:46 +00:00
|
|
|
|
2012-05-02 10:18:07 +01:00
|
|
|
= render 'submenu'
|