2011-05-11 17:41:43 +02:00
|
|
|
- title t('.title')
|
2009-01-06 11:49:19 +01:00
|
|
|
|
2009-02-18 12:01:51 +01:00
|
|
|
#start_nav
|
|
|
|
= render :partial => 'start_nav'
|
2009-01-10 19:36:58 +01:00
|
|
|
|
2009-02-18 12:01:51 +01:00
|
|
|
.right_column{:style => "width:70%"}
|
|
|
|
- unless @unaccepted_tasks.empty? && @next_tasks.empty? && @unassigned_tasks_number == 0
|
|
|
|
.box_title
|
|
|
|
%h2 Aufgaben
|
|
|
|
.column_content
|
|
|
|
-unless @next_tasks.empty?
|
|
|
|
%div{:style => "float:left, margin-bottom:2em"}
|
|
|
|
%h3 Deine Aufgaben für die nächste Woche:
|
|
|
|
%table{:style => "width:25em"}
|
|
|
|
-for task in @next_tasks
|
|
|
|
%tr
|
|
|
|
%td= format_date task.due_date
|
|
|
|
%td
|
|
|
|
%b= task.name
|
2009-01-06 11:49:19 +01:00
|
|
|
|
2009-02-18 12:01:51 +01:00
|
|
|
- unless @unaccepted_tasks.empty?
|
|
|
|
%h3 Aufgaben übernehmen
|
|
|
|
Du bis für Aufgaben verantwortlich.
|
2010-03-20 13:45:58 +01:00
|
|
|
= link_to "Aufgaben übernehmen/ablehnen", user_tasks_path
|
2009-02-18 12:01:51 +01:00
|
|
|
- unless @unassigned_tasks_number == 0
|
|
|
|
%h3 Offene Aufgaben
|
2011-05-15 21:17:01 +02:00
|
|
|
= "Es gibt #{@unassigned_tasks_number} #{link_to 'offene Aufgabe(n)', :controller => 'tasks'}".html_safe
|
2010-03-20 13:45:58 +01:00
|
|
|
%p{:style => "clear:both"}= link_to "Meine Aufgaben", user_tasks_path
|
2009-01-06 11:49:19 +01:00
|
|
|
|
2011-05-16 10:34:14 +02:00
|
|
|
- if current_user.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-08-01 13:41:22 +02:00
|
|
|
// Stats
|
2011-05-16 10:34:14 +02:00
|
|
|
- if current_user.ordergroup
|
2009-08-02 20:04:54 +02:00
|
|
|
.box_title
|
|
|
|
%h2 Engagement Deiner Bestellgruppe
|
|
|
|
.column_content
|
2011-05-16 10:34:14 +02:00
|
|
|
= render :partial => "stats", :locals => {:ordergroup => current_user.ordergroup}
|
2009-08-01 13:41:22 +02:00
|
|
|
|
2011-05-16 10:34:14 +02:00
|
|
|
- unless Message.public.empty?
|
2009-01-15 20:10:50 +01:00
|
|
|
.box_title
|
|
|
|
%h2 Neuste Nachrichten
|
|
|
|
.column_content
|
2011-05-19 19:49:37 +02:00
|
|
|
= render :partial => 'messages/messages', :locals => {:messages => Message.public.order(:created_at.desc).limit(5), :subject_length => 70}
|
2009-03-09 13:02:43 +01:00
|
|
|
%br/
|
|
|
|
= link_to "Alle Nachrichten einsehen", messages_path
|
2009-01-15 20:10:50 +01:00
|
|
|
|
2011-05-16 10:34:14 +02:00
|
|
|
- if current_user.ordergroup
|
2009-02-01 21:08:04 +01:00
|
|
|
// 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
|
2011-05-16 10:34:14 +02:00
|
|
|
%b= current_user.ordergroup.name
|
2009-02-01 21:08:04 +01:00
|
|
|
|
|
2009-04-06 20:09:52 +02:00
|
|
|
Verfügbares Guthaben:
|
2011-05-16 10:34:14 +02:00
|
|
|
= number_to_currency(current_user.ordergroup.get_available_funds)
|
2009-08-01 13:41:22 +02:00
|
|
|
%span.description
|
|
|
|
(Letzte Aktualisierung ist
|
2011-05-16 10:34:14 +02:00
|
|
|
= distance_of_time_in_words(Time.now, current_user.ordergroup.account_updated) + " her)"
|
2009-02-06 21:18:20 +01:00
|
|
|
%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
|
2011-05-16 10:34:14 +02:00
|
|
|
- for ft in current_user.ordergroup.financial_transactions.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
|