Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recent uploads: updated label colors and styling #720

Merged
merged 2 commits into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions templates/semantic-ui/zenodo_rdm/macros/record_item.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@

{# Top labels #}
<div class="extra labels-actions">
<div class="ui small horizontal primary label">
{{ record.ui.publication_date_l10n_long }} ({{ record.ui.version }})
<div class="ui small horizontal primary theme-primary label">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was it tested for both cases, styled and unstyled community ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, they both retain their respective theme

<p>{{ record.ui.publication_date_l10n_long }} ({{ record.ui.version }})</p>
</div>
<div class="ui small horizontal neutral label">
{{ record.ui.resource_type.title_l10n }}
Expand All @@ -49,7 +49,7 @@
</div>

{# Title #}
<div class="header">
<div class="header theme-primary-text">
<a href="/records/{{ record.id }}">{{ record.metadata.title }}</a>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,20 @@ <h1 class="ui text-muted small header">Builtin compliance with EU open science
</div>

{% if records %}
<div class="ui container">
<h2>{{ _("Recent uploads") }}</h2>
<div class="ui divider"></div>
<div class="ui stackable theme-font grid container ">
<div class="column rel-mb-4">
<div class="row item">
<h1 class="ui large header">{{ title }}</h1>
</div>
<div class="ui divider"></div>

<div class="ui fluid stackable three column grid">
{% for record in records %}
<ul class="ui column items m-0">
{{ record_item(record=record) }}
</ul>
{% endfor %}
<div class="ui fluid stackable three column grid">
{% for record in records %}
<ul class="ui column items m-0">
{{ record_item(record=record) }}
</ul>
{% endfor %}
</div>
</div>
</div>
{% endif %}
Expand Down
Loading