From 73e92d297031422efa81f89a2fcc150322b46100 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Mon, 9 Aug 2010 10:33:29 -0700 Subject: [PATCH] [#4178] Extract contract title bar to partial. --- app/views/contracts/_title.html.erb | 25 +++++++++++++++++++++++++ app/views/contracts/show.html.erb | 25 +------------------------ 2 files changed, 26 insertions(+), 24 deletions(-) create mode 100644 app/views/contracts/_title.html.erb diff --git a/app/views/contracts/_title.html.erb b/app/views/contracts/_title.html.erb new file mode 100644 index 0000000..1a735ac --- /dev/null +++ b/app/views/contracts/_title.html.erb @@ -0,0 +1,25 @@ +
+ <%= content_tag(:h2, h(contract.name)) %> + +
+ Log time + + | + + Watch + + | + + Copy + | + +
+ <%= link_to(l(:button_update), edit_contract_path(@project, contract)) %> +
+
+
+<%# TODO: contract messages +
+

There is $243 worth of time clocked to issues that are not assigned to any deliverables. Please update the orphaned issues.

+
+%> diff --git a/app/views/contracts/show.html.erb b/app/views/contracts/show.html.erb index 8480fa4..129004f 100644 --- a/app/views/contracts/show.html.erb +++ b/app/views/contracts/show.html.erb @@ -1,28 +1,5 @@ -
- <%= content_tag(:h2, h(resource.name)) %> - -
- Log time +<%= render :partial => 'title', :locals => {:contract => resource} %> - | - - Watch - - | - - Copy - | - -
- <%= link_to(l(:button_update), edit_contract_path(@project, resource)) %> -
-
-
-<%# TODO: contract messages -
-

There is $243 worth of time clocked to issues that are not assigned to any deliverables. Please update the orphaned issues.

-
-%> <% div_for(resource) do %> <%= avatar(resource.account_executive, :size => 40) %>