]> granicus.if.org Git - ejabberd/commitdiff
Set direction of resource and connection (#650)
authorBadlop <badlop@process-one.net>
Wed, 15 Jul 2015 19:36:36 +0000 (21:36 +0200)
committerBadlop <badlop@process-one.net>
Wed, 15 Jul 2015 19:39:13 +0000 (21:39 +0200)
src/ejabberd_web_admin.erl

index 4ff80ecedc167cecf52aa29b2f789df008dc481a..3347f3e6eb82a817a183c129f860dad5fb7dea50 100644 (file)
@@ -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,