Skip to content
This repository has been archived by the owner on Jul 30, 2023. It is now read-only.

Commit

Permalink
Fixed: Task previous url
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcOrfilaCarreras committed Jan 31, 2023
1 parent 7ca2264 commit b8e74de
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion frontend/templates/tasks/view.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
{% block content %}
<div class="content">
<!-- Title -->
<h1 class="items-center text-3xl font-extrabold text-white flex"><a href="{{ previous_url }}"><svg class="w-6 h-6" fill="white" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M7.707 14.707a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l2.293 2.293a1 1 0 010 1.414z" clip-rule="evenodd"></path></svg></a>&nbsp;{{ task }}</h1>
<h1 class="items-center text-3xl font-extrabold text-white flex">
{% if previous_url is not none %}
<a href="{{ previous_url }}"><svg class="w-6 h-6" fill="white" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M7.707 14.707a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l2.293 2.293a1 1 0 010 1.414z" clip-rule="evenodd"></path></svg></a>&nbsp;{{ task }}
{% else %}
<a href="/tasks"><svg class="w-6 h-6" fill="white" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M7.707 14.707a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l2.293 2.293a1 1 0 010 1.414z" clip-rule="evenodd"></path></svg></a>&nbsp;{{ task }}
{% endif %}
</h1>


{% for h in data["Data"] %}
Expand Down

0 comments on commit b8e74de

Please sign in to comment.