Changeset 392:7d15d3d7d684
- Timestamp:
- Feb 17, 2012 2:52:33 AM (15 months ago)
- Branch:
- default
- Children:
- 393:1112ab5f4d29, 394:a1ed9e755af8
- Location:
- djangobb_forum
- Files:
-
- 1 added
- 5 edited
-
forms.py (modified) (1 diff)
-
migrations/0003_auto__add_field_profile_signature_html.py (added)
-
models.py (modified) (1 diff)
-
templates/djangobb_forum/profile/profile_personality.html (modified) (1 diff)
-
templates/djangobb_forum/topic.html (modified) (1 diff)
-
templates/djangobb_forum/user.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
djangobb_forum/forms.py
r391 r392 231 231 def save(self, commit=True): 232 232 profile = super(PersonalityProfileForm, self).save(commit=False) 233 profile.signature = convert_text_to_html(profile.signature, self.markup)233 profile.signature_html = convert_text_to_html(profile.signature, self.markup) 234 234 if commit: 235 235 profile.save() -
djangobb_forum/models.py
r390 r392 290 290 location = models.CharField(_('Location'), max_length=30, blank=True) 291 291 signature = models.TextField(_('Signature'), blank=True, default='', max_length=forum_settings.SIGNATURE_MAX_LENGTH) 292 signature_html = models.TextField(_('Signature'), blank=True, default='', max_length=forum_settings.SIGNATURE_MAX_LENGTH) 292 293 time_zone = models.FloatField(_('Time zone'), choices=TZ_CHOICES, default=float(forum_settings.DEFAULT_TIME_ZONE)) 293 294 language = models.CharField(_('Language'), max_length=5, default='', choices=settings.LANGUAGES) -
djangobb_forum/templates/djangobb_forum/profile/profile_personality.html
r372 r392 44 44 <br></label> 45 45 </div> 46 {% if profile.forum_profile.signature %}47 <p>{{ profile.forum_profile.signature |safe }}</p>46 {% if profile.forum_profile.signature_html %} 47 <p>{{ profile.forum_profile.signature_html|safe }}</p> 48 48 {% else %} 49 49 <p>{% trans "No signature currently stored in profile." %}</p> -
djangobb_forum/templates/djangobb_forum/topic.html
r383 r392 87 87 {{ post.body_html|safe }} 88 88 {% if not user.is_authenticated or user.forum_profile.show_signatures %} 89 {% if post.user.forum_profile.signature %}89 {% if post.user.forum_profile.signature_html %} 90 90 <div class="postsignature"> 91 91 <br /><br/ > 92 {{ post.user.forum_profile.signature |safe }}92 {{ post.user.forum_profile.signature_html|safe }} 93 93 </div> 94 94 {% endif %} -
djangobb_forum/templates/djangobb_forum/user.html
r372 r392 102 102 {% endif %} 103 103 <dt>{% trans "Signature:" %} </dt> 104 {% if profile.forum_profile.signature %}105 <dd>{{ profile.forum_profile.signature |safe }}</dd>104 {% if profile.forum_profile.signature_html %} 105 <dd>{{ profile.forum_profile.signature_html|safe }}</dd> 106 106 {% else %} 107 107 <dd>{% trans "(Unknown)" %}</dd>
Note: See TracChangeset
for help on using the changeset viewer.
