<p>In <code>site/_resize.html.erb</code> and <code>site/_search.html.erb</code>, a<br><code>params[:action]</code> conditional is used to include code that should only run on<br>
the index action -- but it should be run on the export action too. Cleanest<br>
fix is to eliminate that action entirely.</p>
<hr>
<h4>You can merge this Pull Request by running:</h4>
<pre> git pull https://github.com/jfirebaugh/openstreetmap-website export_param</pre>
<p>Or view, comment on, or merge it at:</p>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/86'>https://github.com/openstreetmap/openstreetmap-website/pull/86</a></p>
<h4>Commit Summary</h4>
<ul>
<li>Use a param to trigger export rather than a separate action</li>
</ul>
<h4>File Changes</h4>
<ul>
<li><strong>M</strong> app/controllers/site_controller.rb (4)</li>
<li><strong>M</strong> app/views/layouts/site.html.erb (2)</li>
<li><strong>M</strong> app/views/site/index.html.erb (2)</li>
<li><strong>M</strong> config/routes.rb (1)</li>
<li><strong>M</strong> test/functional/site_controller_test.rb (16)</li>
</ul>
<h4>Patch Links</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/86.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/86.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/86.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/86.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">
—<br>
Reply to this email directly or <a href='https://github.com/openstreetmap/openstreetmap-website/pull/86'>view it on GitHub</a>.
</p>
<img src='https://github.com/notifications/beacon/J6T91GIPIyhU-8ti4GCGP98_UZTRAhtyIjAjorWDZ_k13siV3KLc836Plpl-bgwG.gif' height='1' width='1'>