First parts of new 'web-app-theme'.
This commit is contained in:
parent
3ea8d5a2ef
commit
c04819e8c4
6 changed files with 653 additions and 56 deletions
|
|
@ -1,5 +1,5 @@
|
|||
%h2 Direkt zu ...
|
||||
%ul
|
||||
%h3 Direkt zu ...
|
||||
%ul.list
|
||||
%li
|
||||
Foodcoop
|
||||
%ul
|
||||
|
|
|
|||
|
|
@ -1,31 +1,36 @@
|
|||
%h1 Startseite
|
||||
- title "Startseite"
|
||||
|
||||
#start_nav
|
||||
= render :partial => 'start_nav'
|
||||
- content_for :sidebar do
|
||||
.block
|
||||
= render :partial => 'start_nav'
|
||||
|
||||
.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
|
||||
.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
|
||||
|
||||
- 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
|
||||
|
|
|
|||
|
|
@ -57,15 +57,15 @@
|
|||
<ul>
|
||||
<% for tab in tabs -%>
|
||||
<% unless tab[:access_denied?] -%>
|
||||
<li class="<%= 'current' if tab_is_active?(tab) %>">
|
||||
<li class="<%= 'active' 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 -%>
|
||||
|
|
|
|||
|
|
@ -3,35 +3,40 @@
|
|||
%head
|
||||
%meta{"http-equiv" => "content-type", :content => "text/html;charset=UTF-8"}
|
||||
%title= "FoodSoft - " + (yield(:title) or controller.controller_name)
|
||||
= stylesheet_link_tag 'foodsoft'
|
||||
= stylesheet_link_tag "print", :media => "print"
|
||||
= stylesheet_link_tag 'base'
|
||||
= stylesheet_link_tag 'style'
|
||||
= 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
|
||||
#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});")
|
||||
#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});")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue