From 288566f00039a00a71dd4999efb22f527bee73c9 Mon Sep 17 00:00:00 2001 From: Benjamin Meichsner Date: Fri, 30 Jan 2009 19:02:35 +0100 Subject: [PATCH] Moved 'shared' partial into shared-folder. Easer to maintain. --- app/views/home/index.html.haml | 2 +- app/views/ordering/index.haml | 2 +- app/views/orders/index.haml | 2 +- app/views/{ordering => shared}/_open_orders.html.haml | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename app/views/{ordering => shared}/_open_orders.html.haml (100%) diff --git a/app/views/home/index.html.haml b/app/views/home/index.html.haml index 0dfaba3e..ea6ce67b 100644 --- a/app/views/home/index.html.haml +++ b/app/views/home/index.html.haml @@ -29,7 +29,7 @@ - if @ordergroup // Current orders - = render :partial => 'ordering/currentOrders' + = render :partial => 'shared/open_orders' - unless @messages.empty? .box_title diff --git a/app/views/ordering/index.haml b/app/views/ordering/index.haml index 421798f8..2cd7ddac 100644 --- a/app/views/ordering/index.haml +++ b/app/views/ordering/index.haml @@ -21,7 +21,7 @@ .right_column{:style => "width:70%"} // open orders - = render :partial => "open_orders" + = render :partial => "shared/open_orders" // finished orders - unless Order.finished.empty? diff --git a/app/views/orders/index.haml b/app/views/orders/index.haml index f793994e..acad1cc8 100644 --- a/app/views/orders/index.haml +++ b/app/views/orders/index.haml @@ -1,4 +1,4 @@ -- title _("Manage orders") +- title "Bestellungen verwalten" - if @current_user.role_orders? %p diff --git a/app/views/ordering/_open_orders.html.haml b/app/views/shared/_open_orders.html.haml similarity index 100% rename from app/views/ordering/_open_orders.html.haml rename to app/views/shared/_open_orders.html.haml