Skip to content

Commit

Permalink
Dynamically set home URL; remove broken h5ai link
Browse files Browse the repository at this point in the history
Bump GitHub Actions versions
  • Loading branch information
nathanweeks committed Aug 2, 2024
1 parent b2670ef commit 7e8bd34
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14
node-version: 16
cache: 'npm'
- run: npm ci
- run: npm run build
- run: tar -C build -czf build/h5ai-${GITHUB_REF_NAME}.tar.gz _h5ai
- uses: softprops/action-gh-release@v1
- uses: softprops/action-gh-release@v2
with:
fail_on_unmatched_files: true
files: build/h5ai-*.tar.gz
files: build/h5ai-*.tar.gz
6 changes: 4 additions & 2 deletions src/_h5ai/public/js/lib/view/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@ const {dom} = require('../util');
const SEL_ROOT = 'body';
const TPL_TOPBAR =
`<div id="topbar">
<a href="https://www.legumeinfo.org/">
<img src="https://www.legumeinfo.org/assets/img/lis-logo-small.png" alt="LIS - Legume Information System">
<a href="javascript: location.hostname.includes(\`soybase.org\`) ? window.location = \`https://www.soybase.org/\` : window.location = \`https://www.legumeinfo.org\`">
<img src="https://www.legumeinfo.org/assets/img/lis-logo-small.png" alt="Legume Information System logo">
</a>
<div id="toolbar"></div>
<div id="flowbar"></div>
<!--
<a id="backlink" href="https://larsjung.de/h5ai/" title="powered by h5ai - https://larsjung.de/h5ai/">
<div>powered</div>
<div>by h5ai</div>
</a>
-->
</div>`;
const TPL_MAINROW =
`<div id="mainrow">
Expand Down

0 comments on commit 7e8bd34

Please sign in to comment.