2005-04-18 Alexey Shchepin <alexey@sevcom.net>
+ * src/web/ejabberd_web_admin.erl: Added link to shared roster page
+
* src/odbc/ejabberd_odbc.erl: ODBC connection string can be
specified via odbc_server option now
* src/ejabberd.cfg.example: Added ODBC usage example
?LI([?ACT("/admin/online-users/", "Online Users")]),
?LI([?ACT("/admin/nodes/", "Nodes")]),
?LI([?ACT("/admin/stats/", "Statistics")])
- ])]),
+ ] ++
+ case lists:member(mod_shared_roster,
+ gen_mod:loaded_modules()) of
+ true ->
+ [?LI([?ACT("/admin/shared-roster/", "Shared Roster")])];
+ false ->
+ []
+ end
+ )]),
?XAE("td",
[{"id", "middle-td2"}],
[?XAE("div", [{"id", "content"}], Els)])])])
?LI([?ACT("online-users/", "Online Users")]),
?LI([?ACT("nodes/", "Nodes")]),
?LI([?ACT("stats/", "Statistics")])
- ])
+ ] ++
+ case lists:member(mod_shared_roster,
+ gen_mod:loaded_modules()) of
+ true ->
+ [?LI([?ACT("shared-roster/", "Shared Roster")])];
+ false ->
+ []
+ end
+ )
], Lang);
process_admin(#request{us = US,