-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Better version listing for project dashboard #3673
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
Changes from 7 commits
6ba8cab
3d2747c
15f3edd
7d0e431
4877aa3
bd67955
d3d00d0
28b9af2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,9 +18,9 @@ | |
<div class="module-header"> | ||
<h3>{% trans "Versions" %}</h3> | ||
</div> | ||
|
||
<div class="module-list"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this div is still needed, can you post a screenshot of how it looks? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, rtd is moving to match the previous style on all lists (see #3445 (comment)) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But the issue #3554 here says it should match the style on project version listing page. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure, lets wait to agjohnson's reply, but on other issue this was already discussed (see #3572, relevant comments: #3572 (comment), #3572 (comment)) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. I saw that. I still went ahead with this issue as there were other improvements as well. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The styling that was removed here was indeed the correct styling, it should be added back. The styling wasn't the issue, but the table content. We're also missing an opportunity to have a single template for 3 different pages, so that is the larger focus here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh! In that case, the previous design should remain same. Got it! I'll change the styling back again and keep the table content modified as it is in PR. |
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ditto ! |
||
<div class="module-list-wrapper"> | ||
<ul> | ||
{% for version in versions|sort_version_aware %} | ||
|
@@ -29,9 +29,13 @@ <h3>{% trans "Versions" %}</h3> | |
{# Link to the docs #} | ||
<a class="module-item-title" href="{{ version.get_absolute_url }}"> | ||
{{ version.slug }} | ||
{% if request.user in project.users.all %} | ||
{% if request.user|is_admin:project %} | ||
<span class="right-menu quiet">{{ version.get_privacy_level_display }}</span> | ||
{% endif %} | ||
|
||
{% if not version.slug in version.identifier %} | ||
<span class="right-menu quiet version-branch-privacy">{{ version.identifier_friendly|truncatechars:24 }}</span> | ||
{% endif %} | ||
</a> | ||
{% else %} | ||
<a class="module-item-title" href="{{ version.project.get_builds_url }}"> | ||
|
@@ -53,6 +57,7 @@ <h3>{% trans "Versions" %}</h3> | |
</ul> | ||
</div> | ||
</div> | ||
|
||
|
||
{% block build_versions %} | ||
{% if versions and request.user|is_admin:project %} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove Extra spaces !
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, it has been like that in the original code. https://github.com/rtfd/readthedocs.org/blob/master/readthedocs/templates/core/project_details.html. I did not try to change that style.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The line is fine. I am referring to the extra whitespace you have added. It was not in the original code.