Created
August 19, 2011 09:30
-
-
Save shreyas-satish/1156444 to your computer and use it in GitHub Desktop.
City layout
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
<% content_for :head do %> | |
<title><%= @current_city.site_name %> : <%= @current_city.name %> Governance Observatory : Homepage</title> | |
<% end %> | |
<div class = 'main-content'> | |
<!-- Some content --> | |
</div> | |
<% content_for :scripts do %> | |
<script> | |
$(function(){ | |
initMap(); | |
$(".selected-item").removeClass('selected-item'); | |
$("#home").addClass('selected-item') | |
$("#list_option").hide(); | |
$("#map_view").hide(); | |
$('#list_option').click(function(){ | |
$("#list_option").hide(); | |
$("#map_option").show(); | |
$("#map_view").hide(); | |
$("#list_view").show(); | |
}); | |
$('#map_option').click(function(){ | |
$("#map_option").hide(); | |
$("#list_option").show(); | |
$("#list_view").hide(); | |
$("#map_view").show(); | |
}); | |
}); | |
</script> | |
<% end %> |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<%= include_stylesheets :city, :media => 'all' %> | |
<%= include_javascripts :common %> | |
<%= csrf_meta_tag %> | |
<link rel="shortcut icon" href="/favicon.ico" /> | |
<%= yield(:head) %> | |
<noscript> | |
Enable Javascript to get the complete experience. | |
</noscript> | |
<%= render 'shared/google_analytics.js.erb' %> | |
</head> | |
<body> | |
<div class = 'container'> | |
<% if content_for?(:header) %> | |
<%= yield :header %> | |
<% else %> | |
<%= render 'layouts/header' %> | |
<% end %> | |
<%= yield(:content_headers) if content_for?(:content_headers) %> | |
<div class = 'content'> | |
<%= yield %> | |
<%= render 'layouts/footer' %> | |
</div> | |
</div> | |
<%= yield :scripts %> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment