mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 00:45:47 +01:00
added profile link and chat button fn to both user dropdowns
This commit is contained in:
@@ -21,6 +21,17 @@
|
||||
}
|
||||
}
|
||||
|
||||
.chat {
|
||||
display: block;
|
||||
padding: 3px 20px;
|
||||
clear: both;
|
||||
.pointer;
|
||||
}
|
||||
.chat:hover, .chat:focus {
|
||||
color: white;
|
||||
background-color: rgb(66, 139, 202);
|
||||
}
|
||||
|
||||
.profile-block, .post-block {
|
||||
position: relative;
|
||||
border: 1px solid rgba(0, 0, 0, 0.06);
|
||||
|
||||
@@ -280,14 +280,14 @@
|
||||
}
|
||||
});
|
||||
|
||||
$('.post-container').delegate('.chat', 'click', function(e) {
|
||||
|
||||
$('.topic-buttons').delegate('.chat', 'click', function(e) {
|
||||
var username = $(this).parents('li').attr('data-username');
|
||||
var touid = $(this).parents('li').attr('data-uid');
|
||||
|
||||
if(username === app.username || !app.username)
|
||||
return;
|
||||
|
||||
|
||||
require(['chat'], function(chat) {
|
||||
var chatModal = chat.createModalIfDoesntExist(username, touid);
|
||||
chatModal.show();
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="/users/{main_posts.userslug}"><i class="icon-user"></i> Profile</a></li>
|
||||
<li><a href="#"><i class="icon-comment"></i> Chat</a></li>
|
||||
<li><div class="chat"><i class="icon-comment"></i> Chat</div></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -98,8 +98,8 @@
|
||||
</button>
|
||||
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="#"><i class="icon-user"></i> Profile</a></li>
|
||||
<li><a href="#"><i class="icon-comment"></i> Chat</a></li>
|
||||
<li><a href="/users/{posts.userslug}"><i class="icon-user"></i> Profile</a></li>
|
||||
<li><div class="chat"><i class="icon-comment"></i> Chat</div></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user