more basic framework

This commit is contained in:
Steve Coast 2006-07-28 21:53:30 +00:00
parent 15f23469d9
commit b4c0bfd8fa
20 changed files with 1084 additions and 448 deletions

View file

@ -0,0 +1,22 @@
<html>
<head>
<%= javascript_include_tag 'main.js' %>
<!--[if IE]><%= javascript_include_tag 'pngfix.js' %><![endif]--> <!-- thanks, microsoft! -->
<%= javascript_include_tag 'tile.js' %>
<%= javascript_include_tag 'site.js' %>
<script type="text/javascript">
lon = <% if cgi['lon'].length > 0 then print cgi['lon'].to_f else print '0' end %>;
lat = <% if cgi['lat'].length > 0 then print cgi['lat'].to_f else print '0' end %>;
zoom = <% if cgi['zoom'].length > 0 then print cgi['zoom'].to_f else print '0' end %>;
<% if cgi['scale'].length > 0 then %>
zoom = Math.log(360.0/(( <% print cgi['scale'].to_f() %> ) * 512.0)) / Math.log(2.0);
<% end %>
</script>
<link rel="stylesheet" type="text/css" href="/css/style.css" />
<title>OpenStreetMap</title>
</head>
<body>
<%= @content_for_layout %>
</body>
</html>

4
app/views/user/new.rhtml Normal file
View file

@ -0,0 +1,4 @@
create a user