Browse Source

Use horizontal list for operation details table cell.

master
Ben Kurtovic 8 years ago
parent
commit
670d219be0
2 changed files with 22 additions and 9 deletions
  1. +12
    -1
      static/campaigns.css
  2. +10
    -8
      templates/campaigns/renderers.mako

+ 12
- 1
static/campaigns.css View File

@@ -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 View File

@@ -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>


Loading…
Cancel
Save