mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Set direction of resource and connection (#650)
This commit is contained in:
parent
c53d764119
commit
7395cc910e
@ -1559,16 +1559,18 @@ user_info(User, Server, Query, Lang) ->
|
||||
http_bind ->
|
||||
<<"http-bind">>
|
||||
end,
|
||||
<<" (", ConnS/binary,
|
||||
<<ConnS/binary,
|
||||
"://",
|
||||
(jlib:ip_to_list(IP))/binary,
|
||||
":",
|
||||
(jlib:integer_to_binary(Port))/binary,
|
||||
"#",
|
||||
(jlib:atom_to_binary(Node))/binary,
|
||||
")">>
|
||||
(jlib:atom_to_binary(Node))/binary>>
|
||||
end,
|
||||
?LI([?C((<<R/binary, FIP/binary>>))])
|
||||
case direction(Lang) of
|
||||
[{_, <<"rtl">>}] -> ?LI([?C((<<FIP/binary, " - ", R/binary>>))]);
|
||||
_ -> ?LI([?C((<<R/binary, " - ", FIP/binary>>))])
|
||||
end
|
||||
end,
|
||||
lists:sort(Resources))))]
|
||||
end,
|
||||
|
Loading…
Reference in New Issue
Block a user