Skip to content

Commit 4508d16

Browse files
committed
Merge pull request #36 from scala-ide/fix-nightlies-links
Removed trailing `/site` from nightlies update-sites
2 parents d0783ec + f46df48 commit 4508d16

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

_includes/download-box.txt

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
<div class="download-section">
2+
{% unless fullDownloadUrl %}
3+
{% capture fullDownloadUrl %}{{ downloadUrl }}/site{% endcapture %}
4+
{% endunless %}
25
<div id="{{ divId }}" class="download-link" title="URL Copied To Clipboard" data-content="To install the Scala IDE for Eclipse 3.7 (Indigo), open Eclipse, go to 'Help > Install New Software', and paste this URL into the dialog box. Then, follow the on-screen instructions from there.">
3-
{{ downloadUrl }}/site
6+
{{ fullDownloadUrl }}
47
</div>
58
<script type="text/javascript" charset="utf-8">
69
$(window).load(function() {
710

811
var clip = new ZeroClipboard.Client();
912
clip.setHandCursor( true );
10-
clip.setText("{{ downloadUrl }}/site");
13+
clip.setText("{{ fullDownloadUrl }}");
1114
clip.glue("{{ divId }}");
1215

1316
});
@@ -23,3 +26,4 @@
2326
</div>
2427

2528
{% assign zipUrl = nil %}
29+
{% assign fullDownloadUrl = nil %}

download/nightly.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Scala IDE Lithium will target Eclipse 4.2 (Juno), but the transition has not bee
2424
#### For Scala 2.10.x
2525

2626
{% assign divId = 'download-40-210' %}
27-
{% assign downloadUrl = 'http://download.scala-ide.org/nightly-scala-ide-4.0.x-210x' %}
27+
{% assign fullDownloadUrl = 'http://download.scala-ide.org/nightly-scala-ide-4.0.x-210x' %}
2828
{% assign zipUrl = 'http://download.scala-ide.org/nightly-scala-ide-4.0.x-210x.zip' %}
2929

3030
{% include download-box.txt %}
@@ -40,7 +40,7 @@ The Scala IDE 3.0.x build contains fixes to be included in future maintenance re
4040
#### For Scala 2.10.x
4141

4242
{% assign divId = 'download-30-210' %}
43-
{% assign downloadUrl = 'http://download.scala-ide.org/nightly-scala-ide-3.0.x-210x' %}
43+
{% assign fullDownloadUrl = 'http://download.scala-ide.org/nightly-scala-ide-3.0.x-210x' %}
4444
{% assign zipUrl = 'http://download.scala-ide.org/nightly-scala-ide-3.0.x-210x.zip' %}
4545

4646
{% include download-box.txt %}
@@ -59,7 +59,7 @@ If you are using Eclipse 3.8 or Eclipse 4.2, codename Juno, make sure to install
5959

6060
#### For Scala 2.10.x
6161
{% assign divId = 'download-30-210-juno' %}
62-
{% assign downloadUrl = 'http://download.scala-ide.org/nightly-scala-ide-juno-210x' %}
62+
{% assign fullDownloadUrl = 'http://download.scala-ide.org/nightly-scala-ide-juno-210x' %}
6363
{% assign zipUrl = 'http://download.scala-ide.org/nightly-scala-ide-juno-210x.zip' %}
6464

6565
{% include download-box.txt %}

0 commit comments

Comments
 (0)