diff --git a/static/sass/main.scss b/static/sass/main.scss index ff3c0fb..ba982a0 100644 --- a/static/sass/main.scss +++ b/static/sass/main.scss @@ -10,7 +10,7 @@ } } -.asset-thumbnail { +.p-asset-card--thumbnail { max-height: 100px; min-height: 100px; } @@ -40,4 +40,10 @@ .p-filter-panel-section__chips-toggle { padding-top: 6px; margin-bottom: 18px; +} + +.p-asset-card { + padding:0.75rem; + background:#f7f7f7; + margin-top:2rem; } \ No newline at end of file diff --git a/templates/_asset-card-image.html b/templates/_asset-card-image.html new file mode 100644 index 0000000..b7a78c9 --- /dev/null +++ b/templates/_asset-card-image.html @@ -0,0 +1,51 @@ +
{{ asset.name }}
+ {% else %} +{{ asset.file_path.split('.')[0] }}
+ {% endif %} +File type: .{{ asset.file_path.split('.', 1)[1] }}
+Image size: {% if asset.data.width and asset.data.height %}{{asset.data.width}} x {{asset.data.height}}{% endif %}
++ Tags: + {% for tag in asset.tags %} + {{ tag.name }}{% if not loop.last %},{% endif %} + {% endfor %} +
++ Date created: {{ asset.created.strftime('%d %B %Y') }} +
++ + + Edit asset + +
+{{ asset.name }}
+ {% else %} +{{ asset.file_path.split('.')[0] }}
+ {% endif %} +File type: .{{ asset.file_path.split('.', 1)[1] }}
+Asset type: {{ asset.asset_type }}
++ Tags: + {% for tag in asset.tags %} + {{ tag.name }}{% if not loop.last %},{% endif %} + {% endfor %} +
++ Date created: {{ asset.created.strftime('%d %B %Y') }} +
++ + + Edit asset + +
+{{ asset.file_path }}
-- - Tags: {% for tag in asset.tags %} - - {{tag.name}} - - {% endfor %} - -
-- Created: {{ asset.created.strftime('%d/%m/%Y, %H:%M') }} -
-- Copy: - - {% if asset.data.image %} - - {% endif %} -
-- - - Edit - - {% if asset.deprecated %} - - Deprecated - - {% endif %} -
-{{ asset.file_path}}
+Use any relevant naming conventions for your asset.
- +Link to the asset on Google Drive, if applicable.
- +File path:{{ asset.file_path }}
+Name: {{ asset.name }}
+File type: .{{ asset.file_path.split('.', 1)[1] }}
+Asset type: {{ asset.asset_type }}
+Image size: {% if asset.data.width and asset.data.height %}{{asset.data.width}} x {{asset.data.height}}{% else %}Unknown{% endif %}
++ Products: + {% for product in asset.products %} + {{ product.name }}{% if not loop.last %},{% endif %} + {% endfor %} +
++ Tags: + {% for tag in asset.tags %} + {{ tag.name }}{% if not loop.last %},{% endif %} + {% endfor %} +
+Language: {{ asset.language }}
+Salesforce campaign ID: {{ asset.salesforce_campaign_id }}
+Google drive link: {{ asset.google_drive_link }}
+Author email: {{ asset.author_email }}
+Deprecated: {{ asset.deprecated }}
+Created: {{ asset.created.strftime('%d %B %Y') }}
+Updated: {{ asset.updated.strftime('%d %B %Y') }}
++ + + Edit asset + +
+- {{message}} -
-