Skip to content
This repository has been archived by the owner on Jun 29, 2020. It is now read-only.

[WIP] Add AccountPermissionLogic #1037

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
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
10 changes: 6 additions & 4 deletions src/templates/personas/persona_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,12 @@ <h2 class="panel-title">{% trans "Accounts" %}</h2>
</div>
<div class="list-group">
{% for account in profile.accounts.all %}
<a class="list-group-item" href="{{ account.url }}">
<img src="{{ MEDIA_URL }}{{ account.service.icon }}" alt="{{ account.service.label }}">
<span class="list-group-item-text link">{{ account.username }}</span>
</a>
{% if user has 'profiles.view_account' of account %}
<a class="list-group-item" href="{{ account.url }}">
<img src="{{ MEDIA_URL }}{{ account.service.icon }}" alt="{{ account.service.label }}">
<span class="list-group-item-text link">{{ account.username }}</span>
</a>
{% endif %}
{% empty %}
<li class="list-group-item list-group-item-warning">{% trans "There are no accounts." %}</li>
{% endfor %}
Expand Down