Update admin.php

Line up Page Index links a bit better
This commit is contained in:
Brian Huisman 2023-04-26 20:25:56 -04:00
parent ba04173c29
commit 8405e903c3

View file

@ -2293,7 +2293,7 @@ document.write(mustache.render(
</th> </th>
</tr> </tr>
<tr> <tr>
<th></th> <th class="pe-0"></th>
<th class="fs-5" scope="col">URL</th> <th class="fs-5" scope="col">URL</th>
<td class="text-center"> <td class="text-center">
<span class="d-none d-sm-inline">Showing pages </span><?php <span class="d-none d-sm-inline">Showing pages </span><?php
@ -2316,7 +2316,7 @@ document.write(mustache.render(
</tr> </tr>
<tr><?php <tr><?php
ob_start(); ?> ob_start(); ?>
<td class="align-middle"> <td class="align-middle pe-0">
<input type="checkbox" name="os_index_check_all" title="Select / unselect all" class="form-check-input"> <input type="checkbox" name="os_index_check_all" title="Select / unselect all" class="form-check-input">
</td> </td>
<td colspan="2" class="text-nowrap"> <td colspan="2" class="text-nowrap">
@ -2352,7 +2352,7 @@ document.write(mustache.render(
foreach ($_RDATA['page_index_rows'] as $key => $row) { ?> foreach ($_RDATA['page_index_rows'] as $key => $row) { ?>
<tr class="lh-sm"> <tr class="lh-sm">
<td class="align-middle"> <td class="align-middle pe-0">
<input type="checkbox" data-index="<?php echo $key; ?>" name="os_index_pages[]" value="<?php echo base64_encode($row['content_checksum']); ?>" class="form-check-input mt-1"> <input type="checkbox" data-index="<?php echo $key; ?>" name="os_index_pages[]" value="<?php echo base64_encode($row['content_checksum']); ?>" class="form-check-input mt-1">
</td> </td>
<td colspan="2" class="text-nowrap"> <td colspan="2" class="text-nowrap">
@ -2360,14 +2360,14 @@ document.write(mustache.render(
<div class="w-100 d-table table-fixed"> <div class="w-100 d-table table-fixed">
<div class="w-100 d-table-cell overflow-hidden text-ellipsis"> <div class="w-100 d-table-cell overflow-hidden text-ellipsis">
<a href="<?php echo htmlspecialchars($row['url']); ?>" title="<?php <a href="<?php echo htmlspecialchars($row['url']); ?>" title="<?php
echo htmlspecialchars($row['url']); ?>" target="_blank"<?php echo htmlspecialchars($row['url']); ?>" target="_blank" class="align-middle<?php
if ($row['flag_updated']) echo ' class="fw-bold"'; ?>><?php if ($row['flag_updated']) echo ' fw-bold'; ?>"><?php
if (count($_RDATA['s_crawldata_domains']) == 1) { if (count($_RDATA['s_crawldata_domains']) == 1) {
echo htmlspecialchars(preg_replace($repStr, '', $row['url'])); echo htmlspecialchars(preg_replace($repStr, '', $row['url']));
} else echo htmlspecialchars($row['url']); } else echo htmlspecialchars($row['url']);
?></a><?php ?></a><?php
if ($row['flag_updated']) { ?> if ($row['flag_updated']) { ?>
<img src="img/new.svg" alt="Updated" class="align-middle svg-icon mb-1" <img src="img/new.svg" alt="Updated" class="svg-icon"
data-bs-toggle="tooltip" data-bs-placement="top" title="Page is new or content was updated during the most recent crawl."><?php data-bs-toggle="tooltip" data-bs-placement="top" title="Page is new or content was updated during the most recent crawl."><?php
} ?> } ?>
</div> </div>