Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show deprecation note on landing page when planktoscope.local is used #64

Merged
merged 1 commit into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ All dates in this file are given in the [UTC time zone](https://en.wikipedia.org

## Unreleased

### Changed

- All links now open in new tabs (see [PlanktoScope#231](https://github.com/PlanktoScope/PlanktoScope/pull/231)).
- The landing page now shows a deprecation notice to the user if it is accessed using the `planktoscope.local` hostname.

## 0.1.7 - 2023-09-06

### Changed
Expand Down
11 changes: 11 additions & 0 deletions web/templates/home/home.page.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@
documentation for operating your PlanktoScope, and other information to help you use your PlanktoScope.
</p>

{{if eq "planktoscope.local" $hostname}}
<article class="message is-warning">
<div class="message-body">
Note: the hostname <code>planktoscope.local</code> has been deprecated and should no
longer be used. Instead, you can use
<a href="//pkscope-{{$machineName}}.local">pkscope-{{$machineName}}.local</a>
or <a href="//pkscope.local">pkscope.local</a> to access this PlanktoScope.
</div>
</article>
{{end}}

<h2>Browser applications</h2>
<p>PlanktoScope operation:</p>
<ul>
Expand Down
Loading