slitaz-forge diff labs/redmine/app/views/layouts/base.rhtml @ rev 5

Update labs theme
author Christophe Lincoln <pankso@slitaz.org>
date Thu Jan 27 00:58:15 2011 +0100 (2011-01-27)
parents
children 7ed35ac1a4c3
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/labs/redmine/app/views/layouts/base.rhtml	Thu Jan 27 00:58:15 2011 +0100
     1.3 @@ -0,0 +1,112 @@
     1.4 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     1.5 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
     1.6 +<head>
     1.7 +<meta http-equiv="content-type" content="text/html; charset=utf-8" />
     1.8 +<title><%=h html_title %></title>
     1.9 +<meta name="description" content="<%= Redmine::Info.app_name %>" />
    1.10 +<meta name="keywords" content="slitaz,issue,bug,tracker" />
    1.11 +<%= favicon %>
    1.12 +<%= stylesheet_link_tag 'application', :media => 'all' %>
    1.13 +<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
    1.14 +<%= javascript_include_tag :defaults %>
    1.15 +<%= heads_for_theme %>
    1.16 +<%= heads_for_wiki_formatter %>
    1.17 +<!--[if IE]>
    1.18 +    <style type="text/css">
    1.19 +      * html body{ width: expression( document.documentElement.clientWidth < 900 ? '900px' : '100%' ); }
    1.20 +      body {behavior: url(<%= stylesheet_path "csshover.htc" %>);}
    1.21 +    </style>
    1.22 +<![endif]-->
    1.23 +<%= call_hook :view_layouts_base_html_head %>
    1.24 +<!-- page specific tags -->
    1.25 +<%= yield :header_tags -%>
    1.26 +</head>
    1.27 +<body class="<%= body_css_classes %>">
    1.28 +<div id="wrapper">
    1.29 +<div id="wrapper2">
    1.30 +<div id="top-menu">
    1.31 +    <div id="account">
    1.32 +        <%= render_menu :account_menu -%>
    1.33 +    </div>
    1.34 +    <%= content_tag('div', "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}", :id => 'loggedas') if User.current.logged? %>
    1.35 +    <%= render_menu :top_menu -%>
    1.36 +</div>
    1.37 +      
    1.38 +<div id="header">
    1.39 +    <div id="quick-search">
    1.40 +        <% form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get ) do %>
    1.41 +        <%= hidden_field_tag(controller.default_search_scope, 1, :id => nil) if controller.default_search_scope %>
    1.42 +        <%= link_to l(:label_search), {:controller => 'search', :action => 'index', :id => @project}, :accesskey => accesskey(:search) %>:
    1.43 +        <%= text_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey => accesskey(:quick_search) %>
    1.44 +        <% end %>
    1.45 +        <%= render_project_jump_box %>
    1.46 +    </div>
    1.47 +    
    1.48 +    <!-- Header -->
    1.49 +<div id="header">
    1.50 +	<!-- Logo -->
    1.51 +	<a href="http://www.slitaz.org/"><img id="logo"
    1.52 +		src="pics/website/logo.png" 
    1.53 +		title="www.slitaz.org" alt="www.slitaz.org" /></a>
    1.54 +	<p id="titre">#!/page_header_title</p>
    1.55 +</div>
    1.56 +    <h1><%= page_header_title %></h1>
    1.57 +    
    1.58 +    <% if display_main_menu?(@project) %>
    1.59 +    <div id="main-menu">
    1.60 +        <%= render_main_menu(@project) %>
    1.61 +    </div>
    1.62 +    <% end %>
    1.63 +</div>
    1.64 +
    1.65 +<%= tag('div', {:id => 'main', :class => (has_content?(:sidebar) ? '' : 'nosidebar')}, true) %>
    1.66 +    <div id="sidebar">        
    1.67 +        <%= yield :sidebar %>
    1.68 +        <%= call_hook :view_layouts_base_sidebar %>
    1.69 +    </div>
    1.70 +    
    1.71 +    <div id="content">
    1.72 +				<%= render_flash_messages %>
    1.73 +        <%= yield %>
    1.74 +        <%= call_hook :view_layouts_base_content %>
    1.75 +				<div style="clear:both;"></div>
    1.76 +    </div>
    1.77 +</div>
    1.78 +
    1.79 +<div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div>
    1.80 +	
    1.81 +
    1.82 +<!-- Footer -->
    1.83 +<div id="footer">
    1.84 +	<div class="right_box">
    1.85 +	<h4>SliTaz Network</h4>
    1.86 +		<ul>
    1.87 +			<li><a href="http://doc.slitaz.org/">Documentation</a></li>
    1.88 +			<li><a href="http://forum.slitaz.org/">Support Forum</a></li>
    1.89 +			<li><a href="http://scn.slitaz.org/">Community Network</a></li>
    1.90 +			<li><a href="http://labs.slitaz.org/">Laboratories</a></li>
    1.91 +			<li><a href="http://twitter.com/slitaz">SliTaz on Twitter</a></li>
    1.92 +			<li><a href="http://distrowatch.com/slitaz">SliTaz on DistroWatch</a></li>
    1.93 +		</ul>
    1.94 +	</div>
    1.95 +	<h4>SliTaz Website</h4>
    1.96 +	<ul>
    1.97 +		<li><a href="#header">Top of the page</a></li>
    1.98 +		<li>Copyright &copy; <span class="year"></span>
    1.99 +			<a href="http://www.slitaz.org/">SliTaz</a></li>
   1.100 +		<li><a href="about/">About the project</a></li>
   1.101 +		<li><a href="netmap.php">Network Map</a></li>
   1.102 +		<li>Page modified the <?php echo (date( "d M Y", getlastmod())); ?></li>
   1.103 +		<li><a href="http://validator.w3.org/check?uri=referer"><img
   1.104 +		src="pics/website/xhtml10.png" alt="Valid XHTML 1.0"
   1.105 +		title="Code validé XHTML 1.0"
   1.106 +		style="width: 80px; height: 15px; vertical-align: middle;" /></a></li>
   1.107 +	</ul>
   1.108 +</div>
   1.109 +
   1.110 +
   1.111 +</div>
   1.112 +</div>
   1.113 +<%= call_hook :view_layouts_base_body_bottom %>
   1.114 +</body>
   1.115 +</html>