[refs #344] Add link to product into product build lists list

This commit is contained in:
konstantin.grabar 2012-03-28 17:51:04 +04:00
parent 9ee350b007
commit c6d30b7ff3
3 changed files with 4 additions and 2 deletions

View File

@ -2,5 +2,6 @@
%td= product_build_list.id %td= product_build_list.id
%td= product_build_list.human_status %td= product_build_list.human_status
%td= link_to nil, product_build_list.container_path %td= link_to nil, product_build_list.container_path
%td= link_to product_build_list.product, platform_product_path(product_build_list.product.platform, product_build_list.product)
%td= link_to image_tag('x.png'), platform_product_product_build_list_path(product_build_list.product.platform, product_build_list.product, product_build_list), :method => :delete, :confirm => t("layout.confirm") if can? :destroy, product_build_list %td= link_to image_tag('x.png'), platform_product_product_build_list_path(product_build_list.product.platform, product_build_list.product, product_build_list), :method => :delete, :confirm => t("layout.confirm") if can? :destroy, product_build_list
%td= l(product_build_list.notified_at, :format => :long) %td= l(product_build_list.notified_at, :format => :long)

View File

@ -23,6 +23,7 @@
%th= t("activerecord.attributes.product_build_list.id") %th= t("activerecord.attributes.product_build_list.id")
%th= t("activerecord.attributes.product_build_list.status") %th= t("activerecord.attributes.product_build_list.status")
%th= t("activerecord.attributes.product_build_list.container_path") %th= t("activerecord.attributes.product_build_list.container_path")
%th= t("layout.product_build_lists.product")
%th= t("layout.product_build_lists.action") %th= t("layout.product_build_lists.action")
%th= t("activerecord.attributes.product_build_list.notified_at") %th= t("activerecord.attributes.product_build_list.notified_at")
%tbody= render @product.product_build_lists.default_order %tbody= render @product.product_build_lists.default_order

View File

@ -1,4 +1,4 @@
# -*- encoding : utf-8 -*- # encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead # This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to # of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition. # incrementally modify your database, and then regenerate this schema definition.
@ -11,7 +11,7 @@
# #
# It's strongly recommended to check this file into your version control system. # It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20120321130436) do ActiveRecord::Schema.define(:version => 20120326142636) do
create_table "activity_feeds", :force => true do |t| create_table "activity_feeds", :force => true do |t|
t.integer "user_id", :null => false t.integer "user_id", :null => false