Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Commit

Permalink
Directly Link Install Guide
Browse files Browse the repository at this point in the history
This patch makes the big installation button link directly to the
installation documentation for the latest release branch.
  • Loading branch information
lkiesow committed Mar 23, 2020
1 parent 80092ba commit 7e64d35
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
21 changes: 15 additions & 6 deletions _includes/software.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,32 @@
<div class="content-block">
<div class="content-block">
<a href="getting-started#try-it">
<div class="software-button" target="_blank">
<h3 class="button-headline">Demo</h3>
<img class="button-image" src="assets/img/try-it.jpg"/>
</div>
</a>
<a href="releases">

<a id="installbtn" href="releases">
<div class="software-button" >
<h3 class="button-headline">Install</h3>
<img class="button-image" src="assets/img/install-it.jpg"/>
</div>
</a>
</a>

<a href="getting-started#adopt-it" target="_blank">
<div class="software-button" >
<h3 class="button-headline">Adopt</h3>
<img class="button-image" src="assets/img/use-it.jpg"/>
</div>
</a>
</a>
</div>
<div class="content-more"><a href="getting-started" style="float:right;">More…</a></div>

<script type="application/javascript" src="https://docs.opencast.org/versions.js"></script>
<script type="application/javascript">
document.addEventListener("DOMContentLoaded", function() {
let latest = versions[1],
docs = 'https://docs.opencast.org/' + latest + '/admin/#installation/';
document.getElementById('installbtn').href = docs;
});
</script>
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
font-src data: https://fonts.gstatic.com https://use.fontawesome.com;
frame-src https://video4.virtuos.uos.de https://calendar.google.com https://map.opencast.org;
img-src 'self' https://apereo.org https://www.google-analytics.com;
script-src 'unsafe-inline' https://cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js https://www.google-analytics.com/analytics.js;
script-src 'unsafe-inline' https://cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js https://www.google-analytics.com/analytics.js https://docs.opencast.org/versions.js;
style-src 'self' 'unsafe-inline' https://cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/ https://fonts.googleapis.com/ https://use.fontawesome.com/releases/v5.0.13/css/ ">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#157878">
Expand Down

0 comments on commit 7e64d35

Please sign in to comment.