|
| 1 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
| 2 | + "http://www.w3.org/TR/html4/strict.dtd"> |
| 3 | + |
| 4 | +<html lang="en"> |
| 5 | + <head> |
| 6 | + <meta charset="utf-8" /> |
| 7 | + <title>Hackety Hack!</title> |
| 8 | + <%= stylesheet_link_tag "reset" %> |
| 9 | + <%= stylesheet_link_tag "ruby" %> |
| 10 | + <%= stylesheet_link_tag "application" %> |
| 11 | + <%= yield :head %> |
| 12 | + </head> |
| 13 | + <body> |
| 14 | + <%= image_tag "hhhello.png", :id => "hello" %> |
| 15 | + <div id="nav"> |
| 16 | + <%= link_to "Blog", blog_path %> | |
| 17 | + <%= link_to "Help", blog_path %> | |
| 18 | + <% if current_user %> |
| 19 | + <%= link_to "My messages", messages_path %> | |
| 20 | + <%= link_to "My page", user_path(current_user.username) %> | |
| 21 | + <%= link_to "Edit info", edit_user_path(current_user.username) %> | |
| 22 | + <%= link_to "Log out", logout_path %> |
| 23 | + <% else %> |
| 24 | + <%= link_to "Sign up", new_user_path %> | |
| 25 | + <%= link_to "Log in", login_path %> |
| 26 | + <% end %> |
| 27 | + </div> |
| 28 | + <div id="posts" class="clearfix"> |
| 29 | + <%= yield %> |
| 30 | + </div> |
| 31 | + <%= yield :view_javascript %> |
| 32 | + <script type="text/javascript"> |
| 33 | + //<![CDATA[ |
| 34 | + (function() { |
| 35 | + var links = document.getElementsByTagName('a'); |
| 36 | + var query = '?'; |
| 37 | + for(var i = 0; i < links.length; i++) { |
| 38 | + if(links[i].href.indexOf('#disqus_thread') >= 0) { |
| 39 | + query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&'; |
| 40 | + } |
| 41 | + } |
| 42 | + document.write('<script charset="utf-8" type="text/javascript" src="http://disqus.com/forums/hacketyhack/get_num_replies.js' + query + '"></' + 'script>'); |
| 43 | + })(); |
| 44 | + //]]> |
| 45 | + </script> |
| 46 | + </body> |
| 47 | +</html> |
0 commit comments