24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-02 21:17:12 +02:00

Reuse some strings in WebAdmin's Listening Ports

This commit is contained in:
Badlop 2015-07-27 11:23:51 +02:00
parent 76104cd117
commit d03d08539b

View File

@ -2399,11 +2399,11 @@ node_ports_to_xhtml(Ports, Lang) ->
?XE(<<"td">>, ?XE(<<"td">>,
[?INPUTT(<<"submit">>, [?INPUTT(<<"submit">>,
<<"add", SSPort/binary>>, <<"add", SSPort/binary>>,
<<"Update">>)]), <<"Restart">>)]),
?XE(<<"td">>, ?XE(<<"td">>,
[?INPUTT(<<"submit">>, [?INPUTT(<<"submit">>,
<<"delete", SSPort/binary>>, <<"delete", SSPort/binary>>,
<<"Delete">>)])]) <<"Stop">>)])])
end, end,
Ports) Ports)
++ ++
@ -2423,7 +2423,7 @@ node_ports_to_xhtml(Ports, Lang) ->
<<"[]">>)]), <<"[]">>)]),
?XAE(<<"td">>, [{<<"colspan">>, <<"2">>}], ?XAE(<<"td">>, [{<<"colspan">>, <<"2">>}],
[?INPUTT(<<"submit">>, <<"addnew">>, [?INPUTT(<<"submit">>, <<"addnew">>,
<<"Add New">>)])])]))]). <<"Start">>)])])]))]).
make_netprot_html(NetProt) -> make_netprot_html(NetProt) ->
?XAE(<<"select">>, [{<<"name">>, <<"netprotnew">>}], ?XAE(<<"select">>, [{<<"name">>, <<"netprotnew">>}],