Skip to content

Commit

Permalink
When user is banned, do not show they topics
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengjinghua committed Aug 5, 2016
1 parent 7143f00 commit 52ed929
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/views/layouts/partials/sidebar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@
<ul class="list list-group ">

@foreach ($hot_topics as $hot_topic)
@if($hot_topic->user->is_banned !== 'yes')
<li class="list-group-item ">
<a href="{{ route('topics.show', $hot_topic->id) }}" class="popover-with-html" data-content="{{{ $hot_topic->title }}}">
<img class="media-object img-thumbnail avatar avatar-small inline-block " src="{{ $hot_topic->user->present()->gravatar }}">

{{{ $hot_topic->title }}}
</a>
</li>
@endif
@endforeach

</ul>
Expand Down

0 comments on commit 52ed929

Please sign in to comment.