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

Revision 11, 2.6 kB (checked in by falcon, 17 years ago)

CSS tweaks and content. IE fixes. Changed images. Header images need work

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