Skip to content

Commit

Permalink
Fixes #686 - remove the download link from the home page
Browse files Browse the repository at this point in the history
(cherry picked from commit 95e38186ce3fdbfda0360a7cdae9c68878282838)
  • Loading branch information
martin-g committed Jul 26, 2017
1 parent 8a96bb2 commit ed04f07
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ <h1>Wicket-Bootstrap</h1>

<p class="download-info">
<a href="https://github.com/l0rdn1kk0n/wicket-bootstrap/" class="btn btn-primary btn-lg">View project on GitHub</a>
<a wicket:id="download-link" href="https://github.com/l0rdn1kk0n/wicket-bootstrap/tarball/bootstrap-0.5.2" name="download" class="btn btn-primary btn-lg">Download Wicket-Bootstrap
<small>(v0.5.2)</small>
</a>
</p>

<div class="row">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
package de.agilecoders.wicket.samples.pages;

import org.apache.wicket.AttributeModifier;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.model.Model;
import org.apache.wicket.request.mapper.parameter.PageParameters;
import org.wicketstuff.annotation.mount.MountPath;

Expand All @@ -22,12 +19,5 @@ public class HomePage extends BasePage {
*/
public HomePage(PageParameters parameters) {
super(parameters);

String version = getProperties().getProperty("bootstrap.fix.version");
Label downloadButton = new Label("download-link", Model.of("Download <small>(" + version + ")</small>"));
downloadButton.setEscapeModelStrings(false);
downloadButton.add(new AttributeModifier("href", Model.of(getProperties().getProperty("bootstrap.downloadUrl"))));

add(downloadButton);
}
}

0 comments on commit ed04f07

Please sign in to comment.