Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

Commit

Permalink
fixed a few nesting div and typo problems generating html errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Dill committed Aug 24, 2008
1 parent 18226d2 commit 9c990c8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
9 changes: 5 additions & 4 deletions app/views/layouts/admin.rhtml
Expand Up @@ -26,14 +26,15 @@
<div class="sitetree" id="sitetree">
<%= render :partial => "menu/main" %>
</div> <!-- end .sitetree and #sitetree -->
</div>
</div> <!-- end #sidebar -->
<div id="main" class="main">
<% if flash[:message] -%>
<div id="message"><%= flash[:message] %></div>
<div id="message"><%= flash[:message] %></div> <!-- end .message -->
<% end -%>
<%= @content_for_layout %>
<div id="content">
<%= @content_for_layout %>
</div> <!-- end #content -->
</div><!-- end #main and .main -->
</div> <!-- end #content -->
<div id="footer"></div> <!-- end #footer -->
</div> <!-- end #wrap -->
</body>
Expand Down
2 changes: 1 addition & 1 deletion app/views/menu/_main.rhtml
Expand Up @@ -2,6 +2,6 @@
<ul>
<li><%= link_to_remote "Manage Pages", :update => "sitetree", :url => { :controller => 'page_admin', :action => "manage_tree" } %></li>
<li><%= link_to_remote 'Account Settings', :update => 'main', :url => { :controller => 'account', :action => 'update' } %></li>
<li><%= link_to "Logout", :controller => 'account', :action => 'logout' %></lis>
<li><%= link_to "Logout", :controller => 'account', :action => 'logout' %></li>
</ul>

14 changes: 8 additions & 6 deletions app/views/page_admin/preview.rhtml
@@ -1,9 +1,11 @@
<h1><%= flash[:message] %></h1>
<div style="border: 3px solid #000">
<iframe src="<%= @preview_url %>" width="800px" height="600px" scrolling="yes">
</iframe>
<div style="text-align: center">[ <%= link_to_remote('Edit Again', {
:update => 'main',
:url => { :action => 'edit', :id => @page_id,} }
) %> ] [ <a href="<%= @preview_url %>">Full Screen</a> ] </div>
<iframe src="<%= @preview_url %>" width="800px" height="600px" scrolling="yes"></iframe>
<div style="text-align: center">
[ <%= link_to_remote('Edit Again', {
:update => 'main',
:url => { :action => 'edit', :id => @page_id,} }
) %> ]
[ <a href="<%= @preview_url %>">Full Screen</a> ]
</div>
</div>

0 comments on commit 9c990c8

Please sign in to comment.