Skip to content

Commit

Permalink
Remove unnecessary post version link, if user doesn't have access to it
Browse files Browse the repository at this point in the history
  • Loading branch information
danon committed Oct 11, 2024
1 parent 6a3cc76 commit 6ed886a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions resources/js/components/forum/post.vue
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,14 @@
<div v-if="post.edit_count" class="edit-info">
<strong>
<a class="btn-history"
:title="post.permissions.update ? 'Zobacz historię zmian tego posta' : ''"
:href="post.permissions.update ? `/Forum/Post/Log/${post.id}` : ''">
title="Zobacz historię zmian tego posta"
:href="'/Forum/Post/Log/' + post.id"
v-if="post.permissions.update">
<vue-icon name="postEditHistoryShow"/>
</a>
<span class="btn-history" v-else>
<vue-icon name="postEditHistoryShow"/>
</span>
edytowany {{ post.edit_count }}x,
ostatnio:
<vue-username :user="post.editor"/>
Expand Down

0 comments on commit 6ed886a

Please sign in to comment.