Skip to content

Commit

Permalink
add topic operate hin
Browse files Browse the repository at this point in the history
  • Loading branch information
summerblue committed Aug 10, 2016
1 parent dc4ab24 commit d2b86ec
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions resources/views/topics/partials/topic_operate.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,33 @@
<div class="pull-right actions">

@if ($currentUser && $manage_topics )
<a data-ajax="post" id="topic-recomend-button" href="javascript:void(0);" data-url="{{ route('topics.recommend', [$topic->id]) }}" class="admin {{ $topic->is_excellent == 'yes' ? 'active' : ''}}" title="{{ lang('Mark as Excellent') }}">
<a data-ajax="post" id="topic-recomend-button" href="javascript:void(0);" data-url="{{ route('topics.recommend', [$topic->id]) }}" class="admin popover-with-html {{ $topic->is_excellent == 'yes' ? 'active' : ''}}" data-content="推荐主题,加精的帖子会出现在首页">
<i class="fa fa-trophy"></i>
</a>

@if ($topic->order >= 0)
<a data-ajax="post" id="topic-pin-button" href="javascript:void(0);" data-url="{{ route('topics.pin', [$topic->id]) }}" class="admin {{ $topic->order > 0 ? 'active' : '' }}" title="{{ lang('Pin it on Top') }}">
<a data-ajax="post" id="topic-pin-button" href="javascript:void(0);" data-url="{{ route('topics.pin', [$topic->id]) }}" class="admin popover-with-html {{ $topic->order > 0 ? 'active' : '' }}" data-content="帖子置顶,会在列表页置顶">
<i class="fa fa-thumb-tack"></i>
</a>
@endif

@if ($topic->order <= 0)
<a data-ajax="post" id="topic-sink-button" href="javascript:void(0);" data-url="{{ route('topics.sink', [$topic->id]) }}" class="admin {{ $topic->order < 0 ? 'active' : '' }}" title="{{ lang('Sink This Topic') }}">
<a data-ajax="post" id="topic-sink-button" href="javascript:void(0);" data-url="{{ route('topics.sink', [$topic->id]) }}" class="admin popover-with-html {{ $topic->order < 0 ? 'active' : '' }}" data-content="沉贴,帖子将会被降低排序优先级">
<i class="fa fa-anchor"></i>
</a>
@endif

<a data-method="delete" id="topic-delete-button" href="javascript:void(0);" data-url="{{ route('topics.destroy', [$topic->id]) }}" title="{{ lang('Delete') }}" class="admin">
<a data-method="delete" id="topic-delete-button" href="javascript:void(0);" data-url="{{ route('topics.destroy', [$topic->id]) }}" data-content="{{ lang('Delete') }}" class="admin popover-with-html">
<i class="fa fa-trash-o"></i>
</a>
@endif

@if ( $currentUser && ($manage_topics || $currentUser->id == $topic->user_id) )
<a id="topic-append-button" href="javascript:void(0);" title="{{ lang('Append') }}" class="admin" data-toggle="modal" data-target="#exampleModal">
<a id="topic-append-button" href="javascript:void(0);" class="admin popover-with-html" data-toggle="modal" data-target="#exampleModal" data-content="帖子附言,添加附言后所有参与讨论的用户都能收到消息提醒,包括点赞和评论的用户">
<i class="fa fa-plus"></i>
</a>

<a id="topic-edit-button" href="{{ route('topics.edit', [$topic->id]) }}" title="{{ lang('Edit') }}" class="admin">
<a id="topic-edit-button" href="{{ route('topics.edit', [$topic->id]) }}" data-content="{{ lang('Edit') }}" class="admin popover-with-html">
<i class="fa fa-pencil-square-o"></i>
</a>
@endif
Expand Down

0 comments on commit d2b86ec

Please sign in to comment.