Skip to content

Commit

Permalink
Don't open links in new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
aebruno committed Mar 9, 2022
1 parent 1f60dd9 commit 274bbaa
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h2>Allocations that require payment</h2>
<tbody>
{% for allocation in allocation_list %}
<tr>
<td><a target="_blank" href="{% url 'allocation-invoice-detail' allocation.pk %}">{{allocation.pk}}</td>
<td><a href="{% url 'allocation-invoice-detail' allocation.pk %}">{{allocation.pk}}</td>
<td>{{allocation.get_resources_as_string}}</td>
<td>{{allocation.status}}</td>
<td>{{allocation.project.pi.username }}</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ <h2>Allocations</h2>
<tbody>
{% for allocation in allocation_list %}
<tr>
<td><a target="_blank" href="/allocation/{{allocation.id}}/">{{ allocation.id }}</a></td>
<td class="text-nowrap"><a target="_blank"
<td><a href="/allocation/{{allocation.id}}/">{{ allocation.id }}</a></td>
<td class="text-nowrap"><a
href="/project/{{allocation.project.id}}/">{{ allocation.project.title|truncatechars:50 }}</a></td>
<td class="text-nowrap">{{allocation.project.pi.first_name}} {{allocation.project.pi.last_name}}
({{allocation.project.pi.username}})</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h2>Pending Project Reviews</h2>
<tbody>
{% for project_review in project_review_list %}
<tr>
<td><a target="_blank" href="{% url 'project-detail' project_review.project.pk %}">{{project_review.project.title|truncatechars:50}}</a></td>
<td><a href="{% url 'project-detail' project_review.project.pk %}">{{project_review.project.title|truncatechars:50}}</a></td>
<td >{{ project_review.created|date:"M. d, Y" }}</td>
<td>{{project_review.project.pi.first_name}} {{project_review.project.pi.last_name}} ({{project_review.project.pi.username}})</td>
<td >{{ project_review.project.latest_grant.modified|date:"M. d, Y"|default:"No grants" }}</td>
Expand Down
2 changes: 1 addition & 1 deletion coldfront/core/resource/templates/resource_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ <h2>Resources</h2>
<tbody>
{% for resource in resource_list %}
<tr>
<td><a target="_blank" href="/resource/{{resource.id}}/">{{ resource.id }}</a></td>
<td><a href="/resource/{{resource.id}}/">{{ resource.id }}</a></td>
<td>{{ resource }}</td>
<td>{{ resource.parent_resource }}</td>
<td>{{ resource.resource_type.name }}</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<td>{{ user.last_name }}</td>
<td class="text-nowrap">
{% for allocation in allocations %}
<a target="_blank" href="{% url 'allocation-detail' allocation.pk %}">{{ allocation.get_parent_resource.name }} ({{ allocation.get_parent_resource.resource_type.name }})</a> {% if 'slurm' in allocation.get_information %} -- {{allocation.get_information}} {% else %} <br> {% endif %}
<a href="{% url 'allocation-detail' allocation.pk %}">{{ allocation.get_parent_resource.name }} ({{ allocation.get_parent_resource.resource_type.name }})</a> {% if 'slurm' in allocation.get_information %} -- {{allocation.get_information}} {% else %} <br> {% endif %}
{% endfor %}
</td>
</tr>
Expand Down

0 comments on commit 274bbaa

Please sign in to comment.