Set direction of resource and connection (#650)

This commit is contained in:
Badlop 2015-07-15 21:36:36 +02:00
parent c53d764119
commit 7395cc910e
1 changed files with 6 additions and 4 deletions

View File

@ -1559,16 +1559,18 @@ user_info(User, Server, Query, Lang) ->
http_bind -> http_bind ->
<<"http-bind">> <<"http-bind">>
end, end,
<<" (", ConnS/binary, <<ConnS/binary,
"://", "://",
(jlib:ip_to_list(IP))/binary, (jlib:ip_to_list(IP))/binary,
":", ":",
(jlib:integer_to_binary(Port))/binary, (jlib:integer_to_binary(Port))/binary,
"#", "#",
(jlib:atom_to_binary(Node))/binary, (jlib:atom_to_binary(Node))/binary>>
")">>
end, 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, end,
lists:sort(Resources))))] lists:sort(Resources))))]
end, end,