Skip to content

Commit

Permalink
feat(files): display fileNote in FilesViewer
Browse files Browse the repository at this point in the history
  • Loading branch information
mirekys committed Dec 18, 2024
1 parent 26cc4f2 commit a740ced
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@
<tbody>
{% for file in array(files.entries) %}
<tr>
<td>
<a href="{{ file.links.content }}">{{ file.key }}</a>
<td class="file-info">
<p>{{ file.key }}</p>
{%- if file.metadata.fileNote -%}
<small>{{ file.metadata.fileNote }}</small>
{%- endif -%}
</td>
<td>{{ (file.size or 0) | filesizeformat }}</td>
<td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,9 @@
.invenio-page-body {
padding-bottom: @defaultPadding;
}

.file-info {
small {
color: rgba(0, 0, 0, 0.4);
}
}
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = oarepo-ui
version = 5.2.31
version = 5.2.32
description = UI module for invenio 3.5+
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down

0 comments on commit a740ced

Please sign in to comment.