mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Update links to the ejabberd Docs page in WebAdmin
This commit is contained in:
parent
e197b25e82
commit
b7c088d4b0
@ -93,9 +93,9 @@
|
|||||||
-define(GL(Ref, Title),
|
-define(GL(Ref, Title),
|
||||||
?XAE(<<"div">>, [{<<"class">>, <<"guidelink">>}],
|
?XAE(<<"div">>, [{<<"class">>, <<"guidelink">>}],
|
||||||
[?XAE(<<"a">>,
|
[?XAE(<<"a">>,
|
||||||
[{<<"href">>, <<"https://docs.ejabberd.im/admin/configuration/#", Ref/binary>>},
|
[{<<"href">>, <<"https://docs.ejabberd.im/admin/configuration/", Ref/binary>>},
|
||||||
{<<"target">>, <<"_blank">>}],
|
{<<"target">>, <<"_blank">>}],
|
||||||
[?C(<<"[Guide: ", Title/binary, "]">>)])])).
|
[?C(<<"docs: ", Title/binary>>)])])).
|
||||||
|
|
||||||
%% h1 with a Guide Link
|
%% h1 with a Guide Link
|
||||||
-define(H1GL(Name, Ref, Title),
|
-define(H1GL(Name, Ref, Title),
|
||||||
|
@ -243,7 +243,6 @@ p[dir=ltr] a {
|
|||||||
|
|
||||||
background: #3eaffa;
|
background: #3eaffa;
|
||||||
|
|
||||||
text-transform: uppercase;
|
|
||||||
font-size: 0.75em;
|
font-size: 0.75em;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
@ -444,7 +444,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"))),
|
||||||
<<"virtual-hosting">>, ?T("Virtual Hosting")))
|
<<"basic/#xmpp-domains">>, ?T("XMPP Domains")))
|
||||||
++ Res,
|
++ Res,
|
||||||
global, Lang, AJID, 1);
|
global, Lang, AJID, 1);
|
||||||
process_admin(Host, #request{path = [<<"users">>], q = Query,
|
process_admin(Host, #request{path = [<<"users">>], q = Query,
|
||||||
@ -479,7 +479,7 @@ 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,
|
||||||
PageH1 = ?H1GL(translate:translate(Lang, ?T("Users Last Activity")), <<"mod-last">>, <<"mod_last">>),
|
PageH1 = ?H1GL(translate:translate(Lang, ?T("Users Last Activity")), <<"modules/#mod-last">>, <<"mod_last">>),
|
||||||
make_xhtml(PageH1 ++
|
make_xhtml(PageH1 ++
|
||||||
[?XAE(<<"form">>,
|
[?XAE(<<"form">>,
|
||||||
[{<<"action">>, <<"">>}, {<<"method">>, <<"post">>}],
|
[{<<"action">>, <<"">>}, {<<"method">>, <<"post">>}],
|
||||||
@ -510,7 +510,7 @@ process_admin(Host, #request{path = [<<"last-activity">>],
|
|||||||
Host, Lang, AJID, 3);
|
Host, Lang, AJID, 3);
|
||||||
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),
|
||||||
PageH1 = ?H1GL(translate:translate(Lang, ?T("Statistics")), <<"mod-stats">>, <<"mod_stats">>),
|
PageH1 = ?H1GL(translate:translate(Lang, ?T("Statistics")), <<"modules/#mod-stats">>, <<"mod_stats">>),
|
||||||
Level = case Host of
|
Level = case Host of
|
||||||
global -> 1;
|
global -> 1;
|
||||||
_ -> 3
|
_ -> 3
|
||||||
|
@ -459,7 +459,7 @@ web_page_main(_, #request{path=[<<"muc">>], lang = Lang} = _Request) ->
|
|||||||
Acc + mod_muc:count_online_rooms(Host)
|
Acc + mod_muc:count_online_rooms(Host)
|
||||||
end, 0, find_hosts(global)),
|
end, 0, find_hosts(global)),
|
||||||
PageTitle = translate:translate(Lang, ?T("Multi-User Chat")),
|
PageTitle = translate:translate(Lang, ?T("Multi-User Chat")),
|
||||||
Res = ?H1GL(PageTitle, <<"mod-muc">>, <<"mod_muc">>) ++
|
Res = ?H1GL(PageTitle, <<"modules/#mod-muc">>, <<"mod_muc">>) ++
|
||||||
[?XCT(<<"h3">>, ?T("Statistics")),
|
[?XCT(<<"h3">>, ?T("Statistics")),
|
||||||
?XAE(<<"table">>, [],
|
?XAE(<<"table">>, [],
|
||||||
[?XE(<<"tbody">>, [?TDTD(?T("Total rooms"), OnlineRoomsNumber)
|
[?XE(<<"tbody">>, [?TDTD(?T("Total rooms"), OnlineRoomsNumber)
|
||||||
@ -533,7 +533,7 @@ make_rooms_page(Host, Lang, {Sort_direction, Sort_column}) ->
|
|||||||
1,
|
1,
|
||||||
Titles),
|
Titles),
|
||||||
PageTitle = translate:translate(Lang, ?T("Multi-User Chat")),
|
PageTitle = translate:translate(Lang, ?T("Multi-User Chat")),
|
||||||
?H1GL(PageTitle, <<"mod-muc">>, <<"mod_muc">>) ++
|
?H1GL(PageTitle, <<"modules/#mod-muc">>, <<"mod_muc">>) ++
|
||||||
[?XCT(<<"h2">>, ?T("Chatrooms")),
|
[?XCT(<<"h2">>, ?T("Chatrooms")),
|
||||||
?XE(<<"table">>,
|
?XE(<<"table">>,
|
||||||
[?XE(<<"thead">>,
|
[?XE(<<"thead">>,
|
||||||
|
@ -989,7 +989,7 @@ user_queue(User, Server, Query, Lang) ->
|
|||||||
Hdrs = get_messages_subset(User, Server, HdrsAll),
|
Hdrs = get_messages_subset(User, Server, HdrsAll),
|
||||||
FMsgs = format_user_queue(Hdrs),
|
FMsgs = format_user_queue(Hdrs),
|
||||||
PageTitle = str:format(translate:translate(Lang, ?T("~ts's Offline Messages Queue")), [us_to_list(US)]),
|
PageTitle = str:format(translate:translate(Lang, ?T("~ts's Offline Messages Queue")), [us_to_list(US)]),
|
||||||
(?H1GL(PageTitle, <<"mod-offline">>, <<"mod_offline">>))
|
(?H1GL(PageTitle, <<"modules/#mod-offline">>, <<"mod_offline">>))
|
||||||
++ [?XREST(?T("Submitted"))] ++
|
++ [?XREST(?T("Submitted"))] ++
|
||||||
[?XAE(<<"form">>,
|
[?XAE(<<"form">>,
|
||||||
[{<<"action">>, <<"">>}, {<<"method">>, <<"post">>}],
|
[{<<"action">>, <<"">>}, {<<"method">>, <<"post">>}],
|
||||||
|
@ -1005,7 +1005,7 @@ user_roster(User, Server, Query, Lang) ->
|
|||||||
SItems)))])]
|
SItems)))])]
|
||||||
end,
|
end,
|
||||||
PageTitle = str:format(translate:translate(Lang, ?T("Roster of ~ts")), [us_to_list(US)]),
|
PageTitle = str:format(translate:translate(Lang, ?T("Roster of ~ts")), [us_to_list(US)]),
|
||||||
(?H1GL(PageTitle, <<"mod-roster">>, <<"mod_roster">>))
|
(?H1GL(PageTitle, <<"modules/#mod-roster">>, <<"mod_roster">>))
|
||||||
++
|
++
|
||||||
case Res of
|
case Res of
|
||||||
ok -> [?XREST(?T("Submitted"))];
|
ok -> [?XREST(?T("Submitted"))];
|
||||||
|
Loading…
Reference in New Issue
Block a user