Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
kk_Ataka
committed
Apr 18, 2012
1 parent
246645e
commit 809a1d3
Showing
3 changed files
with
38 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,6 @@ | ||
<html> | ||
<head> | ||
</head> | ||
<body> | ||
<h1>Welcome</h1> | ||
<ul> | ||
<% @ads.each do |ad| %> | ||
<li><a href='/ads/<%= ad.id %>'><%= ad.name %></a></li> | ||
<% end %> | ||
</ul> | ||
</body> | ||
</html> | ||
<h1>Welcome</h1> | ||
<ul> | ||
<% @ads.each do |ad| %> | ||
<li><a href='/ads/<%= ad.id %>'><%= ad.name %></a></li> | ||
<% end %> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,7 @@ | ||
<html> | ||
<head> | ||
</head> | ||
<body> | ||
<h1>Welcome</h1> | ||
<b>Name:</b><%= @ad.name %> | ||
<b>Description:</b><%= @ad.description %> | ||
<b>Price:</b><%= @ad.price %> | ||
<b>Seller Id:</b><%= @ad.seller_id %> | ||
<b>Email:</b><%= @ad.email %> | ||
<b>Img:</b><img src='<%= @ad.img_url %>' /> | ||
</body> | ||
</html> | ||
<h1>Welcome</h1> | ||
<b>Name:</b><%= @ad.name %> | ||
<b>Description:</b><%= @ad.description %> | ||
<b>Price:</b><%= @ad.price %> | ||
<b>Seller Id:</b><%= @ad.seller_id %> | ||
<b>Email:</b><%= @ad.email %> | ||
<b>Img:</b><img src='<%= @ad.img_url %>' /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!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> | ||
<title>Ads: <%= controller.action_name %></title> | ||
<%= stylesheet_link_tag 'default.css' %> | ||
</head> | ||
<body> | ||
<div id="wrapper"> | ||
<div id="header"> | ||
<div> | ||
<h1>MeBay</h1> | ||
<ul id="nav"> | ||
<li><a href="/ads/">All Ads</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
<div id="content"> | ||
<%= yield %> | ||
</div> | ||
<div id="clearfooter"></div> | ||
</div> | ||
<div id="footer"></div> | ||
</body> | ||
</html> |