-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from lossyrob/feature/rde/collection-assets
Add collection assets and summaries
- Loading branch information
Showing
11 changed files
with
5,366 additions
and
1,537 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<template> | ||
<b-tab | ||
title="Assets" | ||
:active="active" | ||
key="assets" | ||
> | ||
<div class="table-responsive assets"> | ||
<table class="table table-striped"> | ||
<thead> | ||
<tr> | ||
<th>Name</th> | ||
<th v-if="hasBands > 0">Band(s)</th> | ||
<th>Roles</th> | ||
<th>Content-Type</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr v-for="asset in assets" :key="asset.key"> | ||
<td> | ||
<!-- eslint-disable-next-line vue/max-attributes-per-line vue/no-v-html --> | ||
<a | ||
:href="asset.href" | ||
:title="asset.key" | ||
v-html="asset.label" | ||
/> | ||
</td> | ||
<td v-if="hasBands">{{ asset.bandNames }}</td> | ||
<td> | ||
<code>{{ asset.roleNames }}</code> | ||
</td> | ||
<td> | ||
<code>{{ asset.type }}</code> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</b-tab> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: "AssetTab", | ||
props: ["assets", "bands", "active", "hasBands"] | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.