Skip to content

Instantly share code, notes, and snippets.

@zipkid
Created May 31, 2012 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zipkid/2845747 to your computer and use it in GitHub Desktop.
Save zipkid/2845747 to your computer and use it in GitHub Desktop.
content_for ...?
<!doctype html><html>
<head>
<title><%= title %></title>
<%= base_tag %>
%= content_for 'jsheader'
</head>
<body>
<ul>
<li><%= link_to index => begin %><%=l 'Index' %><% end %></li>
<li><%= link_to login => begin %><%=l 'Login' %><% end %></li>
<li><%= link_to logout => begin %><%=l 'Logout' %><% end %></li>
<li><%= link_to domoz_power => begin %><%=l 'Power Graphs (Login needed)' %><% end %></li>
<li><%= link_to domoz_temperature => begin %><%=l 'Temperature Graphs (Login needed)' %><% end %></li>
</li>
<%= content %>
</body>
</html>
% layout 'default', title 'Domoz Graphs';
<%= content_for jsheader => begin %>
<%= javascript 'js/jquery-1.7.2.min.js' %>
<% end %>
<p>
Domoz Power Graph page<br />
</p>
<p>
<img src="/domoz/graph/power-hogeweg/600/200/e-10m/now" /> <br />
<img src="/domoz/graph/power-hogeweg/600/200/e-1h/now" /> <br />
</p>
<!doctype html><html>
<head>
<title>Domoz Graphs</title>
<base href="http://mojo.home.zipkid.com" />
<script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>
</head>
<body>
<ul>
<li><a href="/">Index</a></li>
<li><a href="/login">Login</a></li>
<li><a href="/logout">Logout</a></li>
<li><a href="/domoz/power">Power Graphs (Login needed)</a></li>
<li><a href="/domoz/temperature">Temperature Graphs (Login needed)</a></li>
</li>
<script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>
<p>
Domoz Power Graph page<br />
</p>
<p>
<img src="/domoz/graph/power-hogeweg/600/200/e-10m/now" /> <br />
<img src="/domoz/graph/power-hogeweg/600/200/e-1h/now" /> <br />
</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment