25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Update URLs of module documentations

This commit is contained in:
Badlop 2024-05-10 16:04:28 +02:00
parent 4ec236966a
commit 38fd9a3ed2
6 changed files with 13 additions and 12 deletions

View File

@ -400,7 +400,7 @@ process_admin(global, #request{path = [], lang = Lang}, AJID) ->
MenuItems = get_menu_items(global, cluster, Lang, AJID, 0),
Disclaimer = maybe_disclaimer_not_admin(MenuItems, AJID, Lang),
make_xhtml((?H1GL((translate:translate(Lang, ?T("Administration"))), <<"">>,
<<"Contents">>))
<<"Configuration">>))
++ Disclaimer ++
[?XE(<<"ul">>,
[?LI([?ACT(MIU, MIN)])
@ -477,7 +477,7 @@ process_admin(Host, #request{path = [<<"last-activity">>],
list_last_activity(Host, Lang, false, Month);
_ -> list_last_activity(Host, Lang, true, Month)
end,
PageH1 = ?H1GL(translate:translate(Lang, ?T("Users Last Activity")), <<"modules/#mod-last">>, <<"mod_last">>),
PageH1 = ?H1GL(translate:translate(Lang, ?T("Users Last Activity")), <<"modules/#mod_last">>, <<"mod_last">>),
make_xhtml(PageH1 ++
[?XAE(<<"form">>,
[{<<"action">>, <<"">>}, {<<"method">>, <<"post">>}],
@ -508,7 +508,7 @@ process_admin(Host, #request{path = [<<"last-activity">>],
Host, Lang, AJID, 3);
process_admin(Host, #request{path = [<<"stats">>], lang = Lang}, AJID) ->
Res = get_stats(Host, Lang),
PageH1 = ?H1GL(translate:translate(Lang, ?T("Statistics")), <<"modules/#mod-stats">>, <<"mod_stats">>),
PageH1 = ?H1GL(translate:translate(Lang, ?T("Statistics")), <<"modules/#mod_stats">>, <<"mod_stats">>),
Level = case Host of
global -> 1;
_ -> 3
@ -1413,8 +1413,9 @@ get_node(global, Node, [<<"stats">>], _Query, Lang) ->
system_info, [transaction_restarts]),
TransactionsLogged = ejabberd_cluster:call(Node, mnesia, system_info,
[transaction_log_writes]),
[?XC(<<"h1">>,
(str:translate_and_format(Lang, ?T("Statistics of ~p"), [Node]))),
?H1GL(str:translate_and_format(Lang, ?T("Statistics of ~p"), [Node]),
<<"modules/#mod_stats">>,
<<"mod_stats">>) ++ [
?XAE(<<"table">>, [],
[?XE(<<"tbody">>,
[?XE(<<"tr">>,

View File

@ -512,7 +512,7 @@ web_mix_channels(User, Server, Lang) ->
[?XE(<<"table">>, [THead, ?XE(<<"tbody">>, Entries)])]
end,
PageTitle = str:translate_and_format(Lang, ?T("Joined MIX channels of ~ts"), [us_to_list(US)]),
(?H1GL(PageTitle, <<"modules/#mod-mix-pam">>, <<"mod_mix_pam">>))
(?H1GL(PageTitle, <<"modules/#mod_mix_pam">>, <<"mod_mix_pam">>))
++ FItems.
us_to_list({User, Server}) ->

View File

@ -608,7 +608,7 @@ web_page_main(_, #request{path=[<<"muc">>], lang = Lang} = _Request) ->
Acc + mod_muc:count_online_rooms(Host)
end, 0, find_hosts(global)),
PageTitle = translate:translate(Lang, ?T("Multi-User Chat")),
Res = ?H1GL(PageTitle, <<"modules/#mod-muc">>, <<"mod_muc">>) ++
Res = ?H1GL(PageTitle, <<"modules/#mod_muc">>, <<"mod_muc">>) ++
[?XCT(<<"h3">>, ?T("Statistics")),
?XAE(<<"table">>, [],
[?XE(<<"tbody">>, [?TDTD(?T("Total rooms"), OnlineRoomsNumber)
@ -683,7 +683,7 @@ make_rooms_page(Host, Lang, {Sort_direction, Sort_column}) ->
1,
Titles),
PageTitle = translate:translate(Lang, ?T("Multi-User Chat")),
?H1GL(PageTitle, <<"modules/#mod-muc">>, <<"mod_muc">>) ++
?H1GL(PageTitle, <<"modules/#mod_muc">>, <<"mod_muc">>) ++
[?XCT(<<"h2">>, ?T("Chatrooms")),
?XE(<<"table">>,
[?XE(<<"thead">>,

View File

@ -983,7 +983,7 @@ user_queue(User, Server, Query, Lang) ->
Hdrs = get_messages_subset(User, Server, HdrsAll),
FMsgs = format_user_queue(Hdrs),
PageTitle = str:translate_and_format(Lang, ?T("~ts's Offline Messages Queue"), [us_to_list(US)]),
(?H1GL(PageTitle, <<"modules/#mod-offline">>, <<"mod_offline">>))
(?H1GL(PageTitle, <<"modules/#mod_offline">>, <<"mod_offline">>))
++ [?XREST(?T("Submitted"))] ++
[?XAE(<<"form">>,
[{<<"action">>, <<"">>}, {<<"method">>, <<"post">>}],

View File

@ -1094,7 +1094,7 @@ user_roster(User, Server, Query, Lang) ->
SItems)))])]
end,
PageTitle = str:translate_and_format(Lang, ?T("Roster of ~ts"), [us_to_list(US)]),
(?H1GL(PageTitle, <<"modules/#mod-roster">>, <<"mod_roster">>))
(?H1GL(PageTitle, <<"modules/#mod_roster">>, <<"mod_roster">>))
++
case Res of
ok -> [?XREST(?T("Submitted"))];

View File

@ -912,7 +912,7 @@ list_shared_roster_groups(Host, Query, Lang) ->
?INPUTT(<<"submit">>, <<"addnew">>,
?T("Add New"))])])]))])),
(?H1GL((translate:translate(Lang, ?T("Shared Roster Groups"))),
<<"modules/#mod-shared-roster">>, <<"mod_shared_roster">>))
<<"modules/#mod_shared_roster">>, <<"mod_shared_roster">>))
++
case Res of
ok -> [?XREST(?T("Submitted"))];
@ -1019,7 +1019,7 @@ shared_roster_group(Host, Group, Query, Lang) ->
?XE(<<"td">>, [?CT(?T("Groups that will be displayed to the members"))])
])])])),
(?H1GL((translate:translate(Lang, ?T("Shared Roster Groups"))),
<<"modules/#mod-shared-roster">>, <<"mod_shared_roster">>))
<<"modules/#mod_shared_roster">>, <<"mod_shared_roster">>))
++
[?XC(<<"h2">>, translate:translate(Lang, ?T("Group")))] ++
case Res of