Skip to content

Commit

Permalink
facts added
Browse files Browse the repository at this point in the history
  • Loading branch information
allonhadaya committed May 1, 2012
1 parent 5be7146 commit f9bff3c
Show file tree
Hide file tree
Showing 6 changed files with 676 additions and 6 deletions.
3 changes: 3 additions & 0 deletions app/controllers/pages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ def interviews
@posts = Interview.all
render "posts"
end

def facts
end
end
1 change: 1 addition & 0 deletions app/views/layouts/_navigation.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
<li><%= link_to('Loans', '/loans') %></li>
<li><%= link_to('News', '/news') %></li>
<li><%= link_to('Interviews', '/interviews') %></li>
<li><%= link_to('Facts', '/facts') %></li>
</ul>
4 changes: 1 addition & 3 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,14 @@
<div class="container">
<div class="content">
<div class="row">
<div class="span12">
<div class="span8 offset2">
<%= render 'layouts/messages' %>
<%= yield %>
</div>
</div>
<footer></footer>
</div>
</div>
<!--! end of .container -->
</div>
<!--! end of #main -->
</body>
</html>
9 changes: 8 additions & 1 deletion app/views/pages/_link.html.erb
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
<a href="<%= link.url %>"><%= link.title %></a>
<dl>
<dt>
<a href="<%= link.url %>"><%= link.title %></a>
</dt>
<dd>
<%= link.description %>
</dd>
</dl>
11 changes: 9 additions & 2 deletions app/views/pages/_youtube.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<iframe width="960" height="720" src="<%= youtube.url %>" frameborder="0" allowfullscreen></iframe>
<div class="row">
<h1></h1><%= youtube.title %></h1>
</div>
<div class="row">
<iframe width="480" height="315" src="<%= youtube.url %>?wmode=transparent" frameborder="0" allowfullscreen></iframe>
<br/>
<%= youtube.description %>
</div>
<div class="row">
<%= youtube.description %>
</div>
Loading

0 comments on commit f9bff3c

Please sign in to comment.