-
Notifications
You must be signed in to change notification settings - Fork 1k
Add sole owner badge on lists of projects #4970
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
Merged
Merged
Changes from 15 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
17e8daf
Add sole owner badge on lists of projects
6e1873a
Reformat code
e4689a0
Fix badge styling
96555ac
Fix variable name overwriting
af637d5
Merge branch 'master' of https://github.com/pypa/warehouse into 3127-…
78aa798
move sole_user_projects function outside scope of ManageAccountViews
83239bf
update test active projects to expect name, not object
fbfbb98
move decorator above ManageAccountViews
070fc60
modify account settings html to directly read project
213b92d
Fixes #3127 modify account settings.html to directly read project
d7db4e0
Merge branch '3127-sole-owner-badge' of https://github.com/rupali-sab…
73d8236
run make reformat
d95a322
return project object from user_projects function
b687da8
revert account.html to specify project.name
9393b42
run make reformat on repository
4826d3d
reformat project_sole_owned query
ff7450d
wrap sole owner badge to link to collaboration management page
1601c89
Merge branch 'master' into 3127-sole-owner-badge
di File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,6 +75,10 @@ | |
font-style: italic; | ||
} | ||
|
||
&__sole-owner-badge { | ||
margin-left: 4px; | ||
} | ||
|
||
&__buttons { | ||
width: 165px; | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,11 @@ <h1 class="page-title">Your projects ({{ projects|length }})</h1> | |
<div class="package-snippet"> | ||
<div class="split-layout split-layout--table split-layout--wrap-on-tablet"> | ||
<div> | ||
<h3 class="package-snippet__title">{{ project.name }}</h3> | ||
<h3 class="package-snippet__title">{{ project.name }} | ||
{% if project.name in projects_sole_owned %} | ||
<span class="badge package-snippet__sole-owner-badge">Sole owner</span> | ||
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. Can you wrap this in a link to the collaboration management page? <a href="{{ request.route_path('manage.project.roles', project_name=project.normalized_name) }}">
<span class="badge package-snippet__sole-owner-badge">Sole owner</span>
</a> 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. Updated |
||
{% endif %} | ||
</h3> | ||
{% if release %} | ||
<p class="package-snippet__meta"> | ||
<em>Last released on {{ release.created|format_date() }}</em> | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Small nit, can you reformat this line to be:
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.
Updated