Skip to content

Commit

Permalink
Fix content: in make_table, provide column names in lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
badlop committed Jun 6, 2024
1 parent 30ff6c8 commit ab7bdf6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/ejabberd_web_admin.erl
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ process_admin(global, #request{path = [<<"vhosts">> | RPath], lang = Lang} = R,
Level = 1 + length(RPath),
Table = make_table(
20, RPath,
[<<"Host">>, {<<"Registered Users">>, right}, {<<"Online Users">>, right}],
[<<"host">>, {<<"registered users">>, right}, {<<"online users">>, right}],
[{make_command(echo,
R,
[{<<"sentence">>, Host}],
Expand Down
10 changes: 5 additions & 5 deletions src/mod_admin_extra.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1982,7 +1982,7 @@ web_page_main(_, #request{path = [<<"stats">>]} = R) ->
make_command(incoming_s2s_number, R, [], [{only, presentation}]),
make_command(outgoing_s2s_number, R, [], [{only, presentation}]),
make_table(
[<<"Stat Name">>, {<<"Stat value">>, right}],
[<<"stat name">>, {<<"stat value">>, right}],
[{?C(<<"Registered Users:">>),
make_command(stats, R, [{<<"name">>, <<"registeredusers">>}], [{only, value}])},
{?C(<<"Online Users:">>),
Expand All @@ -2005,7 +2005,7 @@ web_page_host(_, Host, #request{path = [<<"stats">>]} = R) ->
Res = ?H1GL(<<"Statistics">>, <<"modules/#mod_stats">>, <<"mod_stats">>) ++
[make_command(stats_host, R, [], [{only, presentation}]),
make_table(
[<<"Stat Name">>, {<<"Stat value">>, right}],
[<<"stat name">>, {<<"stat value">>, right}],
[{?C(<<"Registered Users:">>),
make_command(stats_host, R,
[{<<"host">>, Host},
Expand Down Expand Up @@ -2080,7 +2080,7 @@ web_page_hostuser(_, Host, User, #request{path = [<<"vcard">>]} = R) ->
{<<"EMAIL">>, <<"USERID">>}],
Get = [make_command(get_vcard, R, [{<<"user">>, User}, {<<"host">>, Host}], []),
?XE(<<"blockquote">>,[make_table(
[<<"Name">>, <<"Value">>],
[<<"name">>, <<"value">>],
[{?C(FieldName),
make_command(get_vcard, R,
[{<<"user">>, User},
Expand All @@ -2091,7 +2091,7 @@ web_page_hostuser(_, Host, User, #request{path = [<<"vcard">>]} = R) ->
)]),
make_command(get_vcard2, R, [{<<"user">>, User}, {<<"host">>, Host}], []),
?XE(<<"blockquote">>,[make_table(
[<<"Name">>, <<"Subname">>, <<"Value">>],
[<<"name">>, <<"subname">>, <<"value">>],
[{?C(FieldName), ?C(FieldSubName),
make_command(get_vcard2, R,
[{<<"user">>, User},
Expand Down Expand Up @@ -2135,7 +2135,7 @@ web_page_node(_, Node, #request{path = [<<"stats">>]} = R, _Lang) ->
Res = ?H1GL(<<"Statistics">>, <<"modules/#mod_stats">>, <<"mod_stats">>) ++
[make_command(stats, R, [], [{only, presentation}]),
make_table(
[<<"Stat Name">>, {<<"Stat value">>, right}],
[<<"stat name">>, {<<"stat value">>, right}],
[{?C(<<"Online Users in this node:">>),
ejabberd_cluster:call(Node, ejabberd_web_admin, make_command,
[stats, R,
Expand Down

0 comments on commit ab7bdf6

Please sign in to comment.