Build published
+2012-01-27 17:28:05 UTC
+Основные данные
+Основные данные
+Build items
+Item #0
+ +Name | +Version | +Status | +
---|---|---|
libreoffice | +latest_mandriva2011 | +Build complete | +
diff --git a/app/assets/stylesheets/design/custom.scss b/app/assets/stylesheets/design/custom.scss index 99815ecb6..57eca03b1 100644 --- a/app/assets/stylesheets/design/custom.scss +++ b/app/assets/stylesheets/design/custom.scss @@ -463,6 +463,31 @@ table.tablesorter tr td.buttons a span.delete { #fork-and-edit {display:block;} +.notify.blue div.success { + border: 1px solid #bad099; + background: #d7e599; + float: left; +} + +div.notify.blue div.error { + float: left; + border: 1px solid #ddd; + background-color: #FBE3E4; + border-color: #FBC2C4; +} + +div.notify.blue div.nocolor { + float: left; + border: 1px solid #a9c6dd; +} + +div.notify.blue div.red { + float: left; + border: 1px solid #ddd; + background-color: #FBE3E4; + border-color: #FBC2C4; +} + a.button.left_floated { display: inline-block; float: left; @@ -590,3 +615,7 @@ div.right.bigpadding div.command_select div.rightlist textarea { width: 430px; height: 50px; } + +div.rightlist textarea.resizable { + resize: both; +} diff --git a/app/assets/stylesheets/design/main.scss b/app/assets/stylesheets/design/main.scss index b7837e899..db24fd9b3 100644 --- a/app/assets/stylesheets/design/main.scss +++ b/app/assets/stylesheets/design/main.scss @@ -440,7 +440,7 @@ article a.button { background-image: linear-gradient(top, #68a3d8, #125687); filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#68a3d8', EndColorStr='#125687'); border: 1px solid #5084b4; - padding: 4px 20px; + padding: 4px 20px 6px; margin: 0; font-size: 12px; text-decoration: none; @@ -509,7 +509,7 @@ article input[type="submit"] { background-image: linear-gradient(top, #68a3d8, #125687); filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#68a3d8', EndColorStr='#125687'); border: 1px solid #5084b4; - padding: 0px 20px 0px; + padding: 3px 20px 5px; margin: 0; font-size: 12px; text-decoration: none; @@ -519,7 +519,6 @@ article input[type="submit"] { border-radius: 5px; text-align: center; height: auto; - height: 28px; width: auto; font-family: Tahoma; } @@ -1590,6 +1589,10 @@ table td.width145 { width: 145px; } +.width125 { + width: 125px; +} + table td.width30 { width: 30px; } @@ -1949,6 +1952,14 @@ table tbody tr.success td { background: #e3edb7; } +table.tablesorter.width565 { + width: 565px; +} + +table.tablesorter thead th { + padding-left: 5px; +} + /* Create group */ div.right-error { @@ -2108,6 +2119,22 @@ article div.rightlist div.load { padding: 5px 10px; } +.notify.blue { + border: 1px solid #a9c6dd; + background: #dcecfa; + border-radius: 1px; + width: 555px; + margin-top: 20px; + text-align: right; + padding: 5px; +} + +.notify.blue div.green { + border: 1px solid #bad099; + background: #d7e599; + float: left; +} + /* Pagination */ div.pagination em { @@ -2212,3 +2239,9 @@ div.width400.rmargin55 { div.tmargin10 { margin-top: 10px; } + +/*My projects*/ + +article h3 a { + font-size: 14px; +} diff --git a/app/controllers/activity_feeds_controller.rb b/app/controllers/activity_feeds_controller.rb index e5b5274d8..ff03a16e4 100644 --- a/app/controllers/activity_feeds_controller.rb +++ b/app/controllers/activity_feeds_controller.rb @@ -2,6 +2,10 @@ class ActivityFeedsController < ApplicationController before_filter :authenticate_user! def index - @activity_feeds = current_user.activity_feeds.order('created_at DESC').limit(10) + @filter = t('feed_menu').has_key?(params[:filter].try(:to_sym)) ? params[:filter].to_sym : :all + @activity_feeds = current_user.activity_feeds + @activity_feeds = @activity_feeds.where(:kind => "ActivityFeed::#{@filter.upcase}".constantize) unless @filter == :all + + @activity_feeds = @activity_feeds.paginate :page => params[:page] end end diff --git a/app/helpers/build_lists_helper.rb b/app/helpers/build_lists_helper.rb index c5ca9fe91..ec670a549 100644 --- a/app/helpers/build_lists_helper.rb +++ b/app/helpers/build_lists_helper.rb @@ -1,13 +1,24 @@ -# -*- encoding : utf-8 -*- module BuildListsHelper - - def build_list_status(build_list) - if [BuildList::BUILD_PUBLISHED, BuildServer::SUCCESS].include? build_list.status - "success" - elsif [BuildServer::BUILD_ERROR, BuildServer::PLATFORM_NOT_FOUND, BuildServer::PROJECT_NOT_FOUND, - BuildServer::PROJECT_VERSION_NOT_FOUND, BuildList::FAILED_PUBLISH].include? build_list.status - "error" + def build_list_status_color(status) + if [BuildList::BUILD_PUBLISHED, BuildServer::SUCCESS].include? status + return 'success' end + if [BuildServer::BUILD_ERROR, BuildServer::PLATFORM_NOT_FOUND, + BuildServer::PROJECT_NOT_FOUND,BuildServer::PROJECT_VERSION_NOT_FOUND, BuildList::FAILED_PUBLISH].include? status + return 'error' + end + + 'nocolor' end - -end \ No newline at end of file + + def build_list_item_status_color(status) + if BuildServer::SUCCESS == status + return 'success' + end + if [BuildServer::DEPENDENCIES_ERROR, BuildServer::BUILD_ERROR, BuildList::Item::GIT_ERROR].include? status + return 'error' + end + + '' + end +end diff --git a/app/helpers/commit_helper.rb b/app/helpers/commit_helper.rb index 26cbc061b..c1ff9402f 100644 --- a/app/helpers/commit_helper.rb +++ b/app/helpers/commit_helper.rb @@ -33,7 +33,7 @@ module CommitHelper end def shortest_hash_id(id) - id[0..8] + id[0..9] end def short_commit_message(message) diff --git a/app/models/activity_feed.rb b/app/models/activity_feed.rb index 934ef56ea..3bd57217c 100644 --- a/app/models/activity_feed.rb +++ b/app/models/activity_feed.rb @@ -1,9 +1,19 @@ class ActivityFeed < ActiveRecord::Base - belongs_to :user + CODE = ['git_delete_branch_notification', 'git_new_push_notification', 'new_comment_commit_notification'] + TRACKER = ['issue_assign_notification', 'new_comment_notification', 'new_issue_notification'] + BUILD = ['build_list_notification'] + WIKI = ['wiki_new_commit_notification'] + + belongs_to :user serialize :data + default_scope order('created_at DESC') + + self.per_page = 10 + def partial 'activity_feeds/partials/' + self.kind end + end diff --git a/app/models/activity_feed_observer.rb b/app/models/activity_feed_observer.rb index 1c9185aee..b5c356421 100644 --- a/app/models/activity_feed_observer.rb +++ b/app/models/activity_feed_observer.rb @@ -1,5 +1,5 @@ class ActivityFeedObserver < ActiveRecord::Observer - observe :issue, :comment, :user + observe :issue, :comment, :user, :build_list def after_create(record) case record.class.to_s @@ -128,6 +128,21 @@ class ActivityFeedObserver < ActiveRecord::Observer :project_id => record.project.id, :project_name => record.project.name, :project_owner => record.project.owner.uname} ) end + + when 'BuildList' + if [BuildList::BUILD_PUBLISHED, BuildServer::SUCCESS, BuildServer::BUILD_ERROR, BuildServer::PLATFORM_NOT_FOUND, + BuildServer::PROJECT_NOT_FOUND, BuildServer::PROJECT_VERSION_NOT_FOUND, BuildList::FAILED_PUBLISH].include? record.status or + (record.status == BuildList::BUILD_PENDING && record.bs_id_changed?) + record.project.owner_and_admin_ids.each do |recipient| + ActivityFeed.create( + :user => User.find(recipient), + :kind => 'build_list_notification', + :data => {:task_num => record.bs_id, :build_list_id => record.id, :status => record.status, :notified_at => record.notified_at, + :project_id => record.project_id, :project_name => record.project.name, :project_owner => record.project.owner.uname, + :user_name => record.user.name, :user_email => record.user.email, :user_id => record.user_id} + ) + end + end end end diff --git a/app/models/project.rb b/app/models/project.rb index f0e6bc84d..eb41ea381 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -262,7 +262,7 @@ class Project < ActiveRecord::Base end def write_hook - is_production = ENV['RAILS_ENV'] == 'production' + is_production = Rails.env == "production" hook = File.join(::Rails.root.to_s, 'tmp', "post-receive-hook") FileUtils.cp(File.join(::Rails.root.to_s, 'bin', "post-receive-hook.partial"), hook) File.open(hook, 'a') do |f| diff --git a/app/views/activity_feeds/_feed_tabs.html.haml b/app/views/activity_feeds/_feed_tabs.html.haml new file mode 100644 index 000000000..e1e9af45d --- /dev/null +++ b/app/views/activity_feeds/_feed_tabs.html.haml @@ -0,0 +1,5 @@ +.sub-menu + %nav + %ul + - (collection = t 'feed_menu').each do |base, title| + %li= link_to title, activity_feeds_path(:filter => base), :class => @filter == base ? 'active' : '' diff --git a/app/views/activity_feeds/index.html.haml b/app/views/activity_feeds/index.html.haml index 4ea9e88fa..9fdf04cca 100644 --- a/app/views/activity_feeds/index.html.haml +++ b/app/views/activity_feeds/index.html.haml @@ -2,5 +2,9 @@ - @activity_feeds.each do |activity_feed| .activity = render_activity_feed(activity_feed) +- if @activity_feeds.next_page + %a{:href => activity_feeds_path({:filter => @filter, :page => @activity_feeds.next_page})} + .messages.messages-last=t('layout.activity_feed.load_messages') - content_for :sidebar, render('sidebar') +- content_for :feed_tabs, render('feed_tabs') diff --git a/app/views/activity_feeds/partials/_build_list_notification.haml b/app/views/activity_feeds/partials/_build_list_notification.haml new file mode 100644 index 000000000..aa6ddebd7 --- /dev/null +++ b/app/views/activity_feeds/partials/_build_list_notification.haml @@ -0,0 +1,19 @@ +.top + .image + = image_tag(avatar_url_by_email(user_email, :small), :alt => 'avatar') + .text + %span + = raw t('notifications.bodies.build_task', :task_num => task_num, :task_link => build_list_path(build_list_id)) + = raw t('notifications.bodies.project', :project_link => link_to("#{project_owner}/#{project_name}", project_path(project_id)) ) + - message, error = case status + - when BuildList::BUILD_PENDING + - ['pending', nil] + - when BuildList::BUILD_PUBLISHED + - ['published', nil] + - when BuildServer::SUCCESS + - ['success', nil] + - else ['failed', t("layout.build_lists.statuses.#{BuildList::HUMAN_STATUSES[status]}")] + = raw t("notifications.bodies.build_status.#{message}", :error => error) + .both + %span.date= notified_at + .both diff --git a/app/views/activity_feeds/partials/_git_new_push_notification.haml b/app/views/activity_feeds/partials/_git_new_push_notification.haml index 43948fcb0..6d5488015 100644 --- a/app/views/activity_feeds/partials/_git_new_push_notification.haml +++ b/app/views/activity_feeds/partials/_git_new_push_notification.haml @@ -11,6 +11,6 @@ .both %span.subject - last_commits.each do |commit| - = link_to commit[0], commit_path(project_id, commit[0]) + = link_to shortest_hash_id(commit[0]), commit_path(project_id, commit[0]) = commit[1] %br diff --git a/app/views/build_lists/_build_list.html.haml b/app/views/build_lists/_build_list.html.haml index 67a70608b..04443371e 100644 --- a/app/views/build_lists/_build_list.html.haml +++ b/app/views/build_lists/_build_list.html.haml @@ -1,4 +1,4 @@ -%tr{:id => "row#{build_list_counter}", :class => "#{build_list_status(build_list)}"} +%tr{:id => "row#{build_list_counter}", :class => "#{build_list_status_color(build_list.status)}"} %td= link_to (build_list.bs_id.present? ? build_list.bs_id : t("layout.build_lists.bs_id_not_set")), build_list %td= build_list.human_status %td= link_to build_list.project.name, build_list.project @@ -6,4 +6,4 @@ %td= build_list.arch.name %td= link_to build_list.user.try(:fullname), build_list.user %td= link_to image_tag('x.png', :class => 'delete-row', :id => "delete-row#{build_list_counter}"), cancel_build_list_path(build_list), :method => :put, :confirm => t('layout.confirm') if build_list.can_cancel? and can?(:cancel, build_list) - %td= build_list.notified_at \ No newline at end of file + %td= build_list.notified_at diff --git a/app/views/build_lists/_submenu.html.haml b/app/views/build_lists/_submenu.html.haml index 06ade1465..e329b7afb 100644 --- a/app/views/build_lists/_submenu.html.haml +++ b/app/views/build_lists/_submenu.html.haml @@ -1,7 +1,11 @@ - content_for :submenu do - - if content_for?(:sidebar) + - if @build_list .left - %nav - %ul - %li= link_to t('layout.projects.list_header'), build_lists_path, :class => (params[:controller] == 'build_lists' ? 'active' : nil) - %li= link_to t('layout.products.list_header'), '#' \ No newline at end of file + = @build_list.project.name + - else + - if content_for?(:sidebar) + .left + %nav + %ul + %li= link_to t('layout.projects.list_header'), build_lists_path, :class => (params[:controller] == 'build_lists' ? 'active' : nil) + %li= link_to t('layout.products.list_header'), '#' diff --git a/app/views/build_lists/show.html.haml b/app/views/build_lists/show.html.haml index 486d3afd6..02f0fa4ca 100644 --- a/app/views/build_lists/show.html.haml +++ b/app/views/build_lists/show.html.haml @@ -1,81 +1,78 @@ -%table.columns2.info - %tr - %td.first= t("activerecord.attributes.build_list.name") - %td= @build_list.present? ? @build_list.name : t("layout.build_lists.name_not_yet_defined") - %tr - %td= t("activerecord.attributes.build_list.bs_id") - %td= @build_list.bs_id - %tr - %td= t("activerecord.attributes.build_list.container_path") - %td - - 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 - %tr - %td= t("activerecord.attributes.build_list.bpl") - %td= link_to @build_list.bpl.name, @build_list.bpl - %tr - %td= t("activerecord.attributes.build_list.pl") - %td= link_to @build_list.pl.name, @build_list.pl - %tr - %td= t("activerecord.attributes.build_list.include_repos") - %td= (@build_list.include_repos||[]).map{|r| Repository.find(r).name}.join(', ') - %tr - %td= t("activerecord.attributes.build_list.update_type") - %td= @build_list.update_type - %tr - %td= t("activerecord.attributes.build_list.build_requires") - %td= @build_list.build_requires - %tr - %td= t("activerecord.attributes.build_list.auto_publish") - %td= @build_list.auto_publish - %tr - %td= t("activerecord.attributes.build_list.status") - %td= @build_list.human_status - %tr - %td= t("activerecord.attributes.build_list.project") - %td= link_to @build_list.project.name, project_path(@build_list.project) - %tr - %td= t("activerecord.attributes.build_list.project_version") - %td= @build_list.project_version - %tr - %td= t("activerecord.attributes.build_list.arch") - %td= @build_list.arch.name - %tr - %td= t("activerecord.attributes.build_list.user") - %td= link_to @build_list.user.try(:fullname), @build_list.user - %tr - %td= t("activerecord.attributes.build_list.notified_at") - %td= @build_list.notified_at - %tr - %td= t("activerecord.attributes.build_list.is_circle") - %td= t("layout.#{@build_list.is_circle?}_") - -%br -%br - -= link_to t("layout.publish"), publish_build_list_path(@build_list), :method => "put", :confirm => t("layout.confirm"), :class => "button" if @build_list.can_publish? and can?(:publish, @build_list) - -%br -%br - -%h2= t("layout.build_lists.items_header") -= t("layout.build_lists.no_items_data") if @item_groups.blank? - +.notify.blue + %div{:class => build_list_status_color(@build_list.status)} + %p= @build_list.human_status + %p 2012-01-27 17:28:05 UTC + .both +%h3= t("layout.build_lists.main_data") +.leftside.width125= t("activerecord.attributes.build_list.container_path") +.leftside + - 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 +.both +.leftside.width125= t("activerecord.attributes.build_list.user") +.leftside + = link_to @build_list.user.try(:fullname), @build_list.user +.both += link_to t("layout.publish"), publish_build_list_path(@build_list), :method => "put", :confirm => t("layout.confirm"), :class => "button tmargin10" if @build_list.can_publish? and can?(:publish, @build_list) +.hr +%h3= t("layout.build_lists.main_data") +.leftside.width125= t("activerecord.attributes.build_list.bpl") +.leftside + = link_to @build_list.bpl.name, @build_list.bpl +.both +.leftside.width125= t("activerecord.attributes.build_list.pl") +.leftside + = link_to @build_list.pl.name, @build_list.pl +.both +.leftside.width125= t("activerecord.attributes.build_list.include_repos") +.leftside= (@build_list.include_repos||[]).map{|r| Repository.find(r).name}.join(', ') +.both +.leftside.width125= t("activerecord.attributes.build_list.update_type") +.leftside= @build_list.update_type +.both +.leftside.width125= t("activerecord.attributes.build_list.build_requires") +.leftside= @build_list.build_requires +.both +.leftside.width125= t("activerecord.attributes.build_list.auto_publish") +.leftside= @build_list.auto_publish +.both +.leftside.width125= t("activerecord.attributes.build_list.project_version") +.leftside= @build_list.project_version +.both +.leftside.width125= t("activerecord.attributes.build_list.arch") +.leftside= @build_list.arch.name +.both +.leftside.width125= t("activerecord.attributes.build_list.notified_at") +.leftside= @build_list.notified_at +.both +.leftside.width125= t("activerecord.attributes.build_list.is_circle") +.leftside= t("layout.#{@build_list.is_circle?}_") +.both +.hr +%h3= t("layout.build_lists.items_header") +- if @item_groups.blank? + %h4.nomargin= t("layout.build_lists.no_items_data") - @item_groups.each_with_index do |group, level| - %h3.title Level ##{level} - %table.columns3.info - %tr - %th.first= t("activerecord.attributes.build_list/item.name") - %th= t("activerecord.attributes.build_list/item.version") - %th.last= t("activerecord.attributes.build_list/item.status") + -#%h4.nomargin= "#{group} ##{level}" + - 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 - - group.each do |item| - %tr{:class => cycle("odd", "even")} - %td= item.name - %td= item.version - %td= item.human_status +:javascript + $('article .all').addClass('bigpadding'); = render 'build_lists/submenu' diff --git a/app/views/devise/registrations/new.html.haml b/app/views/devise/registrations/new.html.haml index 19bebe4d4..5fb9371d6 100644 --- a/app/views/devise/registrations/new.html.haml +++ b/app/views/devise/registrations/new.html.haml @@ -21,11 +21,11 @@ .both .left=t('activerecord.attributes.user.password') .right - = f.text_field :password, :id => 'password', :class => "registartion-input #{password_error ? 'registartion-input-error' : ''}" + = f.password_field :password, :id => 'password', :class => "registartion-input #{password_error ? 'registartion-input-error' : ''}" .both .left=t('activerecord.attributes.user.password_confirm') .right - = f.text_field :password_confirmation, :id => 'password2', :class => "registartion-input #{password_error ? 'registartion-input-error' : ''}" + = f.password_field :password_confirmation, :id => 'password2', :class => "registartion-input #{password_error ? 'registartion-input-error' : ''}" .both .in =f.submit t("layout.devise.shared_links.sign_up"), :class => 'button', :id => 'btnLogin' diff --git a/app/views/issues/_manage_sidebar.html.haml b/app/views/issues/_manage_sidebar.html.haml index 6cbb2cf42..ce7969ed6 100644 --- a/app/views/issues/_manage_sidebar.html.haml +++ b/app/views/issues/_manage_sidebar.html.haml @@ -1,5 +1,5 @@ -content_for :sidebar do - - can_manage = can? :write, @issue.project + - can_manage = can?(:update, @issue) && @issue.persisted? || @issue.new_record? - if @issue.persisted? .bordered.nopadding %h3=t('activerecord.attributes.issue.status') @@ -22,7 +22,7 @@ .name="#{@issue.user.uname} (#{@issue.user.name})" =hidden_field_tag "user-0", @issue.user.id, :name => 'issue[user_id]' .both - - else + - elsif @issue.user .people.nopointer .avatar=image_tag avatar_url(@issue.user), :alt => 'avatar' .name="#{@issue.user.uname} (#{@issue.user.name})" diff --git a/app/views/issues/show.html.haml b/app/views/issues/show.html.haml index d382b3279..97e39954e 100644 --- a/app/views/issues/show.html.haml +++ b/app/views/issues/show.html.haml @@ -16,7 +16,7 @@ .fulltext.view.issue_body=@issue.body .both %br -- if can? :write, @issue.project +- if can? :update, @issue =link_to t('layout.edit'), '#', :id => 'edit_issue_content', :class => 'button' =form_for :issue, :url => [@project, @issue], :method => :put, :html => { :class => 'edit_form issue', :style => 'display:none;' } do |f| .leftlist= t('activerecord.attributes.issue.title') + ':' diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 23c58d426..678acb6ba 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -37,6 +37,8 @@ .sub-menu= yield :submenu .both = render "layouts/flashes" + - if content_for?(:feed_tabs) + = yield :feed_tabs %article - if content_for?(:sidebar) %aside= yield :sidebar diff --git a/app/views/products/_form.html.haml b/app/views/products/_form.html.haml index b3dbc07b5..9a48fdc40 100644 --- a/app/views/products/_form.html.haml +++ b/app/views/products/_form.html.haml @@ -3,23 +3,23 @@ .both .leftlist= f.label :description, t("activerecord.attributes.product.description"), :class => :label -.rightlist= f.text_area :description, :class => 'text_field', :cols => 80 +.rightlist= f.text_area :description, :class => 'text_field resizable', :cols => 80 .both .leftlist= f.label :build_script, t("activerecord.attributes.product.build_script"), :class => :label -.rightlist= f.text_area :build_script, :class => 'text_field', :cols => 80 +.rightlist= f.text_area :build_script, :class => 'text_field resizable', :cols => 80 .both .leftlist= f.label :counter, t("activerecord.attributes.product.counter"), :class => :label -.rightlist= f.text_area :counter, :class => 'text_field', :cols => 80 +.rightlist= f.text_area :counter, :class => 'text_field resizable', :cols => 80 .both .leftlist= f.label :ks, t("activerecord.attributes.product.ks"), :class => :label -.rightlist= f.text_area :ks, :class => 'text_field', :cols => 80 +.rightlist= f.text_area :ks, :class => 'text_field resizable', :cols => 80 .both .leftlist= f.label :menu, t("activerecord.attributes.product.menu"), :class => :label -.rightlist= f.text_area :menu, :class => 'text_field', :cols => 80 +.rightlist= f.text_area :menu, :class => 'text_field resizable', :cols => 80 .both %p diff --git a/config/locales/menu.en.yml b/config/locales/menu.en.yml index 3d425bd3c..c3ce11650 100644 --- a/config/locales/menu.en.yml +++ b/config/locales/menu.en.yml @@ -27,5 +27,11 @@ en: wiki: Wiki readme: Readme settings: Settings + feed_menu: + all: All + code: Code + tracker: Tracker + build: Build + wiki: Wiki platform_menu: settings: Settings diff --git a/config/locales/menu.ru.yml b/config/locales/menu.ru.yml index 48f1f9be7..776a9cd5d 100644 --- a/config/locales/menu.ru.yml +++ b/config/locales/menu.ru.yml @@ -27,5 +27,11 @@ ru: wiki: Wiki readme: Readme settings: Настройки + feed_menu: + all: Все + code: Код + tracker: Трекер + build: Сборка + wiki: Вики platform_menu: settings: Настройки diff --git a/config/locales/models/activity_feed.en.yml b/config/locales/models/activity_feed.en.yml index 474ee3feb..8b3c5cad6 100644 --- a/config/locales/models/activity_feed.en.yml +++ b/config/locales/models/activity_feed.en.yml @@ -7,6 +7,7 @@ en: all_my_builds: All my builds my_builds_by_day: My today builds new_project: Create project + load_messages: Load messages notifications: subjects: @@ -23,7 +24,6 @@ en: content: in issue %{issue_link} commit_content: in commit %{commit_link} new_issue_notification: '%{user_link} has been added a new issue' - ussue: issue new_user_notification: title: Hello, %{user_name}. content: You have been sign up to project «ROSA Build System» and now can sign in. @@ -33,7 +33,12 @@ en: wiki_new_commit_notification: '%{user_link} has been updated %{history_link}' invite_approve_notification: Invite to ABF project: in project %{project_link} - delete_branch: Branch %{branch_name} has been deleted create_branch: '%{user_link} has been created a new branch %{branch_name}' - update_branch: '%{user_link} has been pushed to branch %{branch_name}' \ No newline at end of file + update_branch: '%{user_link} has been pushed to branch %{branch_name}' + build_task: 'Build task #%{task_num}' + build_status: + published: published successfully + success: complete successfully + failed: complete with error "%{error}" + pending: build waiting diff --git a/config/locales/models/activity_feed.ru.yml b/config/locales/models/activity_feed.ru.yml index b912d2266..052e4c5c5 100644 --- a/config/locales/models/activity_feed.ru.yml +++ b/config/locales/models/activity_feed.ru.yml @@ -7,6 +7,7 @@ ru: all_my_builds: Все мои сборки my_builds_by_day: Мои сборки за день new_project: Создать проект + load_messages: Загрузить сообщения notifications: subjects: @@ -16,14 +17,14 @@ ru: new_user_notification: Регистрация на проекте «%{ project_name }» issue_assign_notification: Вам назначили задачу invite_approve_notification: Приглашение в ABF + build_task: Сборочное задание bodies: new_comment_notification: title: '%{user_link} добавил новый комментарий' - content: в задаче %{issue_link} - commit_content: в коммите %{commit_link} + content: к задаче %{issue_link} + commit_content: к коммиту %{commit_link} new_issue_notification: '%{user_link} добавил новую задачу' - issue: задачу new_user_notification: title: Здравствуйте, %{user_name}. content: Вы зарегистрированы на проекте «ROSA Build System» и теперь можете войти в систему. @@ -36,4 +37,10 @@ ru: delete_branch: Удалена ветка %{branch_name} create_branch: '%{user_link} создал новую ветку %{branch_name}' - update_branch: '%{user_link} внес изменения в ветку %{branch_name}' \ No newline at end of file + update_branch: '%{user_link} внес изменения в ветку %{branch_name}' + build_task: 'Сборочное задание №%{task_num}' + build_status: + published: успешно опубликовано + success: успешно собрано + failed: завершилось с ошибкой "%{error}" + pending: ожидает сборки diff --git a/config/locales/models/build_list.en.yml b/config/locales/models/build_list.en.yml index 517cc53d5..eb86a4647 100644 --- a/config/locales/models/build_list.en.yml +++ b/config/locales/models/build_list.en.yml @@ -58,6 +58,7 @@ en: container_published: 'Container in a repository' action: Action new_header: New build + main_data: Main data ownership: header: Build list ownership diff --git a/config/locales/models/build_list.ru.yml b/config/locales/models/build_list.ru.yml index 531448717..0bfa9ec88 100644 --- a/config/locales/models/build_list.ru.yml +++ b/config/locales/models/build_list.ru.yml @@ -58,6 +58,7 @@ ru: container_published: 'Контейнер размещен в репозитории' action: Действие new_header: Новая сборка + main_data: Основные данные ownership: header: Принадлежность заданий diff --git a/doc/design/abf-monitoring task.html b/doc/design/abf-monitoring task.html new file mode 100644 index 000000000..f590c6be4 --- /dev/null +++ b/doc/design/abf-monitoring task.html @@ -0,0 +1,204 @@ + + +
+ +Build published
+2012-01-27 17:28:05 UTC
+Name | +Version | +Status | +
---|---|---|
libreoffice | +latest_mandriva2011 | +Build complete | +