Skip to content

Commit

Permalink
Remove link breaking leading slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakob37 committed Nov 15, 2024
1 parent c1f14df commit 7da61f8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ About changelog [here](https://keepachangelog.com/en/1.0.0/)
- Fixed some typos and removed console.logs
- Renamed docker compose processes to not be prefixed markus_
- Use sample id as individual id to link out from Gens home sample list
- Removes some leading `/` that were breaking links

## [2.1.2]
### Added
Expand Down
4 changes: 2 additions & 2 deletions gens/templates/generic_abort_error.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

{% block css_style %}
{{ super() }}
<link rel='stylesheet' href='{{ url_for('static', filename='/css/error.min.css') }}' type='text/css'>
<link rel='stylesheet' href='{{ url_for('static', filename='css/error.min.css') }}' type='text/css'>
{% endblock css_style %}

{% block body %}
<div class="content">
<p id="error-code">{{ error_code }}</p>
<img id="broken-dna" src="{{ url_for("static", filename='/svg/broken-dna.svg') }}" alt="broken DNA" />
<img id="broken-dna" src="{{ url_for("static", filename='svg/broken-dna.svg') }}" alt="broken DNA" />
<div class="error-msg-container">
<h1 class="headline">Something went wrong</h1>
<p>Gens encountered and error. Please contact the administrator to resolve this issue.</p>
Expand Down
4 changes: 2 additions & 2 deletions gens/templates/generic_exception_error.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

{% block css_style %}
{{ super() }}
<link rel='stylesheet' href='{{ url_for('static', filename='/css/error.min.css') }}' type='text/css'>
<link rel='stylesheet' href='{{ url_for('static', filename='css/error.min.css') }}' type='text/css'>
{% endblock css_style %}

{% block body %}
<div class="content">
<img id="broken-dna" src="{{ url_for("static", filename='/svg/broken-dna.svg') }}" alt="broken DNA" />
<img id="broken-dna" src="{{ url_for("static", filename='svg/broken-dna.svg') }}" alt="broken DNA" />
<div class="error-msg-container">
<h1 class="headline">Error - {{ error_type }}</h1>
{% for row in message %}
Expand Down
4 changes: 2 additions & 2 deletions gens/templates/sample_not_found.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

{% block css_style %}
{{ super() }}
<link rel='stylesheet' href='{{ url_for('static', filename='/css/error.min.css') }}' type='text/css'>
<link rel='stylesheet' href='{{ url_for('static', filename='css/error.min.css') }}' type='text/css'>
{% endblock css_style %}

{% block body %}
<div class="content">
<img id="broken-dna" src="{{ url_for("static", filename='/svg/broken-dna.svg') }}" alt="broken DNA" />
<img id="broken-dna" src="{{ url_for("static", filename='svg/broken-dna.svg') }}" alt="broken DNA" />
<div class="error-msg-container">
<h1 class="headline">Missing sample</h1>
<p>The sample <span class="bold">{{ file_name }}</span> has not been added to Gens database. Please contact the administrator to resolve this issue.</p>
Expand Down

0 comments on commit 7da61f8

Please sign in to comment.