process_admin(global, #request{path = [<<"vhosts">>], lang = Lang}, AJID) ->
Res = list_vhosts(Lang, AJID),
make_xhtml((?H1GL((translate:translate(Lang, ?T("Virtual Hosts"))),
- <<"virtualhosting">>, ?T("Virtual Hosting")))
+ <<"virtual-hosting">>, ?T("Virtual Hosting")))
++ Res,
global, Lang, AJID);
process_admin(Host, #request{path = [<<"users">>], q = Query,
list_last_activity(Host, Lang, false, Month);
_ -> list_last_activity(Host, Lang, true, Month)
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">>,
[{<<"action">>, <<"">>}, {<<"method">>, <<"post">>}],
[?CT(?T("Period: ")),
Host, Lang, AJID);
process_admin(Host, #request{path = [<<"stats">>], lang = Lang}, AJID) ->
Res = get_stats(Host, Lang),
- make_xhtml([?XCT(<<"h1">>, ?T("Statistics"))] ++ Res,
- Host, Lang, AJID);
+ PageH1 = ?H1GL(translate:translate(Lang, ?T("Statistics")), <<"mod-stats">>, <<"mod_stats">>),
+ make_xhtml(PageH1 ++ Res, Host, Lang, AJID);
process_admin(Host, #request{path = [<<"user">>, U],
q = Query, lang = Lang}, AJID) ->
case ejabberd_auth:user_exists(U, Host) of
fun(Host, Acc) ->
Acc + mod_muc:count_online_rooms(Host)
end, 0, find_hosts(global)),
- Res = [?XCT(<<"h1">>, ?T("Multi-User Chat")),
- ?XCT(<<"h3">>, ?T("Statistics")),
+ PageTitle = translate:translate(Lang, ?T("Multi-User Chat")),
+ Res = ?H1GL(PageTitle, <<"mod-muc">>, <<"mod_muc">>) ++
+ [?XCT(<<"h3">>, ?T("Statistics")),
?XAE(<<"table">>, [],
[?XE(<<"tbody">>, [?TDTD(?T("Total rooms"), OnlineRoomsNumber)
])
end,
1,
Titles),
- [?XCT(<<"h1">>, ?T("Multi-User Chat")),
- ?XCT(<<"h2">>, ?T("Chatrooms")),
+ PageTitle = translate:translate(Lang, ?T("Multi-User Chat")),
+ ?H1GL(PageTitle, <<"mod-muc">>, <<"mod_muc">>) ++
+ [?XCT(<<"h2">>, ?T("Chatrooms")),
?XE(<<"table">>,
[?XE(<<"thead">>,
[?XE(<<"tr">>, Titles_TR)]
end,
Hdrs = get_messages_subset(User, Server, HdrsAll),
FMsgs = format_user_queue(Hdrs),
- [?XC(<<"h1">>,
- (str:format(translate:translate(Lang, ?T("~s's Offline Messages Queue")),
- [us_to_list(US)])))]
+ PageTitle = str:format(translate:translate(Lang, ?T("~s's Offline Messages Queue")), [us_to_list(US)]),
+ (?H1GL(PageTitle, <<"mod-offline">>, <<"mod_offline">>))
++ [?XREST(?T("Submitted"))] ++
[?XAE(<<"form">>,
[{<<"action">>, <<"">>}, {<<"method">>, <<"post">>}],
end,
SItems)))])]
end,
- [?XC(<<"h1">>,
- (<<(translate:translate(Lang, ?T("Roster of ")))/binary, (us_to_list(US))/binary>>))]
+ PageTitle = str:format(translate:translate(Lang, ?T("Roster of ~s")), [us_to_list(US)]),
+ (?H1GL(PageTitle, <<"mod-roster">>, <<"mod_roster">>))
++
case Res of
ok -> [?XREST(?T("Submitted"))];
[?INPUTT(<<"submit">>, <<"addnew">>,
?T("Add New"))])])]))])),
(?H1GL((translate:translate(Lang, ?T("Shared Roster Groups"))),
- <<"mod_shared_roster">>, <<"mod_shared_roster">>))
+ <<"mod-shared-roster">>, <<"mod_shared_roster">>))
++
case Res of
ok -> [?XREST(?T("Submitted"))];
<<"20">>,
list_to_binary(FDisplayedGroups))])])])])),
(?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>>)] ++
case Res of