Skip to content

Commit 9abacfa

Browse files
committed
Get the home page download link working.
1 parent 98461d3 commit 9abacfa

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ GitHub Pages. It is already live on
1717

1818
- We cannot read file sizes or modification times on GitHub Pages, so we
1919
manually populate this data with JSON files.
20+
- The download confirmation page has been removed in favor of direct links.
2021
- Banner and Open Hub randomization now require JavaScript to be enabled.
2122
- The "Changes since last visit" and "Website Statistics" features have been
2223
removed.

_includes/program/preamble.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h2 class='modal-title'>{{ include.title }}</h2>
1919
</p><p>
2020
Or you can try out the 2 self-installing models on <a href="/">our home page</a> - both free of charge.
2121
</p><p class="text-right">
22-
<a href='/download/program/confirm.php?file={{ include.download_file }}' class='btn download_button'>Download</a>
22+
<a href="{% include file_url.html file=include.file %}" class="btn download_button">Download</a>
2323
<button type="button" data-dismiss="modal" aria-hidden="true" class="btn btn-default cancel_button">Cancel</button>
2424
</p>
2525
</div><!-- End of Modal body -->

_layouts/homepage.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
</div>
3131

32-
{%- include program/preamble.html modal="modal1" title="Download Open Rails" file="download_stable" -%}
32+
{%- include program/preamble.html modal="modal1" title="Download Open Rails" file="stable_installer" -%}
3333

3434
<!-- Modal -->
3535
<style>

0 commit comments

Comments
 (0)