Merge pull request #1717 from opf/feature/styleguide-details-pane-table
commit
f6d0afcf6f
@ -0,0 +1,36 @@ |
||||
# Work Packages - [Details Pane] - Tables |
||||
|
||||
``` |
||||
|
||||
<table class="detail-pane-table"> |
||||
<thead> |
||||
<tr> |
||||
<td>Subject</td> |
||||
<td>Status</td> |
||||
<td>Assignee</td> |
||||
<td></td> |
||||
</tr> |
||||
</thead> |
||||
<tbody> |
||||
<tr> |
||||
<td><a href="#">Lorem ipsum</a></td> |
||||
<td>Resolved</td> |
||||
<td><a href="#">John Doe</a></td> |
||||
<td><i title="Delete relation" class="delete-item icon-delete"></i></td> |
||||
</tr> |
||||
<tr> |
||||
<td><a href="#">Lorem ipsum evvrevrevrevrebrebreberberbrebbreevrvrevrebre</a></td> |
||||
<td>Resolved</td> |
||||
<td><a href="#">John Doe</a></td> |
||||
<td><i title="Delete relation" class="delete-item icon-delete"></i></td> |
||||
</tr> |
||||
<tr> |
||||
<td><a href="#">Lorem ipsum</a></td> |
||||
<td>Resolved</td> |
||||
<td><a href="#">John Doe</a></td> |
||||
<td><i title="Delete relation" class="delete-item icon-delete"></i></td> |
||||
</tr> |
||||
</tbody> |
||||
</table> |
||||
|
||||
``` |
@ -0,0 +1,46 @@ |
||||
/* Please use these styles for tables inside the details-pane */ |
||||
|
||||
table.detail-pane-table |
||||
width: 100% |
||||
table-layout: fixed |
||||
border-collapse: collapse |
||||
thead |
||||
border-bottom: 1px solid #dddddd |
||||
font-weight: bold |
||||
text-transform: uppercase |
||||
tr |
||||
td |
||||
padding: 3px 8px 3px 0 |
||||
text-overflow: ellipsis |
||||
white-space: nowrap |
||||
overflow: hidden |
||||
|
||||
.delete-item |
||||
cursor: pointer |
||||
float: right |
||||
|
||||
table.relations-table |
||||
tr |
||||
td |
||||
&:first-of-type |
||||
width: 50% |
||||
&:nth-child(2) |
||||
width: 15% |
||||
&:nth-child(3) |
||||
width: 25% |
||||
&:last-of-type |
||||
width: 10% |
||||
|
||||
table.attachments-table |
||||
tr |
||||
td |
||||
&:first-of-type |
||||
width: 20% |
||||
&:nth-child(2) |
||||
width: 10% |
||||
&:nth-child(3) |
||||
width: 20% |
||||
&:nth-child(4) |
||||
width: 15% |
||||
&:last-of-type |
||||
width: 25% |
@ -1,20 +1,22 @@ |
||||
|
||||
<table ng-if="attachments.length"> |
||||
<tbody> |
||||
<table ng-if="attachments.length" class="detail-pane-table attachments-table"> |
||||
<thead> |
||||
<tr> |
||||
<th>{{ I18n.t('js.label_filename')}}</th> |
||||
<th>{{ I18n.t('js.label_filesize')}}</th> |
||||
<th>{{ I18n.t('js.label_uploaded_by')}}</th> |
||||
<th>{{ I18n.t('js.label_description')}}</th> |
||||
<th>{{ I18n.t('js.label_date')}}</th> |
||||
<td title="{{ I18n.t('js.label_filename')}}">{{ I18n.t('js.label_filename')}}</td> |
||||
<td title="{{ I18n.t('js.label_filesize')}}">{{ I18n.t('js.label_filesize')}}</td> |
||||
<td title="{{ I18n.t('js.label_uploaded_by')}}">{{ I18n.t('js.label_uploaded_by')}}</td> |
||||
<td title="{{ I18n.t('js.label_description')}}">{{ I18n.t('js.label_description')}}</td> |
||||
<td title="{{ I18n.t('js.label_date')}}">{{ I18n.t('js.label_date')}}</td> |
||||
</tr> |
||||
</thead> |
||||
<tbody> |
||||
<tr ng-repeat="attachment in attachments" |
||||
attachment="attachment"> |
||||
<td attachment-title-cell attachment="attachment"></td> |
||||
<td attachment-file-size attachment="attachment"></td> |
||||
<td attachment-user-cell attachment="attachment"></td> |
||||
<td>{{ attachment.props.description }}</td> |
||||
<td><date-time date-time-value="attachment.props.createdAt"></date></td> |
||||
<td><date-time date-time-value="attachment.props.createdAt"></date-time></td> |
||||
</tr> |
||||
</tbody> |
||||
</table> |
||||
|
Loading…
Reference in new issue