feat: add per-package pathway prediction

This commit is contained in:
2025-11-12 18:05:44 +13:00
parent 305fdc41fb
commit d9e4660fd4
4 changed files with 35 additions and 5 deletions

View File

@ -1,6 +1,9 @@
{% if meta.can_edit %}
<li>
<a href="{{ meta.server_url }}/predict">
<span class="glyphicon glyphicon-plus"></span> New Pathway</a>
</li>
<li>
<a
href="{% if meta.current_package %}{{ meta.current_package.url }}/predict{% else %}{{ meta.server_url }}/predict{% endif %}"
>
<span class="glyphicon glyphicon-plus"></span> New Pathway</a
>
</li>
{% endif %}

View File

@ -2,7 +2,13 @@
{% load static %}
{% block content %}
<div class="mx-auto w-full p-8">
<h1 class="h1 mb-4 text-3xl font-bold">Predict a Pathway</h1>
<h1 class="h1 mb-4 text-3xl font-bold">
Predict a Pathway
<span class="text-base-content/50 text-xs"
>in <strong>{{ meta.current_package.name|safe }}</strong>
</span>
</h1>
<form
id="predict_form"