Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,30 @@ <h4>{{ _("Request access") }}</h4>
</div>
</div>

<div class="ui container" style="
padding-right: 600px !important;
padding-left: 100px !important;
">
<div class="ui segment">
<h3 class="ui header">Activity Log</h3>
<div class="ui small feed">
{% for event in logs %}
<div class="event" style="padding: 0em; border: 1px solid #d4d4d5">
<div class="label">
<i class="small circle icon" style="font-size: .75em !important; vertical-align: bottom;"></i>
</div>
<div class="content">
<div class="summary">
<a class="user">User {{ event["_source"]["user"]["id"] }}</a> {{ event["_source"]["message"] }}
<div class="date">{{ event["_source"]["@timestamp"] }}</div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>

<div class="ui container">
<div class="ui relaxed grid">
<div class="two column row">
Expand Down
2 changes: 2 additions & 0 deletions invenio_app_rdm/records_ui/views/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ def record_detail(
else None
)
theme = resolved_community.get("theme", {}) if resolved_community else None
logs = current_app.datastream_logger.search("audit", record.id)

return render_community_theme_template(
current_app.config.get("APP_RDM_RECORD_LANDING_PAGE_TEMPLATE"),
Expand Down Expand Up @@ -258,6 +259,7 @@ def record_detail(
record_owner_id=(
record_owner.get("id")
), # record created with system_identity have not owners e.g demo
logs=logs,
)


Expand Down
Loading