put moderator tools into a menu

main
psychobunny 10 years ago
parent c1499a8a51
commit 5dba775398

@ -71,13 +71,18 @@
} }
.moderator-tools { .moderator-tools {
text-transform: lowercase; position: absolute;
:before { right: 5px;
content: "\2022\0020"; top: 0px;
} font-size: 14px;;
a { a {
.pointer; color: @gray-light;
outline: none;
&.menuitem {
color: @gray-dark;
}
} }
} }
@ -115,6 +120,8 @@
padding: 0; padding: 0;
> li { > li {
position: relative;
&.deleted { &.deleted {
-moz-opacity: 0.30; -moz-opacity: 0.30;
opacity: 0.30; opacity: 0.30;

@ -17,20 +17,38 @@
[[global:posted_ago, <span class="timeago" title="{posts.relativeTime}"></span>]] [[global:posted_ago, <span class="timeago" title="{posts.relativeTime}"></span>]]
<!-- IF posts.editor.username --> <!-- IF posts.editor.username -->
<span>| [[global:last_edited_by_ago, <strong><a href="{relative_path}/user/{posts.editor.userslug}">{posts.editor.username}</a></strong>, <span class="timeago" title="{posts.relativeEditTime}"></span>]]</span> <span>, [[global:last_edited_by_ago, <strong><a href="{relative_path}/user/{posts.editor.userslug}">{posts.editor.username}</a></strong>, <span class="timeago" title="{posts.relativeEditTime}"></span>]]</span>
<!-- ENDIF posts.editor.username --> <!-- ENDIF posts.editor.username -->
<!-- IF posts.display_moderator_tools --> <div class="dropdown moderator-tools">
<span class="moderator-tools"> <a href="#" data-toggle="dropdown"><i class="fa fa-ellipsis-v"></i></a>
<a component="post/edit">[[topic:edit]]</a> <ul class="dropdown-menu dropdown-menu-right" role="menu">
<a component="post/delete">[[topic:delete]]</a> <!-- IF posts.display_moderator_tools -->
<a component="post/purge" class="<!-- IF !posts.deleted -->hidden<!-- ENDIF !posts.deleted -->">[[topic:purge]]</a> <li role="presentation">
<!-- IF posts.display_move_tools --> <a component="post/edit" role="menuitem" tabindex="-1" href="#">
<a component="post/move">[[topic:move]]</a> [[topic:edit]]
<!-- ENDIF posts.display_move_tools --> </a>
</span> </li>
<!-- ENDIF posts.display_moderator_tools --> <li role="presentation">
<a component="post/delete" role="menuitem" tabindex="-1" href="#">
[[topic:delete]]
</a>
</li>
<li role="presentation">
<a component="post/purge" role="menuitem" tabindex="-1" href="#" class="<!-- IF !posts.deleted -->hidden<!-- ENDIF !posts.deleted -->">
[[topic:purge]]
</a>
</li>
<!-- IF posts.display_move_tools -->
<li role="presentation">
<a component="post/move" role="menuitem" tabindex="-1" href="#">
[[topic:move]]
</a>
</li>
<!-- ENDIF posts.display_move_tools -->
<!-- ENDIF posts.display_moderator_tools -->
</ul>
</div>
</small> </small>
</div> </div>

Loading…
Cancel
Save