Skip to content

Commit 7adb967

Browse files
authored
Merge pull request #154 from ppalms/dev
Linkify tools badge in user profile
2 parents 52feadc + 987b6d7 commit 7adb967

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

toolhub_auth/templates/auth/profile.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
</div>
1212
<h2>{{ profile_user }}</h2>
1313
<div class="my-2">
14-
<span class="badge badge-primary">
14+
<a href="{{ url('tools:home') }}?user={{request.user.pk}}" class="badge badge-primary">
1515
{% trans tool_count=profile_user.tools.visible_to_user(user).count() %}
1616
{{ tool_count }} Tools
1717
{% endtrans %}
18-
</span>
18+
</a>
1919
</div>
2020
<div class="my-2">
2121
<h3>Borrowing <span class="badge badge-primary">{{ borrowing.count() }}</span></h3>

0 commit comments

Comments
 (0)