Skip to content

Instantly share code, notes, and snippets.

@d3chapma
Created June 22, 2010 18:14
Show Gist options
  • Save d3chapma/448843 to your computer and use it in GitHub Desktop.
Save d3chapma/448843 to your computer and use it in GitHub Desktop.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>LAUNCH-Tools</title>
<%= stylesheet_link_tag "blueprint/screen", :media => 'screen' %>
<%= stylesheet_link_tag "blueprint/print", :media => 'print' %>
<!--[if lt IE 8]> <%= stylesheet_link_tag "blueprint/ie", :media => 'screen' %> <![endif]-->
<%# files for the "date picker" %>
<%= stylesheet_link_tag "http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/redmond/jquery-ui.css", "application" %>
<%= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js",
"http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js", "tooltip.jquery", "application" %>
<%# the following are used for Ajax functionalities "Not needed?"%>
<!--
These are causing conflicts with the results page
If we absolutely have to use prototype, then we have to figure out how to make jquery compatibile, which is easy to do.
<%# javascript_include_tag :defaults %>
<%# javascript_include_tag 'prototype'%>
-->
</head>
<body>
<div class="container">
<div id="header" class="span-15">
<%= image_tag "header.gif", :alt => "Launch Tools" %>
</div>
<div id="user" class="span-9 last">
<% if current_user %>
Hello <%= current_user.first_name %> |
<%= current_user.email%>
<%= link_to "Edit My Profile", edit_user_path(:current) %> |
<%= link_to 'Logout', "/user_sessions/destroy" %>
<% else %>
<%= render :partial => "user_sessions/new" %>
<% end %>
</div>
<hr />
<% if current_user %>
<div id="menu" class="span-24 last">
<%= link_to "Manage Assessments", :controller => "assessments" %> |
<%= link_to "Take an Assessment", :controller => "assessment_takes" %> |
<%= link_to "Growth Plan", :controller => "goals" %>
</div>
<% end %>
<div id="content" class="span-24 last">
<div class="span-24 last">
<% unless flash.empty? %>
<% unless flash[:notice].nil? %>
<div class="span-24 last notice">
<%= flash[:notice] %>
</div>
<% end %>
<% unless flash[:error].nil? %>
<div class="span-24 last error">
<%= flash[:error] %>
</div>
<% end %>
<% unless flash[:success].nil? %>
<div id="flash" class="span-24 success">
<%= flash[:success] %>
</div>
<% end %>
<% end %>
</div>
<div class="span-24 last">
<%= yield %>
</div>
</div>
<hr />
<div id="footer">
© 2008 LAUNCH | LAUNCH is a program of Youth Unlimited (Toronto YFC)
</div>
</div>
</body>
</html>
!!!
%html
%head
%title LAUNCH-Tools
=stylesheet_link_tag "blueprint/screen", :media => 'screen'
=stylesheet_link_tag "blueprint/print", :media => 'print'
/[if IE]
=stylesheet_link_tag "blueprint/ie", :media => 'screen'
=stylesheet_link_tag "http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/redmond/jquery-ui.css", "application"
=javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js", "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js", "tooltip.jquery", "application"
%body
#container
#header
-image = image_tag "header.gif", :alt => "Launch Tools"
=link_to image, root_path
#user
-if current_user
Hello
=current_user.first_name
|
=link_to "Edit My Profile", edit_user_path(:current)
|
=link_to 'Logout', "/user_sessions/destroy"
- else
=render :partial => "user_sessions/new"
%hr
-if current_user
#menu
=link_to "Manage Assessments", :controller => "assessments"
|
=link_to "Take an Assessment", :controller => "assessment_takes"
|
=link_to "Growth Plan", :controller => "goals"
-unless flash.empty?
#flash
-unless flash[:notice].nil?
=flash[:notice]
-unless flash[:error].nil?
=flash[:error]
-unless flash[:success].nil?
=flash[:success]
#content
=yield
%hr
#footer
© 2008 LAUNCH | LAUNCH is a program of Youth Unlimited (Toronto YFC)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment