-
Notifications
You must be signed in to change notification settings - Fork 1k
Change public info #2833
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
Change public info #2833
Conversation
afaa91e
to
8551a8d
Compare
thanks for this PR @di :) Updated UI (tested on desktop and mobile): It would be great if we could tailor the gravatar message based on whether the user has an account or not. I've added some commented out HTML: <!-- if gravatar account -->
<a href="{{ gravatar_profile(user.email) }}" target="_blank" class="button">
Change image on gravatar.com
<i class="fa fa-external-link" aria-hidden="true"></i>
<span class="sr-only">Opens in new window</span>
</a>
<!-- else
<a href="https://gravatar.com/" target="_blank" class="button">
Create an avatar on gravatar.com
<i class="fa fa-external-link" aria-hidden="true"></i>
<span class="sr-only">Opens in new window</span>
</a>
endif --> Is this technically possible? Another thing I noticed - we don't have an issue for editing a user's username? Is there a reason we don't offer this? If so, I think we should still display the username here somewhere. wdyt? |
f871885
to
719deb5
Compare
hi @di, I have restyled the public profile page: DesktopTabletMobileI added an edit button for when the profile is the same as the logged in user: <!-- if this user is logged in -->
<a href="{{ request.route_path('manage.profile') }}" class="button button--primary author-profile__edit-button">Edit Profile</a>
<!-- endif --> Could we please do the same with this as we did with the 'edit project' button? |
I don't think this is possible -- all we can do is generate the URL to the image.
This isn't currently a feature of legacy. I don't really see any reason why it wouldn't be possible, but since it's a new feature it should probably wait until post-launch.
Yup, we can do this. I have some other changes I need to make here as well before this is ready to merge. |
Ok, so let me remove my pseudo code in the template :)
Yep, I 100% agree. However, I think we can display the username on this page in the short term - it seems odd that the user can't at least see it here.
|
@di, I've pushed up a couple of changes - over to you :) |
This will allow us to reuse this endpoint to handle POSTs from multiple different forms.
Also tweak the wording a bit
9765849
to
f9b9bce
Compare
@nlhkabu I think I'm good here. I made a small tweak to display the user's primary email address used for the Gravatar image: Also, I opted to hide the "full name" if it's empty on the public profile, rather than have it fall back on the username. I think it's confusing to the user that this would sometimes be their full name, and sometimes be their username. Without the header, there's not enough padding between the image and the metadata, so you might need to add a small tweak here: Other than that, I think this is good to go. |
Fixes #2829.
@nlhkabu This will need some styling, I was hoping that the gravatar image could be placed to the right of the form.
Also, I think we need to adjust the size of the user's real name on the profile page. A
h2
looks nice to me: