Browse Source

Consistent tables

pull/221/head
Sebastian Stehle 8 years ago
parent
commit
7e1f70af66
  1. 29
      src/Squidex/app/features/rules/pages/events/rule-events-page.component.html
  2. 12
      src/Squidex/app/theme/_lists.scss

29
src/Squidex/app/features/rules/pages/events/rule-events-page.component.html

@ -22,47 +22,42 @@
<div class="panel-main"> <div class="panel-main">
<div class="panel-content panel-content-scroll"> <div class="panel-content panel-content-scroll">
<table class="table table-items table-fixed"> <table class="table table-items table-fixed">
<colgroup>
<col style="width: 100px" />
<col style="width: 40%" />
<col style="width: 60%" />
<col style="width: 180px" />
<col style="width: 80px" />
</colgroup>
<thead> <thead>
<tr> <tr>
<th> <th class="cell-label">
Status Status
</th> </th>
<th> <th class="cell-40">
Event Event
</th> </th>
<th> <th class="cell-60">
Description Description
</th> </th>
<th> <th class="cell-time">
Created Created
</th> </th>
<th class="cell-options">
</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<ng-template ngFor let-event [ngForOf]="eventsItems"> <ng-template ngFor let-event [ngForOf]="eventsItems">
<tr [class.expanded]="selectedEventId === event.id"> <tr [class.expanded]="selectedEventId === event.id">
<td> <td class="cell-label">
<span class="badge badge-pill badge-{{getBadgeClass(event.jobResult)}}">{{event.jobResult}}</span> <span class="badge badge-pill badge-{{getBadgeClass(event.jobResult)}}">{{event.jobResult}}</span>
</td> </td>
<td> <td class="cell-40">
<span class="truncate">{{event.eventName}}</span> <span class="truncate">{{event.eventName}}</span>
</td> </td>
<td> <td class="cell-60">
<span class="truncate">{{event.description}}</span> <span class="truncate">{{event.description}}</span>
</td> </td>
<td> <td class="cell-time">
<small class="item-modified">{{event.created | sqxFromNow}}</small> <small class="item-modified">{{event.created | sqxFromNow}}</small>
</td> </td>
<td> <td class="cell-options">
<button type="button" class="btn btn-secondary table-items-edit-button" [class.active]="selectedEventId === event.id" (click)="selectEvent(event.id)"> <button type="button" class="btn btn-secondary table-items-edit-button" [class.active]="selectedEventId === event.id" (click)="selectEvent(event.id)">
<i class="icon-settings"></i> <i class="icon-settings"></i>
</button> </button>

12
src/Squidex/app/theme/_lists.scss

@ -181,10 +181,22 @@
// Cell styles // Cell styles
// //
.cell { .cell {
&-40 {
width: 40%;
}
&-60 {
width: 60%;
}
&-select { &-select {
width: 50px; width: 50px;
} }
&-label {
width: 100px;
}
&-separator { &-separator {
width: 60px; width: 60px;
} }

Loading…
Cancel
Save