mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
Add links in user page to offline and roster pages
This commit is contained in:
parent
d9ddbe0212
commit
115e7d08aa
@ -1002,7 +1002,9 @@ get_queue_length(LUser, LServer) ->
|
||||
count_offline_messages(LUser, LServer).
|
||||
|
||||
webadmin_user(Acc, User, Server, R) ->
|
||||
Acc ++ [make_command(get_offline_count, R, [{<<"user">>, User}, {<<"host">>, Server}], [])].
|
||||
Acc ++ [make_command(get_offline_count, R, [{<<"user">>, User}, {<<"host">>, Server}],
|
||||
[{result_links, [{value, arg_host, 4, <<"user/", User/binary, "/queue/">>}]}]
|
||||
)].
|
||||
|
||||
%%%
|
||||
%%%
|
||||
|
@ -1096,7 +1096,11 @@ make_webadmin_roster_table(Host, Username, R, RPath) ->
|
||||
|
||||
webadmin_user(Acc, User, Server, R) ->
|
||||
Acc
|
||||
++ [make_command(get_roster_count, R, [{<<"user">>, User}, {<<"host">>, Server}], [])].
|
||||
++ [make_command(get_roster_count,
|
||||
R,
|
||||
[{<<"user">>, User}, {<<"host">>, Server}],
|
||||
[{result_links,
|
||||
[{value, arg_host, 4, <<"user/", User/binary, "/roster/">>}]}])].
|
||||
%%% @format-end
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
Loading…
Reference in New Issue
Block a user