Skip to content

Commit

Permalink
Merge pull request #263 from oarepo/mirekys/fe-318-opravit-v-nahledu-…
Browse files Browse the repository at this point in the history
…zaznamu-nejsou-videt-metadata-souboru

feat(files): display fileNote in FilesViewer
  • Loading branch information
mirekys authored Dec 18, 2024
2 parents 26cc4f2 + 6ac7860 commit 7f78e0d
Show file tree
Hide file tree
Showing 4 changed files with 13 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);
}
}
1 change: 1 addition & 0 deletions run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ python3 -m venv $VENV
pip install -U setuptools pip wheel

echo "Installing oarepo version $OAREPO_VERSION"
pip install pytest-invenio==2.*
pip install "oarepo==${OAREPO_VERSION}.*"
pip install -e ".[tests]"

Expand Down
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 7f78e0d

Please sign in to comment.