Nagios XI 2012R2.9
RHEL 6.5 x64
Manual Install
Almost all names in CCM is center justified and is a eyestrain.
How can I make it left justified? I don't mind changing some php files.
Thanks.
UI Change Request
UI Change Request
You do not have the required permissions to view the files attached to this post.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
RHEL 6 & 7
rrdcached & ramdisk optimisation
Re: UI Change Request
If you want all text fields (and the checkbox) to be left-justified, make the following changes to /usr/local/nagiosxi/html/includes/components/ccm/css/style.css:
Code: Select all
table.standardtable tbody tr.even td {
background-color: #EFEFEF;
text-align: left; /* Added */
}
table.standardtable tbody tr.odd td {
text-align: left; /* Added */
}
Former Nagios employee
Re: UI Change Request
Would have preferred just the name column but anyway still better than before. Thankstmcdonald wrote:If you want all text fields (and the checkbox) to be left-justified, make the following changes to /usr/local/nagiosxi/html/includes/components/ccm/css/style.css:
Code: Select all
table.standardtable tbody tr.even td { background-color: #EFEFEF; text-align: left; /* Added */ } table.standardtable tbody tr.odd td { text-align: left; /* Added */ }
Please close this ticket.
You do not have the required permissions to view the files attached to this post.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
RHEL 6 & 7
rrdcached & ramdisk optimisation
Re: UI Change Request
Well, we can change these lines:
Change /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php from:
to
and revert the changes to /usr/local/nagiosxi/html/includes/components/ccm/css/style.css and change to:
adding a new class to the table cell and creating a new CSS rule for it.
Change /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php from:
Code: Select all
<td><a href="javascript:actionPic('modify', '{$id}', '')" title="Modify">{$name}</a></td>Code: Select all
<td class='name_left_align'><a href="javascript:actionPic('modify', '{$id}', '')" title="Modify">{$name}</a></td>Code: Select all
table.standardtable tbody tr.even td {
background-color: #EFEFEF;
}
table.standardtable tbody tr.odd td {
}
table.standardtable tbody tr td.name_left_align {
text-align: left;
}
Former Nagios employee
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: UI Change Request
I agree with rajasegar, this would be a good improvement to the CCM interface.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: UI Change Request
To summarise
vi /usr/local/nagiosxi/html/includes/components/ccm/css/style.css
Add the following code in line 302
table.standardtable tbody tr td.name_left_align {
text-align: left;
}
vi /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php
Change lines 187 & 188 to the following
<td class='name_left_align'><a href="javascript:actionPic('modify', '{$id}', '')" title="Modify">{$name}</a></td>
<td class='name_left_align'>{$clean_desc}</td>
You will now end up with left aligned name and alias.
vi /usr/local/nagiosxi/html/includes/components/ccm/css/style.css
Add the following code in line 302
table.standardtable tbody tr td.name_left_align {
text-align: left;
}
vi /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php
Change lines 187 & 188 to the following
<td class='name_left_align'><a href="javascript:actionPic('modify', '{$id}', '')" title="Modify">{$name}</a></td>
<td class='name_left_align'>{$clean_desc}</td>
You will now end up with left aligned name and alias.
You do not have the required permissions to view the files attached to this post.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
RHEL 6 & 7
rrdcached & ramdisk optimisation
Re: UI Change Request
Looks correct to me. I'll go ahead and put in a feature request for this. Gonna close up the thread now.
Former Nagios employee
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: UI Change Request
This feature will be included in 2014R1.2