root/app/views/layouts/main.html.erb @ 15

Revision 15, 2.7 kB (checked in by falcon, 17 years ago)

Better W3C Compliance, misc fixes, changed media max size to 1024x800 px

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
4  <head>
5    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
6    <title>The Art of Engineering</title>
7    <%= stylesheet_link_tag 'style' %>
8    <%= stylesheet_link_tag 'scaffold' %>
9    <%= stylesheet_link_tag 'MultiUpload' %>
10    <%= stylesheet_link_tag 'lightbox' %>
11           
12    <%= javascript_include_tag 'controls' %>
13    <%= javascript_include_tag 'application' %>
14    <%= javascript_include_tag "scriptaculous/lib/prototype.js" %>
15    <%= javascript_include_tag "scriptaculous/src/scriptaculous.js" %>
16    <%= javascript_include_tag "lightbox/lightbox.js" %>
17    <%= javascript_include_tag 'comboBox.js' %>
18    <%= javascript_include_tag 'multi_selector.js' %>
19   
20  </head>
21  <body>
22        <div id="Main">
23                <!-- <div id="BorderLeft" style="float: left; width: 68px; "> 
24                        <%= image_tag ( "block-test.png ") %>
25                </div> -->
26                <div id="InnerMain" >
27                        <div id="Header" style="
28                                /*background-image: url('/images/Header<%= ((rand(10) % 5) + 1).to_s %>.jpg');*/
29                                background-image: url('/images/Header1.png');
30                        "></div>
31                        <div id="Sidebar">
32                                <h3><%= link_to "Bio", :controller => "Main", :action => "bio" %></h3>
33                                <h3><a href="/Artwork/">Art</a></h3>
34                                <% if @sidebar == "Artwork" %>
35                                        <% for gallery in @galleries %>
36                                                <span>» <%= link_to gallery.sTitle, :action => "show", :params => {:id => gallery.id} %></span><br/>
37                                        <% end %>                               
38                                <% end %>
39                                <h3><a href="/Engineering/">Engineering</a></h3>
40                                <% if @sidebar == "Engineering" %>
41                                        <% for gallery in @galleries %>
42                                                <span>» <a href="#<%= gallery.sTitle.to_s.gsub(/ /,'') + "_" + gallery.id.to_s %>"><%= gallery.sTitle %></a></span><br/>
43                                        <% end %>
44                                <% end %>
45                                <h3><%= link_to "Contact", :controller => "Main", :action => "contact" %></h3>
46                        </div> <!-- end Sidebar -->
47                        <div id="Title">
48                                <a href="/">The Art of Engineering</a>
49                                <p>Computers, Art, and Everything in Between...</p>
50                        </div> <!-- end Title -->
51
52                        <div id="Content">
53                               
54                                        <%= yield  %>
55
56                        </div> <!-- end Content -->
57                        <div class="divclear"></div>
58                       
59                </div> <!-- end InnerMain-->
60                <div id="Footer">
61                                <% if logged_in? %>
62                                        <p><span>[<%= link_to 'Logout', :controller => "account", :action => "logout" %>] | [<a href="">xhtml</a>] | [<a href="">css</a>]</span></p>
63                                <% else %>
64                                        <p><span>[<a href="http://validator.w3.org/check?uri=referer">xhtml</a>] | [<a href="http://jigsaw.w3.org/css-validator/validator?uri=www.artofengineering.net">css</a>]</span></p>
65                                <% end %>
66                        </div> <!-- end Footer -->
67        </div> <!-- end Main -->
68  </body>
69</html>
Note: See TracBrowser for help on using the browser.