change snapshot download addresses to accord with the way files are stored on server

parent ab291c39
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
{% assign snapshot_files = (site.static_files | where: "snapshot", "windows-exe" | sort: 'modified_time') | reverse %} {% assign snapshot_files = (site.static_files | where: "snapshot", "windows-exe" | sort: 'modified_time') | reverse %}
{% for snapshot in snapshot_files %} {% for snapshot in snapshot_files %}
{% if snapshot.extname == ".exe" %} {% 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>&nbsp;{{ snapshot.modified_time | date: "%Y %b %d %R" }}</div> <div class="download_cell_left"><i class="icon-document-download"></i>&nbsp;{{ snapshot.modified_time | date: "%Y %b %d %R" }}</div>
<div class="download_cell_right"><a href="#">{{ snapshot.name }}</a></div> <div class="download_cell_right"><a href="#">{{ snapshot.name }}</a></div>
</div> </div>
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
{% assign snapshot_files = (site.static_files | where: "snapshot", "windows-zip" | sort: 'modified_time') | reverse %} {% assign snapshot_files = (site.static_files | where: "snapshot", "windows-zip" | sort: 'modified_time') | reverse %}
{% for snapshot in snapshot_files %} {% for snapshot in snapshot_files %}
{% if snapshot.extname == ".zip" %} {% 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>&nbsp;{{ snapshot.modified_time | date: "%Y %b %d %R" }}</div> <div class="download_cell_left"><i class="icon-document-download"></i>&nbsp;{{ snapshot.modified_time | date: "%Y %b %d %R" }}</div>
<div class="download_cell_right"><a href="#">{{ snapshot.name }}</a></div> <div class="download_cell_right"><a href="#">{{ snapshot.name }}</a></div>
</div> </div>
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
{% assign snapshot_files = (site.static_files | where: "snapshot", "macosx" | sort: 'modified_time') | reverse %} {% assign snapshot_files = (site.static_files | where: "snapshot", "macosx" | sort: 'modified_time') | reverse %}
{% for snapshot in snapshot_files %} {% for snapshot in snapshot_files %}
{% if snapshot.extname == ".zip" %} {% 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>&nbsp;{{ snapshot.modified_time | date: "%Y %b %d %R" }}</div> <div class="download_cell_left"><i class="icon-document-download"></i>&nbsp;{{ snapshot.modified_time | date: "%Y %b %d %R" }}</div>
<div class="download_cell_right"><a href="#">{{ snapshot.name }}</a></div> <div class="download_cell_right"><a href="#">{{ snapshot.name }}</a></div>
</div> </div>
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
{% assign snapshot_files = (site.static_files | where: "snapshot", "source" | sort: 'modified_time') | reverse %} {% assign snapshot_files = (site.static_files | where: "snapshot", "source" | sort: 'modified_time') | reverse %}
{% for snapshot in snapshot_files %} {% for snapshot in snapshot_files %}
{% if snapshot.extname == ".xz" %} {% 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>&nbsp;{{ snapshot.modified_time | date: "%Y %b %d %R" }}</div> <div class="download_cell_left"><i class="icon-document-download"></i>&nbsp;{{ snapshot.modified_time | date: "%Y %b %d %R" }}</div>
<div class="download_cell_right"><a href="#">{{ snapshot.name }}</a></div> <div class="download_cell_right"><a href="#">{{ snapshot.name }}</a></div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment