mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
Fix some links to Guide in WebAdmin and add new ones (#3003)
This commit is contained in:
parent
e14f206615
commit
e50ecf9e96
@ -450,7 +450,7 @@ process_admin(_Host, #request{path = [<<"additions.js">>]}, _) ->
|
|||||||
process_admin(global, #request{path = [<<"vhosts">>], lang = Lang}, AJID) ->
|
process_admin(global, #request{path = [<<"vhosts">>], lang = Lang}, AJID) ->
|
||||||
Res = list_vhosts(Lang, AJID),
|
Res = list_vhosts(Lang, AJID),
|
||||||
make_xhtml((?H1GL((translate:translate(Lang, ?T("Virtual Hosts"))),
|
make_xhtml((?H1GL((translate:translate(Lang, ?T("Virtual Hosts"))),
|
||||||
<<"virtualhosting">>, ?T("Virtual Hosting")))
|
<<"virtual-hosting">>, ?T("Virtual Hosting")))
|
||||||
++ Res,
|
++ Res,
|
||||||
global, Lang, AJID);
|
global, Lang, AJID);
|
||||||
process_admin(Host, #request{path = [<<"users">>], q = Query,
|
process_admin(Host, #request{path = [<<"users">>], q = Query,
|
||||||
@ -485,8 +485,8 @@ process_admin(Host, #request{path = [<<"last-activity">>],
|
|||||||
list_last_activity(Host, Lang, false, Month);
|
list_last_activity(Host, Lang, false, Month);
|
||||||
_ -> list_last_activity(Host, Lang, true, Month)
|
_ -> list_last_activity(Host, Lang, true, Month)
|
||||||
end,
|
end,
|
||||||
make_xhtml([?XCT(<<"h1">>, ?T("Users Last Activity"))]
|
PageH1 = ?H1GL(translate:translate(Lang, ?T("Users Last Activity")), <<"mod-last">>, <<"mod_last">>),
|
||||||
++
|
make_xhtml(PageH1 ++
|
||||||
[?XAE(<<"form">>,
|
[?XAE(<<"form">>,
|
||||||
[{<<"action">>, <<"">>}, {<<"method">>, <<"post">>}],
|
[{<<"action">>, <<"">>}, {<<"method">>, <<"post">>}],
|
||||||
[?CT(?T("Period: ")),
|
[?CT(?T("Period: ")),
|
||||||
@ -516,8 +516,8 @@ process_admin(Host, #request{path = [<<"last-activity">>],
|
|||||||
Host, Lang, AJID);
|
Host, Lang, AJID);
|
||||||
process_admin(Host, #request{path = [<<"stats">>], lang = Lang}, AJID) ->
|
process_admin(Host, #request{path = [<<"stats">>], lang = Lang}, AJID) ->
|
||||||
Res = get_stats(Host, Lang),
|
Res = get_stats(Host, Lang),
|
||||||
make_xhtml([?XCT(<<"h1">>, ?T("Statistics"))] ++ Res,
|
PageH1 = ?H1GL(translate:translate(Lang, ?T("Statistics")), <<"mod-stats">>, <<"mod_stats">>),
|
||||||
Host, Lang, AJID);
|
make_xhtml(PageH1 ++ Res, Host, Lang, AJID);
|
||||||
process_admin(Host, #request{path = [<<"user">>, U],
|
process_admin(Host, #request{path = [<<"user">>, U],
|
||||||
q = Query, lang = Lang}, AJID) ->
|
q = Query, lang = Lang}, AJID) ->
|
||||||
case ejabberd_auth:user_exists(U, Host) of
|
case ejabberd_auth:user_exists(U, Host) of
|
||||||
|
@ -458,8 +458,9 @@ web_page_main(_, #request{path=[<<"muc">>], lang = Lang} = _Request) ->
|
|||||||
fun(Host, Acc) ->
|
fun(Host, Acc) ->
|
||||||
Acc + mod_muc:count_online_rooms(Host)
|
Acc + mod_muc:count_online_rooms(Host)
|
||||||
end, 0, find_hosts(global)),
|
end, 0, find_hosts(global)),
|
||||||
Res = [?XCT(<<"h1">>, ?T("Multi-User Chat")),
|
PageTitle = translate:translate(Lang, ?T("Multi-User Chat")),
|
||||||
?XCT(<<"h3">>, ?T("Statistics")),
|
Res = ?H1GL(PageTitle, <<"mod-muc">>, <<"mod_muc">>) ++
|
||||||
|
[?XCT(<<"h3">>, ?T("Statistics")),
|
||||||
?XAE(<<"table">>, [],
|
?XAE(<<"table">>, [],
|
||||||
[?XE(<<"tbody">>, [?TDTD(?T("Total rooms"), OnlineRoomsNumber)
|
[?XE(<<"tbody">>, [?TDTD(?T("Total rooms"), OnlineRoomsNumber)
|
||||||
])
|
])
|
||||||
@ -531,8 +532,9 @@ make_rooms_page(Host, Lang, {Sort_direction, Sort_column}) ->
|
|||||||
end,
|
end,
|
||||||
1,
|
1,
|
||||||
Titles),
|
Titles),
|
||||||
[?XCT(<<"h1">>, ?T("Multi-User Chat")),
|
PageTitle = translate:translate(Lang, ?T("Multi-User Chat")),
|
||||||
?XCT(<<"h2">>, ?T("Chatrooms")),
|
?H1GL(PageTitle, <<"mod-muc">>, <<"mod_muc">>) ++
|
||||||
|
[?XCT(<<"h2">>, ?T("Chatrooms")),
|
||||||
?XE(<<"table">>,
|
?XE(<<"table">>,
|
||||||
[?XE(<<"thead">>,
|
[?XE(<<"thead">>,
|
||||||
[?XE(<<"tr">>, Titles_TR)]
|
[?XE(<<"tr">>, Titles_TR)]
|
||||||
|
@ -994,9 +994,8 @@ user_queue(User, Server, Query, Lang) ->
|
|||||||
end,
|
end,
|
||||||
Hdrs = get_messages_subset(User, Server, HdrsAll),
|
Hdrs = get_messages_subset(User, Server, HdrsAll),
|
||||||
FMsgs = format_user_queue(Hdrs),
|
FMsgs = format_user_queue(Hdrs),
|
||||||
[?XC(<<"h1">>,
|
PageTitle = str:format(translate:translate(Lang, ?T("~s's Offline Messages Queue")), [us_to_list(US)]),
|
||||||
(str:format(translate:translate(Lang, ?T("~s's Offline Messages Queue")),
|
(?H1GL(PageTitle, <<"mod-offline">>, <<"mod_offline">>))
|
||||||
[us_to_list(US)])))]
|
|
||||||
++ [?XREST(?T("Submitted"))] ++
|
++ [?XREST(?T("Submitted"))] ++
|
||||||
[?XAE(<<"form">>,
|
[?XAE(<<"form">>,
|
||||||
[{<<"action">>, <<"">>}, {<<"method">>, <<"post">>}],
|
[{<<"action">>, <<"">>}, {<<"method">>, <<"post">>}],
|
||||||
|
@ -1004,8 +1004,8 @@ user_roster(User, Server, Query, Lang) ->
|
|||||||
end,
|
end,
|
||||||
SItems)))])]
|
SItems)))])]
|
||||||
end,
|
end,
|
||||||
[?XC(<<"h1">>,
|
PageTitle = str:format(translate:translate(Lang, ?T("Roster of ~s")), [us_to_list(US)]),
|
||||||
(<<(translate:translate(Lang, ?T("Roster of ")))/binary, (us_to_list(US))/binary>>))]
|
(?H1GL(PageTitle, <<"mod-roster">>, <<"mod_roster">>))
|
||||||
++
|
++
|
||||||
case Res of
|
case Res of
|
||||||
ok -> [?XREST(?T("Submitted"))];
|
ok -> [?XREST(?T("Submitted"))];
|
||||||
|
@ -780,7 +780,7 @@ list_shared_roster_groups(Host, Query, Lang) ->
|
|||||||
[?INPUTT(<<"submit">>, <<"addnew">>,
|
[?INPUTT(<<"submit">>, <<"addnew">>,
|
||||||
?T("Add New"))])])]))])),
|
?T("Add New"))])])]))])),
|
||||||
(?H1GL((translate:translate(Lang, ?T("Shared Roster Groups"))),
|
(?H1GL((translate:translate(Lang, ?T("Shared Roster Groups"))),
|
||||||
<<"mod_shared_roster">>, <<"mod_shared_roster">>))
|
<<"mod-shared-roster">>, <<"mod_shared_roster">>))
|
||||||
++
|
++
|
||||||
case Res of
|
case Res of
|
||||||
ok -> [?XREST(?T("Submitted"))];
|
ok -> [?XREST(?T("Submitted"))];
|
||||||
@ -874,7 +874,7 @@ shared_roster_group(Host, Group, Query, Lang) ->
|
|||||||
<<"20">>,
|
<<"20">>,
|
||||||
list_to_binary(FDisplayedGroups))])])])])),
|
list_to_binary(FDisplayedGroups))])])])])),
|
||||||
(?H1GL((translate:translate(Lang, ?T("Shared Roster Groups"))),
|
(?H1GL((translate:translate(Lang, ?T("Shared Roster Groups"))),
|
||||||
<<"mod_shared_roster">>, <<"mod_shared_roster">>))
|
<<"mod-shared-roster">>, <<"mod_shared_roster">>))
|
||||||
++
|
++
|
||||||
[?XC(<<"h2">>, <<(translate:translate(Lang, ?T("Group ")))/binary, Group/binary>>)] ++
|
[?XC(<<"h2">>, <<(translate:translate(Lang, ?T("Group ")))/binary, Group/binary>>)] ++
|
||||||
case Res of
|
case Res of
|
||||||
|
Loading…
Reference in New Issue
Block a user