Skip to content

Commit

Permalink
fix link on null
Browse files Browse the repository at this point in the history
  • Loading branch information
summerblue committed Mar 20, 2017
1 parent 0c9dee4 commit 1b2d691
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/views/users/partials/topics.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
<li class="list-group-item" >

@if (isset($is_blog))
<a href="{{ route('users.show', [$topic->user_id]) }}" title="{{{ $topic->user->name }}}" class="avatar-wrap">
<img class="avatar avatar-small" alt="{{{ $topic->user->name }}}" src="{{ $topic->user->present()->gravatar }}"/>
</a>
<a href="{{ route('users.show', [$topic->user_id]) }}" title="{{{ $topic->user->name }}}" class="avatar-wrap">
<img class="avatar avatar-small" alt="{{{ $topic->user->name }}}" src="{{ $topic->user->present()->gravatar }}"/>
</a>
@endif

<a href="{{ $topic->link() }}" title="{{{ $topic->title }}}" class="title">
{{{ str_limit($topic->title, '100') }}}
</a>

<span class="meta">
@if (isset($is_article))
@if ($topic->isArticle())

<a href="{{ $topic->blogs->first()->link() }}" title="{{{ $topic->blogs->first()->name }}}">
{{{ $topic->blogs->first()->name }}}
Expand Down

0 comments on commit 1b2d691

Please sign in to comment.