From b5d07bb5759c67609dbb1aaaa56fc374509260f0 Mon Sep 17 00:00:00 2001 From: Houtan Bastani <houtan@dynare.org> Date: Mon, 10 Dec 2018 14:52:07 +0100 Subject: [PATCH] change snapshot download addresses to accord with the way files are stored on server --- _includes/download-snapshot.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/_includes/download-snapshot.html b/_includes/download-snapshot.html index 0397360..3d2c300 100644 --- a/_includes/download-snapshot.html +++ b/_includes/download-snapshot.html @@ -22,7 +22,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 = '{{ snapshot.path }}'" onkeypress="document.location = '{{ snapshot.path }}'"> + <div class="download_row" onclick="document.location = 'http://eris.dynare.org/snapshot/windows/{{ snapshot.name }}'" onkeypress="document.location = 'http://eris.dynare.org/snapshot/windows/{{ snapshot.name }}'"> <div class="download_cell_left"><i class="icon-document-download"></i> {{ snapshot.modified_time | date: "%Y %b %d %R" }}</div> <div class="download_cell_right"><a href="#">{{ snapshot.name }}</a></div> </div> @@ -35,7 +35,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 = '{{ snapshot.path }}'" onkeypress="document.location = '{{ snapshot.path }}'"> + <div class="download_row" onclick="document.location = 'http://eris.dynare.org/snapshot/windows-zip/{{ snapshot.name }}'" onkeypress="document.location = 'http://eris.dynare.org/snapshot-zip/windows/{{ snapshot.name }}'"> <div class="download_cell_left"><i class="icon-document-download"></i> {{ snapshot.modified_time | date: "%Y %b %d %R" }}</div> <div class="download_cell_right"><a href="#">{{ snapshot.name }}</a></div> </div> @@ -57,7 +57,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 = '{{ snapshot.path }}'" onkeypress="document.location = '{{ snapshot.path }}'"> + <div class="download_row" onclick="document.location = 'http://eris.dynare.org/snapshot/macosx/{{ snapshot.name }}'" onkeypress="document.location = 'http://eris.dynare.org/snapshot/macosx/{{ snapshot.name }}'"> <div class="download_cell_left"><i class="icon-document-download"></i> {{ snapshot.modified_time | date: "%Y %b %d %R" }}</div> <div class="download_cell_right"><a href="#">{{ snapshot.name }}</a></div> </div> @@ -83,7 +83,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 = '{{ snapshot.path }}'" onkeypress="document.location = '{{ snapshot.path }}'"> + <div class="download_row" onclick="document.location = 'http://eris.dynare.org/snapshot/source/{{ snapshot.name }}'" onkeypress="document.location = 'http://eris.dynare.org/snapshot/source/{{ snapshot.name }}'"> <div class="download_cell_left"><i class="icon-document-download"></i> {{ snapshot.modified_time | date: "%Y %b %d %R" }}</div> <div class="download_cell_right"><a href="#">{{ snapshot.name }}</a></div> </div> -- GitLab