-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fixed user badge "title" pop-over by eliminating leading & trailing whitespace from attribute value * fixed listing of users missing first/last name -- fall back to username * fixed display of users missing first/last name -- everywhere else across site (fall back to username) * display users' contact info to logged-in sessions (only) * email addresses are listed -- along with user names -- most-anywhere they fit * email addresses are mailto: links in administrative pages * any add'l contact info (e.g. phone) listed on user profile resolves #57
- Loading branch information
Showing
21 changed files
with
123 additions
and
52 deletions.
There are no files selected for viewing
This file contains 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 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 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
3 changes: 2 additions & 1 deletion
3
src/marketplace/templates/marketplace/components/user_badge.html
This file contains 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
17 changes: 11 additions & 6 deletions
17
src/marketplace/templates/marketplace/components/user_display.html
This file contains 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 |
---|---|---|
@@ -1,11 +1,16 @@ | ||
{% if not hide_anchor %}<a href="{% url 'marketplace:user_profile' user.id %}">{% endif %} | ||
{{ user.first_name }} | ||
{{ user.last_name }} | ||
{% if not hide_username %} | ||
|
||
{% if user.full_name %} | ||
{{ user.full_name }} | ||
{% if include_username|default_if_none:True %} | ||
({{ user.username }}) | ||
{% endif %} | ||
{% else %} | ||
{{ user.username }} | ||
{% endif %} | ||
|
||
{% for badge in user.userbadge_set.all %} | ||
{% include 'marketplace/components/user_badge.html' with badge=badge compact_display=True %} | ||
{% endfor %} | ||
|
||
{% for badge in user.userbadge_set.all %} | ||
{% include 'marketplace/components/user_badge.html' with badge=badge compact_display=True %} | ||
{% endfor %} | ||
{% if not hide_anchor %}</a>{% endif %} |
This file contains 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 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 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 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 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 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 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 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
Oops, something went wrong.