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

RevLine 
[1]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' %>
[4]10    <%= stylesheet_link_tag 'lightbox' %>
11           
12    <%= javascript_include_tag 'controls' %>
13    <%= javascript_include_tag 'application' %>
[1]14    <%= javascript_include_tag "scriptaculous/lib/prototype.js" %>
15    <%= javascript_include_tag "scriptaculous/src/scriptaculous.js" %>
[4]16    <%= javascript_include_tag "lightbox/lightbox.js" %>
[10]17    <%= javascript_include_tag 'comboBox.js' %>
18    <%= javascript_include_tag 'multi_selector.js' %>
[4]19   
[1]20  </head>
21  <body>
[11]22        <div id="Main">
[6]23                <!-- <div id="BorderLeft" style="float: left; width: 68px; "> 
24                        <%= image_tag ( "block-test.png ") %>
[1]25                </div> -->
26                <div id="InnerMain" >
[6]27                        <div id="Header" style="
[8]28                                /*background-image: url('/images/Header<%= ((rand(10) % 5) + 1).to_s %>.jpg');*/
[11]29                                background-image: url('/images/Header1.png');
[6]30                        "></div>
[1]31                        <div id="Sidebar">
[8]32                                <h3><%= link_to "Bio", :controller => "Main", :action => "bio" %></h3>
[4]33                                <h3><a href="/Artwork/">Art</a></h3>
34                                <% if @sidebar == "Artwork" %>
35                                        <% for gallery in @galleries %>
[15]36                                                <span>» <%= link_to gallery.sTitle, :action => "show", :params => {:id => gallery.id} %></span><br/>
[4]37                                        <% end %>                               
38                                <% end %>
39                                <h3><a href="/Engineering/">Engineering</a></h3>
40                                <% if @sidebar == "Engineering" %>
41                                        <% for gallery in @galleries %>
[15]42                                                <span>» <a href="#<%= gallery.sTitle.to_s.gsub(/ /,'') + "_" + gallery.id.to_s %>"><%= gallery.sTitle %></a></span><br/>
[4]43                                        <% end %>
44                                <% end %>
[8]45                                <h3><%= link_to "Contact", :controller => "Main", :action => "contact" %></h3>
[1]46                        </div> <!-- end Sidebar -->
47                        <div id="Title">
[11]48                                <a href="/">The Art of Engineering</a>
49                                <p>Computers, Art, and Everything in Between...</p>
[1]50                        </div> <!-- end Title -->
51
52                        <div id="Content">
53                               
54                                        <%= yield  %>
55
56                        </div> <!-- end Content -->
57                        <div class="divclear"></div>
[11]58                       
59                </div> <!-- end InnerMain-->
60                <div id="Footer">
[4]61                                <% if logged_in? %>
[10]62                                        <p><span>[<%= link_to 'Logout', :controller => "account", :action => "logout" %>] | [<a href="">xhtml</a>] | [<a href="">css</a>]</span></p>
63                                <% else %>
[12]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>
[4]65                                <% end %>
[1]66                        </div> <!-- end Footer -->
67        </div> <!-- end Main -->
68  </body>
69</html>
Note: See TracBrowser for help on using the browser.