-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
55a5b8e
commit ee2edf0
Showing
13 changed files
with
214 additions
and
223 deletions.
There are no files selected for viewing
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
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,51 @@ | ||
<div class="p-asset-card p-equal-height-row__col" style="padding:0.75rem;background:#f7f7f7;margin-top:2rem;"> | ||
<div class="p-equal-height-row__item"> | ||
{% if asset.data.image %} | ||
<a href="/v1/{{ asset.file_path }}" target="_blank"> | ||
<img | ||
class="p-asset-card--thumbnail" | ||
src="/v1/{{ asset.file_path }}" | ||
/> | ||
</a> | ||
{% endif %} | ||
</div> | ||
<div class="p-equal-height-row__item"> | ||
{% if asset.name %} | ||
<p class="u-no-margin--bottom"><strong>{{ asset.name }}</strong></p> | ||
{% else %} | ||
<p class="u-no-margin--bottom"><strong>{{ asset.file_path.split('.')[0] }}</strong></p> | ||
{% endif %} | ||
<p>File type: <strong>.{{ asset.file_path.split('.', 1)[1] }}</strong></p> | ||
<p class="u-no-margin--bottom">Image size: <strong>{% if asset.data.width and asset.data.height %}{{asset.data.width}} x {{asset.data.height}}{% endif %}</strong></p> | ||
<p> | ||
Tags: | ||
{% for tag in asset.tags %} | ||
<strong>{{ tag.name }}{% if not loop.last %},{% endif %}</strong> | ||
{% endfor %} | ||
</p> | ||
<p> | ||
<span>Date created: {{ asset.created.strftime('%d %B %Y') }}</span> | ||
</p> | ||
</div> | ||
<div class="p-equal-height-row__item"> | ||
<p class="p-text--small"> | ||
<a href="/manager/details?file-path={{ asset.file_path }}">Full asset details ›</a> | ||
</p> | ||
</div> | ||
<div class="p-equal-height-row__item"> | ||
<p class="u-align--right u-no-margin--bottom" style="height:100%"> | ||
<button | ||
class="p-button--positive copy-link is-dense" | ||
data-url="/v1/{{ asset.file_path }}" | ||
> | ||
Asset link | ||
</button> | ||
<a | ||
class="p-button is-dense" | ||
href="/manager/update?file-path={{ asset.file_path }}" | ||
> | ||
Edit asset | ||
</a> | ||
</p> | ||
</div> | ||
</div> |
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 @@ | ||
<div class="p-asset-card p-equal-height-row__col" style=""> | ||
<div class="p-equal-height-row__item" style="max-height:6rem;"> | ||
{% if asset.asset_type == "whitepaper" %} | ||
<img class="p-asset-card--thumbnail" src="https://assets.ubuntu.com/v1/b061c401-White+paper.svg" alt=""> | ||
{% else %} | ||
<img class="p-asset-card--thumbnail" src="https://assets.ubuntu.com/v1/fd84bbdc-Document-open.svg" alt=""> | ||
{% endif %} | ||
</div> | ||
<div class="p-equal-height-row__item"> | ||
{% if asset.name %} | ||
<p><strong>{{ asset.name }}</strong></p> | ||
{% else %} | ||
<p><strong>{{ asset.file_path.split('.')[0] }}</strong></p> | ||
{% endif %} | ||
<p class="u-no-margin--bottom">File type: <strong>.{{ asset.file_path.split('.', 1)[1] }}</strong></p> | ||
<p>Asset type: <strong>{{ asset.asset_type }}</strong></p> | ||
<p> | ||
Tags: | ||
{% for tag in asset.tags %} | ||
<strong>{{ tag.name }}{% if not loop.last %},{% endif %}</strong> | ||
{% endfor %} | ||
</p> | ||
<p> | ||
<span>Date created: {{ asset.created.strftime('%d %B %Y') }}</span> | ||
</p> | ||
</div> | ||
<div class="p-equal-height-row__item"> | ||
<p class="p-text--small"> | ||
<a href="/manager/details?file-path={{ asset.file_path }}">Full asset details ›</a> | ||
</p> | ||
</div> | ||
<div class="p-equal-height-row__item"> | ||
<p class="u-align--right u-no-margin--bottom" style="height:100%"> | ||
<button | ||
class="p-button--positive copy-link is-dense" | ||
data-url="/v1/{{ asset.file_path }}" | ||
> | ||
Asset link | ||
</button> | ||
<a | ||
class="p-button is-dense" | ||
href="/manager/update?file-path={{ asset.file_path }}" | ||
> | ||
Edit asset | ||
</a> | ||
</p> | ||
</div> | ||
</div> |
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
{% for asset in assets %} | ||
{% include "_asset.html" %} | ||
{% if asset.data.image %} | ||
{% include "_asset-card-image.html" %} | ||
{% else %} | ||
{% include "_asset-card.html" %} | ||
{% endif %} | ||
{% endfor %} |
This file was deleted.
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,58 @@ | ||
{% extends "_layout.html" %} | ||
|
||
{% block title %}Asset details{% endblock %} | ||
|
||
{% block content %} | ||
<div class="p-strip is-shallow"> | ||
<div class="row"> | ||
<div class="col-4"> | ||
<h2>Asset details</h2> | ||
{% if asset.data.image %} | ||
<a href="/v1/{{ asset.file_path }}" target="_blank"> | ||
<img | ||
src="/v1/{{ asset.file_path }}" | ||
/> | ||
</a> | ||
{% endif %} | ||
<p>File path:<strong>{{ file_path }}</strong></p> | ||
<p>Name: <strong>{{ asset.name }}</strong></p> | ||
<p>File type: <strong>.{{ asset.file_path.split('.', 1)[1] }}</strong></p> | ||
<p>Asset type: {{ asset.asset_type }}</p> | ||
<p>Image size: <strong>{% if asset.data.width and asset.data.height %}{{asset.data.width}} x {{asset.data.height}}{% else %}Unknown{% endif %}</strong></p> | ||
<p> | ||
Products: | ||
{% for product in asset.products %} | ||
<strong>{{ product.name }}{% if not loop.last %},{% endif %}</strong> | ||
{% endfor %} | ||
</p> | ||
<p> | ||
Tags: | ||
{% for tag in asset.tags %} | ||
<strong>{{ tag.name }}{% if not loop.last %},{% endif %}</strong> | ||
{% endfor %} | ||
</p> | ||
<p>Created: {{ asset.created.strftime('%d %B %Y') }}</p> | ||
<p>Updated: {{ asset.updated.strftime('%d %B %Y') }}</p> | ||
<p>Google drive link: {{ asset.google_drive_link }}</p> | ||
<p>Author email: {{ asset.author_email }}</p> | ||
<p>Language: {{ asset.language }}</p> | ||
<p>Salesforce campaign ID: {{ asset.salesforce_campaign_id }}</p> | ||
<p>Deprecated: {{ asset.deprecated }}</p> | ||
<p style="height:100%"> | ||
<button | ||
class="p-button--positive copy-link is-dense" | ||
data-url="/v1/{{ asset.file_path }}" | ||
> | ||
Asset link | ||
</button> | ||
<button | ||
class="p-button is-dense" | ||
data-url="/manager/update?file-path={{ asset.file_path }}" | ||
> | ||
Edit asset | ||
</button> | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} |
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
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
Oops, something went wrong.