summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2015-07-15 21:36:36 +0200
committerBadlop <badlop@process-one.net>2015-07-15 21:39:13 +0200
commit7395cc910e4cca4ca8adf6109b220d61f50bb4d9 (patch)
treed74c2177ae52c4dbdbbd468e9f0e9a1d19cea8a9 /src
parentIf local guide.html file not found, redirect to the online guide (diff)
Set direction of resource and connection (#650)
Diffstat (limited to 'src')
-rw-r--r--src/ejabberd_web_admin.erl10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ejabberd_web_admin.erl b/src/ejabberd_web_admin.erl
index 4ff80ece..3347f3e6 100644
--- a/src/ejabberd_web_admin.erl
+++ b/src/ejabberd_web_admin.erl
@@ -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,