mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-02 07:47:32 +00:00
rm user intro at admin-user-info/profile page
This commit is contained in:
parent
4179a13c4c
commit
738bd52f7a
@ -58,12 +58,6 @@
|
||||
<br/>
|
||||
{% endif %}
|
||||
|
||||
<label>{% trans "About me:" %}</label><textarea name="intro" class="textarea">{{ form.data.intro }}</textarea>
|
||||
{% for error in form.intro.errors %}
|
||||
<span class="error">{{ error|escape }}</span>
|
||||
{% endfor %}
|
||||
<br/>
|
||||
|
||||
{% if form.department and form.telephone %}
|
||||
<label>{% trans "Department:" %}</label><input type="text" name="department" value="{{ form.data.department }}" class="input" />
|
||||
{% for error in form.department.errors %}
|
||||
|
@ -9,9 +9,6 @@
|
||||
{% avatar "" 290 %}
|
||||
{% endif %}
|
||||
<p title="{{ nickname }}" class="nickname ellipsis">{{ nickname }}</p>
|
||||
{% if intro %}
|
||||
<p class="intro">{{ intro }}</p>
|
||||
{% endif %}
|
||||
{% if d_profile %}
|
||||
{% if d_profile.department %}
|
||||
<p title="{{ d_profile.department }}" class="info ellipsis">
|
||||
|
@ -50,7 +50,6 @@ def edit_profile(request):
|
||||
init_dict = {}
|
||||
if profile:
|
||||
init_dict['nickname'] = profile.nickname
|
||||
init_dict['intro'] = profile.intro
|
||||
init_dict['login_id'] = profile.login_id
|
||||
init_dict['contact_email'] = profile.contact_email
|
||||
if d_profile:
|
||||
@ -100,18 +99,14 @@ def user_profile(request, username):
|
||||
nickname = '' if user is None else email2nickname(user.username)
|
||||
|
||||
if user is not None:
|
||||
profile = Profile.objects.get_profile_by_user(user.username)
|
||||
intro = profile.intro if profile else ''
|
||||
d_profile = DetailedProfile.objects.get_detailed_profile_by_user(
|
||||
user.username)
|
||||
else:
|
||||
intro = _(u'Has not accepted invitation yet')
|
||||
d_profile = None
|
||||
|
||||
return render_to_response('profile/user_profile.html', {
|
||||
'user': user,
|
||||
'nickname': nickname,
|
||||
'intro': intro,
|
||||
'd_profile': d_profile,
|
||||
}, context_instance=RequestContext(request))
|
||||
|
||||
|
@ -28,9 +28,6 @@
|
||||
{% if profile %}
|
||||
<dt>{% trans "Name" context "true name" %}</dt>
|
||||
<dd>{{ profile.nickname }}</dd>
|
||||
|
||||
<dt>{% trans "Self-introduction" %}</dt>
|
||||
<dd>{{ profile.intro }}</dd>
|
||||
{% endif %}
|
||||
|
||||
{% if d_profile %}
|
||||
|
Loading…
Reference in New Issue
Block a user