Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
fixing XHTML validation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kellishaver committed Oct 19, 2008
1 parent d9a4cd7 commit 3ef4760
Show file tree
Hide file tree
Showing 16 changed files with 34 additions and 34 deletions.
13 changes: 3 additions & 10 deletions app/views/code_snippets/show.html.erb
Expand Up @@ -7,21 +7,14 @@
<%= link_to image_tag("/images/edit_code_btn.png", :alt => "Edit Code"), edit_project_code_snippet_path(project_param, @code_snippet) %>
<%= link_to image_tag("/images/delete_code_btn.png", :alt => "Delete Code"), [current_project, @code_snippet], :confirm => 'Are you sure?', :method => :delete %>
</p><% end %>
<p>
<strong>Project:</strong>
<%=h @code_snippet.project.name %>
</p>
<p>
<strong>Language:</strong>
<%=h @code_snippet.language %><br />
<strong>Created On: </strong><%= @code_snippet.created_at %><br />
<strong>Last Updated On: </strong><%= @code_snippet.updated_at %>
<%=h @code_snippet.language %>
</p>
<p>
<strong>Name:</strong>
<%=h @code_snippet.name %>
</p>
<p>
<%= coderay @code_snippet %>
</p>
</div>
<div id="sidebar">
<h3><%= link_to "&#187; Back to Project Home", project_path(project_param) %></h3>
Expand Down
10 changes: 5 additions & 5 deletions app/views/layouts/application.html.erb
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title><%= h(yield(:title) || "Untitled") %></title>
<%= stylesheet_link_tag 'application' %>
<%= stylesheet_link_tag 'farbtastic' %>
Expand All @@ -14,14 +14,14 @@
<body>
<div id="container">
<div id="header">
<a id="logo" href="/" alt="MyIdeaDrawer"><img src="/images/logo.jpg" width="435" height="115"></a>
<a id="logo" href="/"><img src="/images/logo.jpg" width="435" height="115" alt="MyIdeaDrawer" /></a>
<ul id="top_nav">
<% if logged_in? %>
<li><%= link_to "Projects", projects_url %></li>
<li><%= link_to "Log Out", logout_url %></li>
<% else %>
<li><%= link_to "Join", signup_url %></li>
<li><%= link_to "Log In", login_url + "?width=420&height=400", :class=> "thickbox" %></li>
<li><%= link_to "Log In", login_url + "?width=420&amp;height=400", :class=> "thickbox" %></li>
<% end %>
<li><%= link_to "About", about_url %></li>
<li><%= link_to "Tour", tour_url %></li>
Expand Down
2 changes: 1 addition & 1 deletion app/views/links/_latest.html.erb
@@ -1,5 +1,5 @@
<div class="item">
<h2><span>Links: (<%= current_project.links.count %>)</span><% if owner? %><span class="align_right"><%= link_to image_tag("/images/new_link_btn.png", :alt=>"New Link"), new_project_link_path(project_param) + "?width=630&height=250", :class => "thickbox" %></span><% end %></h2>
<h2><span>Links: (<%= current_project.links.count %>)</span><% if owner? %><span class="align_right"><%= link_to image_tag("/images/new_link_btn.png", :alt=>"New Link"), new_project_link_path(project_param) + "?width=630&amp;height=250", :class => "thickbox" %> &nbsp; <%= link_to image_tag("/images/manage_btn.png", :alt=>"Manage Links"), project_links_path(project_param) %><% end %></span></h2>
<ul class="linklist">
<%
if current_project.links.count > 0
Expand Down
2 changes: 1 addition & 1 deletion app/views/links/index.html.erb
@@ -1,7 +1,7 @@
<div id="left_col">
<% title "Browse Links for: " + current_project.name %>
<h1><%= yield(:title) %></h1>
<% if owner? %><%= link_to image_tag("/images/new_link_btn.png", :alt=>"New Link"), new_project_link_path(project_param) + "?width=630&height=250", :class => "thickbox" %> <% end %>
<% if owner? %><%= link_to image_tag("/images/new_link_btn.png", :alt=>"New Link"), new_project_link_path(project_param) + "?width=630&amp;height=250", :class => "thickbox" %> <% end %>
<ul class="linklist managelist">
<%
if current_project.links.count > 0
Expand Down
4 changes: 2 additions & 2 deletions app/views/notes/_form.html.erb
Expand Up @@ -8,8 +8,8 @@
</fieldset>
<fieldset>
<%= f.label :content %>
<%= f.text_area :content, :rows => 6 %>
<%= f.text_area :content, :rows => 10 %>
</fieldset>
<p class="align_right"><%= f.submit "Submit" %></p>
<p class="align_right"><%= f.submit "Save Note" %></p>
<% end %>
</div>
2 changes: 1 addition & 1 deletion app/views/photos/_form.html.erb
Expand Up @@ -9,5 +9,5 @@
<%= f.label :image %>
<%= f.file_field :image %>
</fieldset>
<p class="align_right"><%= f.submit "Submit" %></p>
<p class="align_right"><%= f.submit "Upload Photo" %></p>
<% end %>
4 changes: 2 additions & 2 deletions app/views/photos/_latest.html.erb
@@ -1,9 +1,9 @@
<div class="item">
<h2><span>Photos: (<%= current_project.photos.count %>)</span><% if owner? %><span class="align_right"><%= link_to image_tag("/images/new_photo_btn.png", :alt=>"New Photo"), new_project_photo_path(project_param) + "?width=510&height=230", :class => "thickbox" %> &nbsp; <%= link_to image_tag("/images/manage_btn.png", :alt=>"Manage Photos"), manage_project_photos_path(project_param) %></span><% end %></h2>
<h2><span>Photos: (<%= current_project.photos.count %>)</span><% if owner? %><span class="align_right"><%= link_to image_tag("/images/new_photo_btn.png", :alt=>"New Photo"), new_project_photo_path(project_param) + "?width=510&amp;height=230", :class => "thickbox" %> &nbsp; <%= link_to image_tag("/images/manage_btn.png", :alt=>"Manage Photos"), manage_project_photos_path(project_param) %></span><% end %></h2>
<%
if current_project.photos.count > 0
for photo in current_project.photos.recent(3) %>
<div class="thumb <%= cycle('normal', 'alt') %>">
<div class="thumb<%= cycle('', ' alt') %>">
<%= link_to image_tag(photo.image.url(:small)), photo.image.url, :class => "thickbox", :rel => current_project.name %>
<div class="name"><%= photo.name %><br /><%= photo.created_at.strftime("%b, %d %Y at %I:%M %p") %></div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions app/views/photos/index.html.erb
@@ -1,12 +1,12 @@
<div id="left_col">
<% title "Browse Photos for: " + current_project.name %>
<h1><%= yield(:title) %></h1>
<% if owner? %><%= link_to image_tag("/images/new_photo_btn.png", :alt=>"New Photo"), new_project_photo_path(project_param) + "?width=510&height=230", :class=> "thickbox" %> &nbsp; <%= link_to image_tag("/images/manage_btn.png", :alt=>"Manage Photos"), manage_project_photos_path(project_param) %><% end %>
<% if owner? %><%= link_to image_tag("/images/new_photo_btn.png", :alt=>"New Photo"), new_project_photo_path(project_param) + "?width=510&amp;height=230", :class=> "thickbox" %> &nbsp; <%= link_to image_tag("/images/manage_btn.png", :alt=>"Manage Photos"), manage_project_photos_path(project_param) %><% end %>
<br /><br />
<%
if current_project.photos.count > 0
for photo in current_project.photos %>
<div class="thumb <%= cycle('normal', 'alt') %>"">
<div class="thumb <%= cycle('normal', 'alt') %>">
<%= link_to image_tag(photo.image.url(:small)), photo.image.url, :class => "thickbox", :rel => current_project.name %>
<div class="name"><%= photo.name %><br /><%= photo.created_at.strftime("%b, %d %Y at %I:%M %p") %></div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions app/views/photos/manage.html.erb
@@ -1,7 +1,7 @@
<div id="left_col">
<% title "Manage Photos for: " + current_project.name %>
<h1><%= yield(:title) %></h1>
<% if owner? %><%= link_to image_tag("/images/new_photo_btn.png", :alt=>"New Photo"), new_project_photo_path(project_param) + "?width=510&height=230", :class=> "thickbox" %><% end %>
<% if owner? %><%= link_to image_tag("/images/new_photo_btn.png", :alt=>"New Photo"), new_project_photo_path(project_param) + "?width=510&amp;height=230", :class=> "thickbox" %><% end %>
<ul class="linklist managelist">
<%
if current_project.photos.count > 0
Expand All @@ -10,9 +10,9 @@
<%= image_tag photo.image.url(:tiny), :class => "tinythumb" %>
<span class="info"><%= link_to photo.name, photo.image.url %> <span class="date"><%= photo.created_at.strftime("%b, %d %Y at %I:%M %p") %></span></span>
<%= link_to image_tag("/images/delete_photo_btn.png", :alt => "Delete Photo"), [current_project, photo], :confirm => 'Are you sure?', :method => :delete, :class => "del_btn" %>
<div class="clear"><br /></div>
</li>
<% end %>
<div class="clear"><br /></div>
<% else %>
<li><em>This project has no photos.</em></li>
<% end %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/projects/_form.html.erb
Expand Up @@ -10,7 +10,7 @@
<%= f.label :description %>
<%= f.text_area :description, :rows => 6 %>
</fieldset>
<p class="align_right"><%= f.submit "Submit" %></p>
<p class="align_right"><%= f.submit "Save Project" %></p>

<% end %>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/screenshots/_form.html.erb
Expand Up @@ -10,7 +10,7 @@
<%= f.label :source_url %>
<%= f.text_field :source_url %>
</fieldset>
<p class="align_right"><%= f.submit "Submit" %></p>
<p class="align_right"><%= f.submit "Take Screenshot" %></p>
<% end %>
</div>

4 changes: 2 additions & 2 deletions app/views/screenshots/_latest.html.erb
@@ -1,9 +1,9 @@
<div class="item">
<h2><span>Photos: (<%= current_project.screenshots.count %>)</span><% if owner? %><span class="align_right"><%= link_to image_tag("/images/new_screenshot_btn.png", :alt=>"New Screenshot"), new_project_screenshot_path(project_param) + "?width=410&height=230", :class => "thickbox" %> &nbsp; <%= link_to image_tag("/images/manage_btn.png", :alt=>"Manage Screenshots"), manage_project_screenshots_path(project_param) %></span><% end %></h2>
<h2><span>Photos: (<%= current_project.screenshots.count %>)</span><% if owner? %><span class="align_right"><%= link_to image_tag("/images/new_screenshot_btn.png", :alt=>"New Screenshot"), new_project_screenshot_path(project_param) + "?width=410&amp;height=230", :class => "thickbox" %> &nbsp; <%= link_to image_tag("/images/manage_btn.png", :alt=>"Manage Screenshots"), manage_project_screenshots_path(project_param) %></span><% end %></h2>
<%
if current_project.screenshots.count > 0
for screenshot in current_project.screenshots.recent(3) %>
<div class="thumb <%= cycle('normal', 'alt') %>"">
<div class="thumb <%= cycle('normal', 'alt') %>">
<%= link_to image_tag(screenshot.image_url(150)), screenshot.source_url %>
<div class="name"><%= screenshot.name %><br /><%= screenshot.created_at.strftime("%b, %d %Y at %I:%M %p") %></div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/screenshots/index.html.erb
Expand Up @@ -6,7 +6,7 @@
<%
if current_project.screenshots.count > 0
for screenshot in current_project.screenshots %>
<div class="screenshot <%= cycle('normal', 'alt') %>"">
<div class="screenshot <%= cycle('normal', 'alt') %>">
<%= link_to image_tag(screenshot.image_url(300)), screenshot.source_url %> &nbsp; <%= link_to image_tag("/images/manage_btn.png", :alt=>"Manage Photos"), manage_project_screenshots_path(project_param) %>
<div class="name"><%= screenshot.name %><br /><%= screenshot.created_at.strftime("%b, %d %Y at %I:%M %p") %></div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions app/views/screenshots/manage.html.erb
@@ -1,7 +1,7 @@
<div id="left_col">
<% title "Manage Screenshots for: " + current_project.name %>
<h1><%= yield(:title) %></h1>
<% if owner? %><%= link_to image_tag("/images/new_screenshot_btn.png", :alt=>"New Screenshot"), new_project_screenshot_path(project_param) + "?width=410&height=230", :class => "thickbox" %> &nbsp; <%= link_to image_tag("/images/manage_btn.png", :alt=>"Manage Photos"), manage_project_screenshots_path(project_param) %><% end %>
<% if owner? %><%= link_to image_tag("/images/new_screenshot_btn.png", :alt=>"New Screenshot"), new_project_screenshot_path(project_param) + "?width=410&amp;height=230", :class => "thickbox" %> &nbsp; <%= link_to image_tag("/images/manage_btn.png", :alt=>"Manage Photos"), manage_project_screenshots_path(project_param) %><% end %>
<ul class="linklist managelist">
<%
if current_project.screenshots.count > 0
Expand All @@ -10,9 +10,9 @@
<%= image_tag screenshot.image_url(64), :class => "tinythumb" %>
<span class="info"><%= link_to screenshot.name, screenshot.source_url %> <span class="date"><%= screenshot.created_at.strftime("%b, %d %Y at %I:%M %p") %></span></span>
<%= link_to image_tag("/images/delete_screenshot_btn.png", :alt => "Delete Note"), [current_project, screenshot], :confirm => 'Are you sure?', :method => :delete, :class => "del_btn" %>
<div class="clear"><br /></div>
</li>
<% end %>
<div class="clear"><br /></div>
<% else %>
<li><em>This project has no screenshots.</em></li>
<% end %>
Expand Down
Binary file modified public/images/logo.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion public/stylesheets/application.css
Expand Up @@ -98,6 +98,8 @@ body .colorwell-selected { border: 1px solid #000; font-weight: bold; }
#sidebar .linklist li a:hover { background-position:bottom left; }

.hidden { display:none; }
.managelist, #left_col .linklist { border-top:1px solid #adc8cf; }
#left_col div .linklist { border-top:none; }
.managelist li { height:64px; }
.managelist .tinythumb { background:#abc6cd; width:64px; height:64px; margin-right:10px; float:left; }
.managelist span.info { display:block; height:64px; line-height:64px; font-size:12pt; width:450px; float:left; }
Expand All @@ -116,4 +118,9 @@ h1.main_title a { background:#fffba8; color:#333; }
.col a { text-decoration:underline; }
.col form { margin:10px 20px 10px 20px; border:5px solid #d2e1e4; }
.col form p.align_right { padding-right:20px; }
.col form fieldset input { width:150px; }
.col form fieldset input { width:150px; }
.pagination { clear:both; padding-top:10px; margin-top:10px; }
.pagination .disabled { display:block; float:left; background:#d2e1e4; color:#fff; padding:3px 5px; margin-right:5px; }
.pagination .current { display:block; background:#357fa6; float:left; color:#fff; padding:3px 5px; margin-right:5px; }
.pagination a { display:block; float:left; color:#fff; background:#adc8cf; padding:3px 5px; margin-right:5px; }
.pagination a:hover { background:#9c0a0d; text-decoration:none; }

0 comments on commit 3ef4760

Please sign in to comment.