Skip to content
Snippets Groups Projects
Verified Commit 93a01a85 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Use secure download locations for the snapshot

parent 8a81b1f1
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@
{% assign snapshot_files = (site.static_files | where: "snapshot", "windows-exe" | sort: 'modified_time') | reverse %}
{% for snapshot in snapshot_files %}
{% if snapshot.extname == ".exe" %}
<div class="download_row" onclick="document.location = 'http://www.dynare.org/snapshot/windows/{{ snapshot.name }}'" onkeypress="document.location = 'http://www.dynare.org/snapshot/windows/{{ snapshot.name }}'">
<div class="download_row" onclick="document.location = 'https://www.dynare.org/snapshot/windows/{{ snapshot.name }}'" onkeypress="document.location = 'https://www.dynare.org/snapshot/windows/{{ snapshot.name }}'">
<div class="download_cell_left"><i class="fas fa-file-download"></i>&nbsp;{{ snapshot.modified_time | date: "%Y %b %d %R" }}</div>
<div class="download_cell_right"><a href="#">{{ snapshot.name }}</a></div>
</div>
......@@ -38,7 +38,7 @@
{% assign snapshot_files = (site.static_files | where: "snapshot", "windows-zip" | sort: 'modified_time') | reverse %}
{% for snapshot in snapshot_files %}
{% if snapshot.extname == ".zip" %}
<div class="download_row" onclick="document.location = 'http://www.dynare.org/snapshot/windows-zip/{{ snapshot.name }}'" onkeypress="document.location = 'http://www.dynare.org/snapshot-zip/windows/{{ snapshot.name }}'">
<div class="download_row" onclick="document.location = 'https://www.dynare.org/snapshot/windows-zip/{{ snapshot.name }}'" onkeypress="document.location = 'https://www.dynare.org/snapshot-zip/windows/{{ snapshot.name }}'">
<div class="download_cell_left"><i class="fas fa-file-download"></i>&nbsp;{{ snapshot.modified_time | date: "%Y %b %d %R" }}</div>
<div class="download_cell_right"><a href="#">{{ snapshot.name }}</a></div>
</div>
......@@ -61,7 +61,7 @@
{% assign snapshot_files = (site.static_files | where: "snapshot", "macosx" | sort: 'modified_time') | reverse %}
{% for snapshot in snapshot_files %}
{% if snapshot.extname == ".zip" %}
<div class="download_row" onclick="document.location = 'http://www.dynare.org/snapshot/macosx/{{ snapshot.name }}'" onkeypress="document.location = 'http://www.dynare.org/snapshot/macosx/{{ snapshot.name }}'">
<div class="download_row" onclick="document.location = 'https://www.dynare.org/snapshot/macosx/{{ snapshot.name }}'" onkeypress="document.location = 'https://www.dynare.org/snapshot/macosx/{{ snapshot.name }}'">
<div class="download_cell_left"><i class="fas fa-file-download"></i>&nbsp;{{ snapshot.modified_time | date: "%Y %b %d %R" }}</div>
<div class="download_cell_right"><a href="#">{{ snapshot.name }}</a></div>
</div>
......@@ -87,7 +87,7 @@
{% assign snapshot_files = (site.static_files | where: "snapshot", "source" | sort: 'modified_time') | reverse %}
{% for snapshot in snapshot_files %}
{% if snapshot.extname == ".xz" %}
<div class="download_row" onclick="document.location = 'http://www.dynare.org/snapshot/source/{{ snapshot.name }}'" onkeypress="document.location = 'http://www.dynare.org/snapshot/source/{{ snapshot.name }}'">
<div class="download_row" onclick="document.location = 'https://www.dynare.org/snapshot/source/{{ snapshot.name }}'" onkeypress="document.location = 'https://www.dynare.org/snapshot/source/{{ snapshot.name }}'">
<div class="download_cell_left"><i class="fas fa-file-download"></i>&nbsp;{{ snapshot.modified_time | date: "%Y %b %d %R" }}</div>
<div class="download_cell_right"><a href="#">{{ snapshot.name }}</a></div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment