25
1
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:
Badlop 2024-09-12 22:16:54 +02:00
parent d9ddbe0212
commit 115e7d08aa
2 changed files with 8 additions and 2 deletions

View File

@ -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/">>}]}]
)].
%%%
%%%

View File

@ -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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%