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 {
|
.profile-block, .post-block {
|
||||||
position: relative;
|
position: relative;
|
||||||
border: 1px solid rgba(0, 0, 0, 0.06);
|
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 username = $(this).parents('li').attr('data-username');
|
||||||
var touid = $(this).parents('li').attr('data-uid');
|
var touid = $(this).parents('li').attr('data-uid');
|
||||||
|
|
||||||
if(username === app.username || !app.username)
|
if(username === app.username || !app.username)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
||||||
require(['chat'], function(chat) {
|
require(['chat'], function(chat) {
|
||||||
var chatModal = chat.createModalIfDoesntExist(username, touid);
|
var chatModal = chat.createModalIfDoesntExist(username, touid);
|
||||||
chatModal.show();
|
chatModal.show();
|
||||||
|
|||||||
@@ -30,8 +30,8 @@
|
|||||||
<span class="caret"></span>
|
<span class="caret"></span>
|
||||||
</button>
|
</button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="/users/{main_posts.userslug}"><i class="icon-user"></i> Profile</a></li>
|
<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>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -98,8 +98,8 @@
|
|||||||
</button>
|
</button>
|
||||||
|
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="#"><i class="icon-user"></i> Profile</a></li>
|
<li><a href="/users/{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>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user