Add a stylesheet targeted at print media to get nice printouts.

This commit is contained in:
Tom Hughes 2007-11-07 22:26:10 +00:00
parent 5ac70d8946
commit 0c90905495
4 changed files with 46 additions and 0 deletions

View file

@ -5,6 +5,7 @@
<%= javascript_include_tag 'site' %>
<!--[if lt IE 7]><%= javascript_include_tag 'pngfix' %><![endif]--> <!-- thanks, microsoft! -->
<%= stylesheet_link_tag 'site' %>
<%= stylesheet_link_tag 'print', :media => "print" %>
<%= tag("link", { :rel => "search", :type => "application/opensearchdescription+xml", :title => "OpenStreetMap Search", :href => "/opensearch/osm.xml" }) %>
<title>OpenStreetMap<%= ' | '+@title if @title %></title>
</head>

View file

@ -12,6 +12,20 @@
<div id="permalink"><a href="/" id="permalinkanchor">Permalink</a></div>
</div>
<div id="attribution">
<table width="100%">
<tr>
<td align="left">http://creativecommons.org/licenses/by-sa/2.0/</td>
<td align="right">http://openstreetmap.org/</td>
</tr>
<tr>
<td colspan="2" align="center">
Licensed under the Creative Commons Attribution-Share Alike 2.0 license
by the OpenStreetMap project and it's contributors.
</td>
</table>
</div>
<% if params['mlon'] and params['mlat'] %>
<% marker = true %>
<% mlon = params['mlon'] %>