Browse Source

fix css for long URLs

main
Aaron Parecki 8 years ago
parent
commit
1ca8860e8a
3 changed files with 38 additions and 18 deletions
  1. +21
    -1
      public/assets/styles.css
  2. +4
    -4
      views/dashboard.php
  3. +13
    -13
      views/webmention-details.php

+ 21
- 1
public/assets/styles.css View File

@ -15,4 +15,24 @@ h2.site-name .edit-site {
} }
h2.site-name:hover .edit-site { h2.site-name:hover .edit-site {
visibility: visible; visibility: visible;
}
}
.status-table .status {
width: 70px;
}
.status-table .date {
width: 135px;
}
.status-table .urls {
width: 495px;
max-width: 495px;
overflow-x: scroll;
}
.details-table .left {
width: 80px;
}
.details-table .right {
max-width: 620px;
overflow-x: scroll;
}

+ 4
- 4
views/dashboard.php View File

@ -31,7 +31,7 @@
</div> </div>
<? if(count($webmentions)): ?> <? if(count($webmentions)): ?>
<table class="ui striped table">
<table class="ui striped table status-table">
<thead> <thead>
<th>Status</th> <th>Status</th>
<th>Date</th> <th>Date</th>
@ -40,19 +40,19 @@
<tbody> <tbody>
<?php foreach($webmentions as $mention): ?> <?php foreach($webmentions as $mention): ?>
<tr<?= $mention['status'] == 'pending' ? ' class="warning"' : '' ?>> <tr<?= $mention['status'] == 'pending' ? ' class="warning"' : '' ?>>
<td>
<td class="status">
<div class="popup" data-content="<?= $mention['status'] ?>"> <div class="popup" data-content="<?= $mention['status'] ?>">
<a href="/webmention/<?= $mention['webmention']->token ?>/details"> <a href="/webmention/<?= $mention['webmention']->token ?>/details">
<i class="circular inverted <?= $mention['icon'] ?> icon"></i> <i class="circular inverted <?= $mention['icon'] ?> icon"></i>
</a> </a>
</div> </div>
</td> </td>
<td>
<td class="date">
<a href="/webmention/<?= $mention['webmention']->token ?>/details"> <a href="/webmention/<?= $mention['webmention']->token ?>/details">
<?= date('M j, g:ia', strtotime($mention['webmention']->created_at)) ?> <?= date('M j, g:ia', strtotime($mention['webmention']->created_at)) ?>
</a> </a>
</td> </td>
<td>
<td class="urls">
source=<a href="<?= $this->e($mention['webmention']->source) ?>"><?= $this->e($mention['webmention']->source) ?></a><br> source=<a href="<?= $this->e($mention['webmention']->source) ?>"><?= $this->e($mention['webmention']->source) ?></a><br>
target=<a href="<?= $this->e($mention['webmention']->target) ?>"><?= $this->e($mention['webmention']->target) ?></a> target=<a href="<?= $this->e($mention['webmention']->target) ?>"><?= $this->e($mention['webmention']->target) ?></a>
</td> </td>

+ 13
- 13
views/webmention-details.php View File

@ -4,36 +4,36 @@
<h2>Webmention Request</h2> <h2>Webmention Request</h2>
<table class="ui table single line"><tbody>
<table class="ui table details-table"><tbody>
<tr> <tr>
<td><b>Status</b></td>
<td>
<td class="left"><b>Status</b></td>
<td class="right">
<i class="circular inverted <?= $icon ?> icon"></i> <i class="circular inverted <?= $icon ?> icon"></i>
<?= ucfirst($status) ?> <?= ucfirst($status) ?>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><b>Date</b></td>
<td><?= date('M j, g:ia', strtotime($webmention->created_at)) ?></td>
<td class="left"><b>Date</b></td>
<td class="right"><?= date('M j, g:ia', strtotime($webmention->created_at)) ?></td>
</tr> </tr>
<tr> <tr>
<td><b>Source</b></td>
<td><a href="<?= $this->e($webmention->source) ?>"><?= $this->e($webmention->source) ?></a></td>
<td class="left"><b>Source</b></td>
<td class="right"><a href="<?= $this->e($webmention->source) ?>"><?= $this->e($webmention->source) ?></a></td>
</tr> </tr>
<tr> <tr>
<td><b>Target</b></td>
<td><a href="<?= $this->e($webmention->target) ?>"><?= $this->e($webmention->target) ?></a></td>
<td class="left"><b>Target</b></td>
<td class="right"><a href="<?= $this->e($webmention->target) ?>"><?= $this->e($webmention->target) ?></a></td>
</tr> </tr>
<? if($webmention->vouch): ?> <? if($webmention->vouch): ?>
<tr> <tr>
<td><b>Vouch</b></td>
<td><a href="<?= $this->e($webmention->vouch) ?>"><?= $this->e($webmention->vouch) ?></a></td>
<td class="left"><b>Vouch</b></td>
<td class="right"><a href="<?= $this->e($webmention->vouch) ?>"><?= $this->e($webmention->vouch) ?></a></td>
</tr> </tr>
<? endif; ?> <? endif; ?>
<? if($webmention->callback): ?> <? if($webmention->callback): ?>
<tr> <tr>
<td><b>Callback URL</b></td>
<td><?= $this->e($webmention->callback) ?></td>
<td class="left"><b>Callback URL</b></td>
<td class="right"><?= $this->e($webmention->callback) ?></td>
</tr> </tr>
<? endif; ?> <? endif; ?>
</tbody></table> </tbody></table>

Loading…
Cancel
Save