Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
summerblue committed Apr 25, 2017
1 parent 6b3d2c8 commit d142507
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/views/users/partials/articles.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
@endif
</ul>

@if ($user->article_count > count($articles))
@if (if_route('users.show') && $user->article_count > count($articles))
<div class="panel-footer" style="margin-top: 10px">
<a href="{{ route('users.articles', $user->id) }}" class="btn btn-default btn-sm">
所有文章
Expand Down
2 changes: 1 addition & 1 deletion resources/views/users/partials/topics.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</ul>


@if ($user->topic_count > count($topics))
@if (if_route('users.show') && $user->topic_count > count($topics))
<div class="panel-footer" style="margin-top: 10px">
<a href="{{ route('users.topics', $user->id) }}" class="btn btn-default btn-sm">
所有话题
Expand Down

0 comments on commit d142507

Please sign in to comment.