Improve look of hosts table

This commit is contained in:
Roan Horning 2023-02-12 16:54:17 -05:00
parent fe9bf574cf
commit b2eaea1eb8
Signed by untrusted user: rho_n
GPG Key ID: 234AEF20B72D5769
2 changed files with 7 additions and 2 deletions

View File

@ -235,7 +235,12 @@ pre { /* Add background, border and scrollbar to <pre> */
clear: both;
}
table.hosts {
background: white
}
table.hosts tr:nth-child(even) { background-color:#cccccc; }
table.hosts tr:nth-child(odd) { background-color:white; }
table.hosts tr td img { vertical-align:middle }
@media only screen and (max-width: 680px) {
#container {width: 95%;}

View File

@ -4,7 +4,7 @@
<p>For more information on how to become a Correspondent see our <a href="<!--% absolute_path(baseurl) %-->contribute.html">contribute</a></center> page. To add a logo here, either email one to admin at hpr or setup your email on <a href="https://en.gravatar.com/">Gravatar</a>. To protect your browsing privacy we gather the images every hour and serve them directly from HPR.<p />
<!--% USE DBI(constants.driver, constants.user, constants.password) %-->
<!--% PROCESS 'shared-avatar.tpl.html' %-->
<table>
<table class="hosts">
<th >Avatar</th>
<th >Name &amp; Host ID</th>
<th >license</th>
@ -16,7 +16,7 @@
inner join (select hostid, max(date) as date from eps group by hostid) as e
on h.hostid = e.hostid '
) %-->
<tr height="80" bgcolor="#CCCCCC">
<tr height="80">
<td><img src="<!--% absolute_path(baseurl) %-->images/<!--% get_avatar(host.hostid) %-->" height="80" width="80" alt="avatar" /></td>
<td><strong><!--% host.host %--></strong><br>