[38261] branches/gsoc08-mpwa/app/views/layouts/application.html.erb

digx at macports.org digx at macports.org
Sun Jul 13 23:24:50 PDT 2008


Revision: 38261
          http://trac.macosforge.org/projects/macports/changeset/38261
Author:   digx at macports.org
Date:     2008-07-13 23:24:49 -0700 (Sun, 13 Jul 2008)
Log Message:
-----------
Made application.html.erb work with Blueprint CSS

Modified Paths:
--------------
    branches/gsoc08-mpwa/app/views/layouts/application.html.erb

Modified: branches/gsoc08-mpwa/app/views/layouts/application.html.erb
===================================================================
--- branches/gsoc08-mpwa/app/views/layouts/application.html.erb	2008-07-14 06:23:40 UTC (rev 38260)
+++ branches/gsoc08-mpwa/app/views/layouts/application.html.erb	2008-07-14 06:24:49 UTC (rev 38261)
@@ -5,36 +5,28 @@
 <head>
   <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
   <title><%=h @page_title ? "MacPorts DB: #{@page_title}" : "MacPorts DB" %></title>
-  <%= stylesheet_link_tag 'scaffold' %>
-  <%= stylesheet_link_tag 'main' %>
+  <%= stylesheet_link_tag 'screen' %>
 </head>
 <body>
-	
-	<div class='mp_header'>
-		<div class='header_left'>
-			<h1><a href='/'>MacPorts DB</a></h1>
-		</div>
-		<div class='header_right'>
-			<form action="/ports" method="get">
-				Search Ports:<br />
-				<input type='text' size='25' name='search' />
-			</form>
-		</div>
-		
-		<div style='clear: left;'>
-		    <a href='http://www.macports.org/'>MacPorts home</a>
+	<div class="container">	  
+		<h1><a href='/'>MacPorts DB</a></h1>
+		<form action="/ports" method="get">
+		  <p>
+  			Search Ports:<br />
+  			<input type='text' size='25' name='search' />
+  		</p>
+		</form>
+	  <p>
+	    <a href='http://www.macports.org/'>MacPorts home</a>
 		    | <%= link_to "all tags", tags_url %>
 		    | <%= link_to "all ports", ports_url %>
 		    | <%= link_to "random port", random_ports_url %>
 		    | <%= link_to "people", people_url %>
-		</div>
-	</div>
-	
-	<div class='mp_body'>
-		<p style="color: green"><%= flash[:notice] %></p>
-		
+		</p>
+	  <% if flash[:notice] -%>
+  		<p style="color: green"><%= flash[:notice] %></p>
+  	<% end -%>
 		<%= yield  %>
-	</div>
-
+  </div>
 </body>
 </html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080713/272ebb40/attachment.html 


More information about the macports-changes mailing list