html classes
list David Boldt
Not sure if this is the right venue for posting feature requests, but it
would be useful if html which is generated by programs specified unique
html classes wherever possible to allow CSS styling. An example, for
Information Tables:
*** web/csvinfo.c 2017-06-19 14:14:13.186316715 -0500
--- web/csvinfo.c.new 2017-06-19 14:11:16.385617041 -0500
***************
*** 185,191 ****
sethostenv(wantedname, "", "", colorname(bgcolor), NULL);
headfoot(stdout, hffile, "", "header", bgcolor);
! printf("<table align=center border=1 summary=\"Information
table\">\n");
for (i=0; (headers[i]); i++) {
printf("<tr>\n");
--- 185,191 ----
sethostenv(wantedname, "", "", colorname(bgcolor), NULL);
headfoot(stdout, hffile, "", "header", bgcolor);
! printf("<table class=\"informationTable\" align=center border=1
summary=\"Information table\">\n");
for (i=0; (headers[i]); i++) {
printf("<tr>\n");
which would permit one to specify in file:
gifs/xymonbody.css
table.informationTable td { margin-left: 1em; margin-right: 1em }
to add a little spacing within the table cells around the text.
-- David Boldt
<user-945c7be1b8e4@xymon.invalid>
list Robert Taylor
I did this a few years ago and had no idea where to post my code. If you are going to do this, I'd do it with bootstrap or zurb classes so it's easily extended. Sent from my iPhone
▸
On Jun 19, 2017, at 3:34 PM, Boldt, David <user-945c7be1b8e4@xymon.invalid<mailto:user-945c7be1b8e4@xymon.invalid>> wrote:
Not sure if this is the right venue for posting feature requests, but it would be useful if html which is generated by programs specified unique html classes wherever possible to allow CSS styling. An example, for Information Tables:
*** web/csvinfo.c 2017-06-19 14:14:13.186316715 -0500
--- web/csvinfo.c.new 2017-06-19 14:11:16.385617041 -0500
***************
*** 185,191 ****
sethostenv(wantedname, "", "", colorname(bgcolor), NULL);
headfoot(stdout, hffile, "", "header", bgcolor);
! printf("<table align=center border=1 summary=\"Information table\">\n");
for (i=0; (headers[i]); i++) {
printf("<tr>\n");
--- 185,191 ----
sethostenv(wantedname, "", "", colorname(bgcolor), NULL);
headfoot(stdout, hffile, "", "header", bgcolor);
! printf("<table class=\"informationTable\" align=center border=1 summary=\"Information table\">\n");
for (i=0; (headers[i]); i++) {
printf("<tr>\n");
which would permit one to specify in file:
gifs/xymonbody.css
table.informationTable td { margin-left: 1em; margin-right: 1em }
to add a little spacing within the table cells around the text.
-- David Boldt<user-945c7be1b8e4@xymon.invalid<mailto:user-945c7be1b8e4@xymon.invalid>> Xymon at xymon.com<mailto:Xymon at xymon.com> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttp-3A__lists.xymon.com_mailman_listinfo_xymon%26d%3DDwIGaQ%26c%3DmV2WFcKaGjp0SvaEh_B2j3BtBwmVSZunRafC27PmV6I%26r%3DuvT0E3wdNSWfx_RCnOrnHrkoBWASocCAGtNHsg5KGyQ%26m%3DhHfUdLJ3b0XlHZInM_QdekQdEQgm5xnrxMQ1hv6Cz-I%26s%3DYcsO-UKRd8hDPXaT-WM5m-IvQT1ATWzChEXQqY6OP60%26e&data=user-43e06a154c93@xymon.invalid%7C16e83d27e0cc4f967efd08d4b74a3d0f%7Ca44a94932990421287ddd661751f0273%7C1&sdata=oc5WLYTHauHth3M0CDl%2B45epbcW%2B4SilUAFKHvIr93U%3D&reserved=0= CONFIDENTIALITY NOTICE This e-mail is intended only for the addressee named above. It contains information that is privileged, confidential or otherwise protected from use and disclosure. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, or dissemination of this transmission, or taking of any action in reliance on its contents, or other use is strictly prohibited. If you have received this transmission in error, please reply to the sender listed above immediately and permanently delete this message from your inbox.
list Galen Johnson
I thought there was some effort to make Xymon more themable. It may be Xymon 5 (if it's ever released). If not, it'd be nice to see some work done to handle this in current xymon. I've considered going through the code myself. I just don't want to have to patch everything whenever a new release comes out and I've since switched to the Terabithia RPMs. =G= From: Xymon <xymon-bounces at xymon.com> on behalf of Taylor, Robert <user-3e97fc7d80fd@xymon.invalid> Sent: Monday, June 19, 2017 3:36 PM To: Boldt, David Cc: xymon at xymon.com Subject: Re: [Xymon] html classes EXTERNAL
▸
I did this a few years ago and had no idea where to post my code. If you are going to do this, I'd do it with bootstrap or zurb classes so it's easily extended. Sent from my iPhone On Jun 19, 2017, at 3:34 PM, Boldt, David <user-945c7be1b8e4@xymon.invalid<mailto:user-945c7be1b8e4@xymon.invalid>> wrote: Not sure if this is the right venue for posting feature requests, but it would be useful if html which is generated by programs specified unique html classes wherever possible to allow CSS styling. An example, for Information Tables: *** web/csvinfo.c 2017-06-19 14:14:13.186316715 -0500 --- web/csvinfo.c.new 2017-06-19 14:11:16.385617041 -0500 *************** *** 185,191 **** sethostenv(wantedname, "", "", colorname(bgcolor), NULL); headfoot(stdout, hffile, "", "header", bgcolor); ! printf("<table align=center border=1 summary=\"Information table\">\n"); for (i=0; (headers[i]); i++) { printf("<tr>\n"); --- 185,191 ---- sethostenv(wantedname, "", "", colorname(bgcolor), NULL); headfoot(stdout, hffile, "", "header", bgcolor); ! printf("<table class=\"informationTable\" align=center border=1 summary=\"Information table\">\n"); for (i=0; (headers[i]); i++) { printf("<tr>\n"); which would permit one to specify in file: gifs/xymonbody.css table.informationTable td { margin-left: 1em; margin-right: 1em } to add a little spacing within the table cells around the text. -- David Boldt <user-945c7be1b8e4@xymon.invalid<mailto:user-945c7be1b8e4@xymon.invalid>> Xymon at xymon.com<mailto:Xymon at xymon.com> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttp-3A__lists.xymon.com_mailman_listinfo_xymon%26d%3DDwIGaQ%26c%3DmV2WFcKaGjp0SvaEh_B2j3BtBwmVSZunRafC27PmV6I%26r%3DuvT0E3wdNSWfx_RCnOrnHrkoBWASocCAGtNHsg5KGyQ%26m%3DhHfUdLJ3b0XlHZInM_QdekQdEQgm5xnrxMQ1hv6Cz-I%26s%3DYcsO-UKRd8hDPXaT-WM5m-IvQT1ATWzChEXQqY6OP60%26e&data=user-43e06a154c93@xymon.invalid%7C16e83d27e0cc4f967efd08d4b74a3d0f%7Ca44a94932990421287ddd661751f0273%7C1&sdata=oc5WLYTHauHth3M0CDl%2B45epbcW%2B4SilUAFKHvIr93U%3D&reserved=0= CONFIDENTIALITY NOTICE This e-mail is intended only for the addressee named above. It contains information that is privileged, confidential or otherwise protected from use and disclosure. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, or dissemination of this transmission, or taking of any action in reliance on its contents, or other use is strictly prohibited. If you have received this transmission in error, please reply to the sender listed above immediately and permanently delete this message from your inbox.
list Adam Goryachev
▸
On 20/06/17 05:28, Boldt, David wrote:
Not sure if this is the right venue for posting feature requests, but
it would be useful if html which is generated by programs specified
unique html classes wherever possible to allow CSS styling. An
example, for Information Tables:
*** web/csvinfo.c 2017-06-19 14:14:13.186316715 -0500
--- web/csvinfo.c.new 2017-06-19 14:11:16.385617041 -0500
***************
*** 185,191 ****
sethostenv(wantedname, "", "", colorname(bgcolor), NULL);
headfoot(stdout, hffile, "", "header", bgcolor);
! printf("<table align=center border=1 summary=\"Information table\">\n");
for (i=0; (headers[i]); i++) {
printf("<tr>\n");
--- 185,191 ----
sethostenv(wantedname, "", "", colorname(bgcolor), NULL);
headfoot(stdout, hffile, "", "header", bgcolor);
! printf("<table class=\"informationTable\" align=center border=1
summary=\"Information table\">\n");
for (i=0; (headers[i]); i++) {
printf("<tr>\n");
If doing this, shouldn't you also remove the "align=center border=1" and move that into the class? In fact, you might also need to edit the output to include the CSS file ie external CSS would be even better than internal css.... PS, I'm not a HTML/CSS person, I just pretend. Regards, Adam -- The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you have received this message in error, please notify us immediately. Please also destroy and delete the message from your computer. Viruses - Any loss/damage incurred by receiving this email is not the sender's responsibility. -- Adam Goryachev Website Managers www.websitemanagers.com.au
list David Boldt
I agree that formatting should move out of the html and into CSS.
Just wanted to start small with my suggestion to see if there was any
interest.
-- David Boldt
<user-945c7be1b8e4@xymon.invalid>
On Mon, Jun 19, 2017 at 7:31 PM, Adam Goryachev <
▸
user-92fd6827f6ae@xymon.invalid> wrote:
On 20/06/17 05:28, Boldt, David wrote:
Not sure if this is the right venue for posting feature requests, but it
would be useful if html which is generated by programs specified unique
html classes wherever possible to allow CSS styling. An example, for
Information Tables:
*** web/csvinfo.c 2017-06-19 14:14:13.186316715 -0500
--- web/csvinfo.c.new 2017-06-19 14:11:16.385617041 -0500
***************
*** 185,191 ****
sethostenv(wantedname, "", "", colorname(bgcolor), NULL);
headfoot(stdout, hffile, "", "header", bgcolor);
! printf("<table align=center border=1 summary=\"Information
table\">\n");
for (i=0; (headers[i]); i++) {
printf("<tr>\n");
--- 185,191 ----
sethostenv(wantedname, "", "", colorname(bgcolor), NULL);
headfoot(stdout, hffile, "", "header", bgcolor);
! printf("<table class=\"informationTable\" align=center border=1
summary=\"Information table\">\n");
for (i=0; (headers[i]); i++) {
printf("<tr>\n");
If doing this, shouldn't you also remove the "align=center border=1" and
move that into the class? In fact, you might also need to edit the output
to include the CSS file ie external CSS would be even better than internal
css....
PS, I'm not a HTML/CSS person, I just pretend.
Regards,
Adam
--
Adam Goryachev Website Managers www.websitemanagers.com.au
▸
-- The information in this e-mail is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this e-mail
by anyone else is unauthorised. If you are not the intended recipient, any
disclosure, copying, distribution or any action taken or omitted to be
taken in reliance on it, is prohibited and may be unlawful. If you have
received this message in error, please notify us immediately. Please also
destroy and delete the message from your computer. Viruses - Any
loss/damage incurred by receiving this email is not the sender's
responsibility.