From 888308da2ea31cb8c733d4d2536870308311b9fa Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Wed, 11 Jun 2008 09:21:49 -0700 Subject: [PATCH] Added edit image instead of text for Deliverable actions --- app/views/deliverables/_deliverable.html.erb | 4 ++-- app/views/deliverables/_list.html.erb | 2 +- assets/stylesheets/budget.css | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/deliverables/_deliverable.html.erb b/app/views/deliverables/_deliverable.html.erb index 0bfb6a6..7863a25 100644 --- a/app/views/deliverables/_deliverable.html.erb +++ b/app/views/deliverables/_deliverable.html.erb @@ -7,7 +7,7 @@ <%= content_tag(:td, number_to_currency(deliverable.spent, :precision => 0), :class => 'spent') if allowed_management? %> <%= content_tag(:td, format_date(deliverable.due), :class => 'due_date') %> <%= content_tag(:td, progress_bar(deliverable.progress, :width => '100%', :class => 'dont_ratio')) %> - <%= content_tag(:td, link_to_function("Details", "$('deliverable-details-#{deliverable.id}').toggle();"), :class => 'actions') %> + <%= content_tag(:td, link_to_function(image_tag("edit.png"), "$('deliverable-details-#{deliverable.id}').toggle();"), :class => 'actions') %> @@ -18,7 +18,7 @@
<% form_for :deliverable, deliverable, :url => { :action => "bulk_assign_issues", :id => @project.id, :deliverable_id => deliverable.id} do |f| %> - <%= select("version", "id", @project.versions.sort.collect {|v| [v.name, v.id ] }, { :include_blank => true }) %>
+ <%= select("version", "id", @project.versions.sort.collect {|v| [v.name, v.id ] }, { :prompt => '-- Version --' }) %>
<%= submit_tag("Bulk Assign") %> <% end %>
diff --git a/app/views/deliverables/_list.html.erb b/app/views/deliverables/_list.html.erb index a616dd2..f817e0f 100644 --- a/app/views/deliverables/_list.html.erb +++ b/app/views/deliverables/_list.html.erb @@ -7,7 +7,7 @@ <%= sort_header_tag("spent", :caption => 'Spent') if allowed_management? %> <%= sort_header_tag("#{Deliverable.table_name}.due", :caption => 'Due') %> <%= sort_header_tag("progress", :caption => 'Progress') %> - <%= content_tag('th', "Actions") %> + <%= content_tag('th', " ") %> <% deliverables.each do |deliverable| -%> diff --git a/assets/stylesheets/budget.css b/assets/stylesheets/budget.css index ce45d6e..da07fd6 100644 --- a/assets/stylesheets/budget.css +++ b/assets/stylesheets/budget.css @@ -15,7 +15,7 @@ tr.deliverable-details { border-top: 1px solid #BBBBBB; } tr.deliverable-details td { padding-bottom: 50px ; } -td.deliverable-actions { padding-left: 10px; } +td.deliverable-actions { padding-left: 10px; width:100px;} tr.deliverable-details p { text-align:left; clear:both;} tr.deliverable-details span.title { float:left; font-weight:bold; width: 130px;}