Parcourir la source

Use horizontal list for operation details table cell.

master
Ben Kurtovic il y a 8 ans
Parent
révision
670d219be0
2 fichiers modifiés avec 22 ajouts et 9 suppressions
  1. +12
    -1
      static/campaigns.css
  2. +10
    -8
      templates/campaigns/renderers.mako

+ 12
- 1
static/campaigns.css Voir le fichier

@@ -204,7 +204,18 @@ h2 .disabled-info {
padding-left: 0.5em;
}

.operation.detail .detail-list > :not(:last-child)::after {
.operation.detail .detail-list {
display: inline-block;
margin: 0;
padding: 0;
list-style: none;
}

.operation.detail .detail-list li {
display: inline-block;
}

.operation.detail .detail-list li:not(:last-child)::after {
margin-left: 0.25em;
content: "/";
color: #AAA;


+ 10
- 8
templates/campaigns/renderers.mako Voir le fichier

@@ -63,14 +63,16 @@
<td class="icon spacer"></td>
% endif
% if detail:
<td class="detail-item detail-list">
<a href="https://zkillboard.com/corporation/${victim['corp_id']}/">${victim['corp_name'] | h}</a>
% if victim['alliance_name']:
<a href="https://zkillboard.com/alliance/${victim['alliance_id']}/">${victim['alliance_name'] | h}</a>
% endif
% if victim['faction_name']:
<a href="https://zkillboard.com/faction/${victim['faction_id']}/">${victim['faction_name'] | h}</a>
% endif
<td class="detail-item">
<ul class="detail-list">
<li><a href="https://zkillboard.com/corporation/${victim['corp_id']}/">${victim['corp_name'] | h}</a></li>
% if victim['alliance_name']:
<li><a href="https://zkillboard.com/alliance/${victim['alliance_id']}/">${victim['alliance_name'] | h}</a></li>
% endif
% if victim['faction_name']:
<li><a href="https://zkillboard.com/faction/${victim['faction_id']}/">${victim['faction_name'] | h}</a></li>
% endif
</ul>
</td>
% endif
</tr>


Chargement…
Annuler
Enregistrer