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

1439 distribute profile page tables into 2 categories #1440

Merged
merged 19 commits into from
Dec 5, 2023
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
adjusted table display template #1439
  • Loading branch information
user committed Oct 26, 2023
commit 0c6d9cb5a40bc6b5f201ee6b80182b7c9d300186
32 changes: 19 additions & 13 deletions login/templates/login/user_tables.html
Original file line number Diff line number Diff line change
@@ -2,24 +2,30 @@
{% load django_bootstrap5 %}
{% load static %}
{% block main-content-body %}
{% if profile_user == request.user %}
{% include "login/user_nav.html" %}
<div>
{% if profile_user == request.user %}
{% include "login/user_nav.html" %}
<div>
<h2>Published</h2>
<ul>
{% for table in tables %}
<!-- fix the url -->
<li>
<a href="/dataedit/view/{{ table.schema }}/{{ table.name }}">{{ table.name }} - {{ table.schema }}{% if table.created %}{{ table.created }}{% endif %}</a>
</li>
{% empty %}
No tables found for this user.</li>
{% endfor %}
{% for table in reviewed_tables %}
<li><a href="/dataedit/view/{{ table.schema }}/{{ table.name }}">{{ table.name }} - {{ table.schema }}</a></li>
{% endfor %}
</ul>
</div>
{% endif %}

<h2>Draft</h2>
<ul>
{% for table in not_reviewed_tables %}
<li><a href="/dataedit/view/{{ table.schema }}/{{ table.name }}">{{ table.name }} - {{ table.schema }}</a></li>
{% endfor %}
</ul>


</div>
{% endif %}
{% endblock %}



{% block main-right-sidebar-content %}
{% if profile_user == request.user %}
<div class="profile-sidebar">