You can customize xMatters by adding company logos or other images to the web user interface. You can use separate graphics for the login page and the page headers, and specify a different image for each Company in xMatters.
By default, xMatters looks for an image file named customer-logo.png in the following directory on the web server:
<xMHOME>/webserver/webapps/cocoon/alarmpoint/jsp/login/<Company Name>/
If the file exists, xMatters automatically displays the file within the login dialog on the login page for that Company.
To display an image on the login page, rename your image file to customer-logo.gif (use an image editor to convert the file format if necessary) and copy it into the default directory on the xMatters web server. Note the following recommended guidelines:
To use a different image name or file type, open the /alarmpoint/jsp/login/<Company Name>/SignOn.jsp file and locate the following code:
<div class="sign-on-logo-container">
<% if (application.getResource("/alarmpoint/" + loginPath + "/customer-logo.png") != null) { %><table class="alarmpoint-logo">
<tr>
<td class="small-logo">
<img class="customer-logo" src="<%="/static/" + loginPath + "/customer-logo.png"%>" />
</td>
...
</tr>
</table>
<% } else {%></div>
Change both occurrences of customer-logo.png to the file name of the image you want to display on the login page.
By default, xMatters looks for an image file named customer-logo2.gif in the following directory on the web server:
<xMHOME>/webserver/webapps/cocoon/alarmpoint/jsp/login/<Company Name>/
If the file exists, xMatters automatically displays the file within the page header of all pages for that Company.
The page header graphic is automatically scaled to 29x29 pixels, which may cause your image to distort if it is not square. It is recommended that you do not use an image taller than 29 pixels, as larger images will skew the alignment of the other header components.
To use an image wider than 29 pixels, you can edit the <xMatters>/webserver/webapps/cocoon/alarmpoint/css/alarmpoint.css file. Locate the following section:
div.customer-banner-logo img {z-index: 100;
position: absolute;
left: 6px;
top: 45px;
height: 29px;
width: 29px;
}
Edit the width line to specify the width of your image; for example, if you want to use an image that is 100 pixels wide, change the line to the following:
width: 100px;
To use a different image name or file type, open the /alarmpoint/sitemap.xmap file and locate the following code:
<map:action name="add-customer-logo" src="com.invoqsystems.apex.web.cocoon.actions.AddCustomerLogoAction">
<map:parameter name="imageName" value="customer-logo2.gif"/>
</map:action>
Change the value for the map:parameter to the file name and type of the image you want to use.