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

Profiles #805

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
15 changes: 9 additions & 6 deletions mezzanine/accounts/templates/accounts/account_profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,17 @@
{% endblock %}

{% block main %}
<div style="float:right;">
<img style="margin:0 0 20px 10px;" src="{% gravatar_url profile_user.email 128 %}">
<div class="profile-container">
<div class="profile-image"><img src="{% gravatar_url profile_user.email 128 %}"></div>
<div class="profile-content">
{% if profile_user == request.user %}
<br><a class="btn btn-large btn-primary" style="" href="{% url "profile_update" %}">{% trans "Update profile" %}</a>
<a class="btn btn-small btn-primary float_right" style="" href="{% url "profile_update" %}">{% trans "Update profile" %}</a>
{% endif %}
</div>
<h2>{{ profile_user.get_full_name }}</h2>
<h2 class="profile-title">{{ profile_user.get_full_name }}</h2>
{% for field, value in profile_user|profile_fields %}
<p>{{ field }}: {{ value|linebreaksbr }}</p>
<h3>{{ field }}</h3>
<p>{{ value|linebreaksbr }}</p>
{% endfor %}
</div>
</div>
{% endblock %}
7 changes: 7 additions & 0 deletions mezzanine/core/static/css/mezzanine.css
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,10 @@ a.btn-large, input.btn-large {width:auto; min-width:100px; margin-right:10px;}
.image-overlay-next {right:30px;}
.image-overlay-full {border-radius:5px; max-width:none !important; box-shadow:0 0 30px #222;}

/* Profiles */
.profile-container {overflow: auto;}
.profile-image {float: left;}
.profile-image img {display: block;}
.profile-content {margin-left: 200px;}
.profile-title {font-weight: bold;}
.float_left {float: left; position: relative;}