25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

WebAdmin: Improve CSS of welcome page, docs links, anchor element

This commit is contained in:
Badlop 2024-06-24 18:36:07 +02:00
parent b85cd9a487
commit ce348596b7
3 changed files with 18 additions and 10 deletions

View File

@ -115,7 +115,7 @@
%% h1 with a Guide Link
-define(H1GLraw(Name, Ref, Title),
[?XC(<<"h1">>, Name), ?GL(Ref, Title), ?BR]).
[?XC(<<"h1">>, Name), ?GL(Ref, Title), ?BR, ?BR]).
-define(H1GL(Name, RefConf, Title),
?H1GLraw(Name, <<"admin/configuration/", RefConf/binary>>, Title)).
@ -123,4 +123,4 @@
?XAE(<<"div">>, [{<<"class">>, <<"anchorlink">>}],
[?XAE(<<"a">>,
[{<<"href">>, <<"#", Ref/binary>>}],
[?C(<<"<=">>)])])).
[?C(unicode:characters_to_binary(""))])])).

View File

@ -131,6 +131,12 @@ ul li #navhead a, ul li #navheadsub a, ul li #navheadsubsub a {
background: #424a55;
color: #fff;
}
#welcome {
padding: 2em;
border-top: 0.2em solid #cae7e4;
border-bottom: 0.2em solid #cae7e4;
background-color: #f4f9f9;
}
#lastactivity li {
padding: 2px;
margin-bottom: -1px;
@ -248,6 +254,7 @@ p[dir=ltr] a {
background: #3eaffa;
font-size: 0.75em;
color: #fff;
border-radius: 2px;
}
table {
margin-top: 1em;
@ -296,9 +303,11 @@ details > summary {
cursor: pointer;
list-style: none;
padding: 8px;
border-radius: 4px;
}
details > pre, details > p {
background-color: #e6f1f0;
background-color: #f2f8f7;
border-bottom: 0.2em solid #dbeceb;
margin: 0;
padding: 10px;
}

View File

@ -437,12 +437,11 @@ process_admin(global, #request{path = [], lang = Lang} = Request, AJID) ->
?XAE(<<"p">>, [{<<"align">>, <<"center">>}],
[?XA(<<"img">>, [{<<"src">>, <<"logo.png">>},
{<<"style">>, <<"border-radius:10px; background:#49cbc1; padding: 1.1em;">>}])
]),
?BR,
?X(<<"hr">>)] ++ Title ++
[?XE(<<"blockquote">>,
[
?XC(<<"p">>, <<"Welcome to ejabberd's WebAdmin!">>),
])
] ++ Title ++ [
?XAE(<<"blockquote">>,
[{<<"id">>, <<"welcome">>}],
[?XC(<<"p">>, <<"Welcome to ejabberd's WebAdmin!">>),
?XC(<<"p">>, <<"Browse the menu to navigate your XMPP virtual hosts, "
"Erlang nodes, and other global server pages...">>),
?XC(<<"p">>, <<"Some pages have a link in the top right corner "
@ -460,7 +459,7 @@ process_admin(global, #request{path = [], lang = Lang} = Request, AJID) ->
?XC(<<"p">>, <<"For example, this is the 'stats' command, "
"it accepts an argument and returns an integer:">>),
make_command(stats, Request)]),
?X(<<"hr">>), ?BR],
?BR],
make_xhtml(Disclaimer ++ WelcomeText ++
[?XE(<<"ul">>,
[?LI([?ACT(MIU, MIN)])