Compare commits

..

No commits in common. "07ea2f164c648cdae27fd6ab5a48f31be5622cd6" and "2022a924c4af7aea80eb197cd20ac8f8b2cc7b48" have entirely different histories.

2 changed files with 3 additions and 19 deletions

View File

@ -40,12 +40,6 @@ class Explorer(models.Model):
on_delete=models.CASCADE,
related_name='explorer'
)
bio = models.TextField(
blank=True,
null=True,
verbose_name=_('Biography / Description'),
help_text=_('Describe yourself, your preferences, etc. in a few sentences.')
)
profile_image = ThumbnailerImageField(
blank=True,
null=True,
@ -55,6 +49,7 @@ class Explorer(models.Model):
verbose_name=_('Profile image'),
help_text=_('Optional profile pic for display in explorer profile')
)
favorite_places = models.ManyToManyField(
Place,
related_name='favorite_places',

View File

@ -7,16 +7,11 @@
{% block maincontent %}
<div class="LP-UserProfile">
<div class="LP-UserProfile__Bio">
<h2 class="LP-Headline">Bio</h2>
<p class="LP-Paragraph">{{explorer.bio}}</p>
</div>
<div class="LP-UserProfile__Info">
<div class="LP-UserInfo">
<div class="LP-UserInfo__UserName">
<h1 class="LP-Headline">{{explorer.user.username}}</h1>
</div>
<div class="LP-UserInfo__Meta">
<table>
<tr>
@ -26,26 +21,20 @@
</figure>
{% endif %}
<tr>
{% if explorer.user.first_name %}
<td class="LP-UserInfo__Key">
<span class="LP-Paragraph">{% trans 'Name' %}</span>
</td>
<td class="LP-UserInfo__Value">
<span class="LP-Paragraph">{{explorer.user.first_name}} {{explorer.user.last_name}}</span>
</td>
{% endif %}
</tr>
<tr>
{% if explorer.user.email %}
<td class="LP-UserInfo__Key">
<td class="LP-UserInfo__Key">
<span class="LP-Paragraph">{% trans 'E-Mail' %}</span>
</td>
<td class="LP-UserInfo__Value">
<span class="LP-Paragraph">
<a href="{{explorer.user.email}}" class="LP-Link">{{explorer.user.email}}</a>
</span>
<span class="LP-Paragraph">{{explorer.user.email}}</span>
</td>
{% endif %}
</tr>
<tr>
<td class="LP-UserInfo__Key">