Revert "First parts of new 'web-app-theme'." This is fun stuff and should be managed in another branch.

This reverts commit c04819e8c4.
This commit is contained in:
Benjamin Meichsner 2009-02-18 12:01:51 +01:00
parent c04819e8c4
commit 857475af1b
6 changed files with 56 additions and 653 deletions

View file

@ -1,5 +1,5 @@
%h3 Direkt zu ...
%ul.list
%h2 Direkt zu ...
%ul
%li
Foodcoop
%ul

View file

@ -1,36 +1,31 @@
- title "Startseite"
%h1 Startseite
- content_for :sidebar do
.block
= render :partial => 'start_nav'
#start_nav
= render :partial => 'start_nav'
.block
.secondary-navigation
%ul
%li.active.first
%a Startseite
.content
%h2 Startseite
.inner
- unless @unaccepted_tasks.empty? && @next_tasks.empty? && @unassigned_tasks_number == 0
-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
.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
- unless @unaccepted_tasks.empty?
%h3 Aufgaben übernehmen
Du bis für Aufgaben verantwortlich.
= link_to "Aufgaben übernehmen/ablehnen", my_tasks_path
- unless @unassigned_tasks_number == 0
%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
- unless @unaccepted_tasks.empty?
%h3 Aufgaben übernehmen
Du bis für Aufgaben verantwortlich.
= link_to "Aufgaben übernehmen/ablehnen", my_tasks_path
- unless @unassigned_tasks_number == 0
%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
- if @ordergroup
// Current orders

View file

@ -57,15 +57,15 @@
<ul>
<% for tab in tabs -%>
<% unless tab[:access_denied?] -%>
<li class="<%= 'active' if tab_is_active?(tab) %>">
<li class="<%= 'current' if tab_is_active?(tab) %>">
<%= link_to tab[:name], tab[:url] %>
<!--<ul>
<ul>
<% for subtab in tab[:subnav] -%>
<% unless subtab[:access_denied?] -%>
<li><%= link_to subtab[:name], subtab[:url] %></li>
<% end -%>
<% end -%>
</ul>-->
</ul>
</li>
<% end -%>
<% end -%>

View file

@ -3,40 +3,35 @@
%head
%meta{"http-equiv" => "content-type", :content => "text/html;charset=UTF-8"}
%title= "FoodSoft - " + (yield(:title) or controller.controller_name)
= stylesheet_link_tag 'base'
= stylesheet_link_tag 'style'
= stylesheet_link_tag 'foodsoft'
= stylesheet_link_tag "print", :media => "print"
= javascript_include_tag 'prototype'
= javascript_include_tag 'effects'
= javascript_include_tag 'controls'
= javascript_include_tag 'application'
= javascript_include_tag('ordering') if (controller.controller_name == "ordering")
%body
#container
#header
%h1
%a{:href => "/"}= APP_CONFIG[:name]
#user-navigation
= render :partial => 'shared/loginInfo'
.clear
#main-navigation
= render :partial => 'layouts/main_tabnav'
.clear
#wrapper
#loader{:style => "display:none;"}
= image_tag("loader.gif", :border => 0)
#main
- if flash[:notice]
.flash-messages.notice
%p= flash[:notice]
- if flash[:error]
.flash-messages.error
%p= flash[:error]
= yield
#sidebar
= yield(:sidebar)
.clear
#footer
.block
%p= "#{APP_CONFIG[:name]} is powered by FoodSoft"
- if flash[:notice] or flash[:error]
= javascript_tag("new Effect.Highlight('flash-messages', {delay:0.8, duration:1});")
#logininfo= render :partial => 'shared/loginInfo'
#header
#logo
%a{:href => "/"}
<span>food</span>soft
%span{:style => "color:white; font-size:45%; letter-spacing: -1px;"}= APP_CONFIG[:name]
#nav= render :partial => 'layouts/main_tabnav'
#main
#content
- if flash[:notice]
%h3.notice#flashNotice= flash[:notice]
- if flash[:error]
%h3.error#flashError= flash[:error]
#loader{:style => "display:none;"}= image_tag("loader.gif", :border => 0)
- if yield(:title)
%h1= yield(:title)
= yield
- if flash[:notice]
= javascript_tag("new Effect.Highlight('flashNotice', {delay:0.8, duration:1});")
- if flash[:error]
= javascript_tag("new Effect.Highlight('flashError', {delay:0.8, duration:1});")