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

fix to unrecognised transcript id #96

Merged
merged 1 commit into from
Nov 20, 2024
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
24 changes: 24 additions & 0 deletions tark/tark_web/templates/transcript_id_not_found.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{% extends "base.html" %}

{% block title %}Tark home{% endblock %}

{% load static %}

{% block header %}

{% include "navbar_include.html" with show_rest="true" %}

{% endblock %}



{% block content %}
<div class="container">

<p style="padding-top:40px;"></p>

<p style="font-weight: bold; font-size: 2rem; color: red">The stable id {{stable_id_with_version}} has no version. Please include the version as it is needed to find the transcript.</p>

{% include "search_big_box.html" %}

{% endblock %}
5 changes: 5 additions & 0 deletions tark/tark_web/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,11 @@ def feature_diff(request, feature, from_release, to_release, direction="changed"
def transcript_details(request, stable_id_with_version, search_identifier):
host_url = ApiUtils.get_host_url(request)

has_stable_id_version = len(stable_id_with_version.split(".")) > 1

if not has_stable_id_version:
return render(request, 'transcript_id_not_found.html', context={'stable_id_with_version': stable_id_with_version})

# get assembly name
assembly_name = request.GET.get('assembly_name', '')

Expand Down
Loading