Skip to content

Commit

Permalink
Minor changes to the "Download data" section of the console (#2278)
Browse files Browse the repository at this point in the history
This is a small pull request in response to:
#2277

The changes are:

- Rename "Download data" to "Export data" in the menu (for no real
  good reason)
- Add credentialing date to the user table
- Change a header from "Projects" to "Published Projects" for clarity
  • Loading branch information
Benjamin Moody committed Aug 21, 2024
2 parents e782806 + 52f3b0b commit 11d9429
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion physionet-django/console/navbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def get_menu_items(self, request):
NavLink(_('Editorial'), 'editorial_stats'),
NavLink(_('Credentialing'), 'credentialing_stats'),
NavLink(_('Submissions'), 'submission_stats'),
NavLink(_('Download data'), 'downloads'),
NavLink(_('Export data'), 'downloads'),
]),

NavSubmenu(_('Pages'), 'pages', 'window-maximize', [
Expand Down
6 changes: 3 additions & 3 deletions physionet-django/console/templates/console/downloads.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

{% load static %}

{% block title %}Download data{% endblock %}
{% block title %}Export data{% endblock %}

{% block content %}

<div class="card mb-3">
<div class="card-header">
Download data
Export data
</div>
<div class="card-body">
<div class="table-responsive">
Expand All @@ -22,7 +22,7 @@ <h6>Users</h6>
</div>

<div class="mb-4">
<h6>Projects</h6>
<h6>Published projects</h6>
<p>Download a complete list of published projects, including project names, descriptions, and timelines.</p>
<a href="{% url 'download_projects' %}" class="btn btn-primary">
Download projects
Expand Down
2 changes: 2 additions & 0 deletions physionet-django/console/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2399,6 +2399,7 @@ def generate_user_csv_data(users):
"website",
"orcid_id",
"credentialing_status",
"credentialing_decision_date",
"credentialing_organization_name",
"credentialing_job_title",
"credentialing_city",
Expand Down Expand Up @@ -2433,6 +2434,7 @@ def generate_user_csv_data(users):
user.profile.website,
user.get_orcid_id(),
user.get_credentialing_status(),
credentials.decision_datetime if credentials else None,
credentials.organization_name if credentials else None,
credentials.job_title if credentials else None,
credentials.city if credentials else None,
Expand Down

0 comments on commit 11d9429

Please sign in to comment.