2009-01-06 11:49:19 +01:00
|
|
|
%h1 Startseite
|
|
|
|
|
|
|
|
#start_nav
|
|
|
|
= render :partial => 'start_nav'
|
2009-01-10 19:36:58 +01:00
|
|
|
|
|
|
|
.right_column{:style => "width:70%"}
|
|
|
|
- unless @unaccepted_tasks.empty? && @next_tasks.empty? && @unassigned_tasks_number == 0
|
2009-01-06 11:49:19 +01:00
|
|
|
.box_title
|
2009-02-06 21:18:20 +01:00
|
|
|
%h2 Aufgaben
|
2009-01-06 11:49:19 +01:00
|
|
|
.column_content
|
|
|
|
-unless @next_tasks.empty?
|
|
|
|
%div{:style => "float:left, margin-bottom:2em"}
|
2009-02-06 21:18:20 +01:00
|
|
|
%h3 Deine Aufgaben für die nächste Woche:
|
2009-01-06 11:49:19 +01:00
|
|
|
%table{:style => "width:25em"}
|
|
|
|
-for task in @next_tasks
|
|
|
|
%tr
|
|
|
|
%td= format_date task.due_date
|
|
|
|
%td
|
|
|
|
%b= task.name
|
|
|
|
|
|
|
|
- unless @unaccepted_tasks.empty?
|
2009-02-06 21:18:20 +01:00
|
|
|
%h3 Aufgaben übernehmen
|
|
|
|
Du bis für Aufgaben verantwortlich.
|
|
|
|
= link_to "Aufgaben übernehmen/ablehnen", my_tasks_path
|
2009-01-06 11:49:19 +01:00
|
|
|
- unless @unassigned_tasks_number == 0
|
2009-02-06 21:18:20 +01:00
|
|
|
%h3 Offene Aufgaben
|
|
|
|
= "Es gibt #{@unassigned_tasks_number} #{link_to 'offene Aufage(n)', :controller => 'tasks'}"
|
|
|
|
%p{:style => "clear:both"}= link_to "Meine Aufgaben", my_tasks_path
|
2009-01-06 11:49:19 +01:00
|
|
|
|
2009-01-29 01:57:51 +01:00
|
|
|
- if @ordergroup
|
2009-01-10 19:36:58 +01:00
|
|
|
// Current orders
|
2009-01-30 19:02:35 +01:00
|
|
|
= render :partial => 'shared/open_orders'
|
2009-01-06 11:49:19 +01:00
|
|
|
|
2009-01-15 20:10:50 +01:00
|
|
|
- unless @messages.empty?
|
|
|
|
.box_title
|
|
|
|
%h2 Neuste Nachrichten
|
|
|
|
.column_content
|
|
|
|
= render :partial => 'messages/messages', :locals => { :subject_length => 110 }
|
|
|
|
|
2009-02-01 21:08:04 +01:00
|
|
|
- if @ordergroup
|
|
|
|
// Ordergroup overview
|
|
|
|
.box_title
|
2009-02-06 21:18:20 +01:00
|
|
|
%h2 Meine Bestellgruppe
|
2009-02-01 21:08:04 +01:00
|
|
|
.column_content
|
|
|
|
%p
|
|
|
|
%b= @ordergroup.name
|
|
|
|
|
|
2009-02-06 21:18:20 +01:00
|
|
|
Kontostand:
|
2009-02-01 21:08:04 +01:00
|
|
|
= number_to_currency(@ordergroup.account_balance)
|
|
|
|
%span{:style => "color:grey"}
|
|
|
|
(zuletzt aktualisiert vor
|
2009-02-06 21:18:20 +01:00
|
|
|
= distance_of_time_in_words(Time.now, @ordergroup.account_updated) + "(n))"
|
|
|
|
%h3 Letzte Transaktionen
|
2009-02-01 21:08:04 +01:00
|
|
|
%table
|
|
|
|
%tr
|
2009-02-06 21:18:20 +01:00
|
|
|
%th Wann
|
|
|
|
%th Wer
|
|
|
|
%th Notiz
|
|
|
|
%th Betrag
|
2009-02-03 21:14:48 +01:00
|
|
|
- for ft in @ordergroup.financial_transactions.all(:limit => 5)
|
2009-02-01 21:08:04 +01:00
|
|
|
%tr{:class => cycle('even','odd')}
|
|
|
|
%td= format_time(ft.created_on)
|
|
|
|
%td= h(ft.user.nil? ? '?' : ft.user.nick)
|
|
|
|
%td= h(ft.note)
|
|
|
|
- color = ft.amount < 0 ? 'red' : 'black'
|
|
|
|
%td{:style => "color:#{color}; width:5em", :class => "currency"}= number_to_currency(ft.amount)
|
|
|
|
%br/
|
2009-02-06 21:18:20 +01:00
|
|
|
= link_to _("mehr ..."), my_ordergroup_path
|