Changeset 392:7d15d3d7d684


Ignore:
Timestamp:
Feb 17, 2012 2:52:33 AM (15 months ago)
Author:
Igor Yanchenko <yanchenko.igor@…>
Branch:
default
Children:
393:1112ab5f4d29, 394:a1ed9e755af8
Message:

fixes https://djangobb.org/ticket/196

Location:
djangobb_forum
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • djangobb_forum/forms.py

    r391 r392  
    231231    def save(self, commit=True): 
    232232        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) 
    234234        if commit: 
    235235            profile.save() 
  • djangobb_forum/models.py

    r390 r392  
    290290    location = models.CharField(_('Location'), max_length=30, blank=True) 
    291291    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) 
    292293    time_zone = models.FloatField(_('Time zone'), choices=TZ_CHOICES, default=float(forum_settings.DEFAULT_TIME_ZONE)) 
    293294    language = models.CharField(_('Language'), max_length=5, default='', choices=settings.LANGUAGES) 
  • djangobb_forum/templates/djangobb_forum/profile/profile_personality.html

    r372 r392  
    4444                                                                <br></label> 
    4545                                                        </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> 
    4848                                                        {% else %} 
    4949                                                                <p>{% trans "No signature currently stored in profile." %}</p> 
  • djangobb_forum/templates/djangobb_forum/topic.html

    r383 r392  
    8787                                        {{ post.body_html|safe }} 
    8888                                        {% 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 %} 
    9090                                                <div class="postsignature"> 
    9191                                                        <br /><br/ > 
    92                                                         {{ post.user.forum_profile.signature|safe }} 
     92                                                        {{ post.user.forum_profile.signature_html|safe }} 
    9393                                                </div> 
    9494                                                {% endif %} 
  • djangobb_forum/templates/djangobb_forum/user.html

    r372 r392  
    102102                                                        {% endif %} 
    103103                                                        <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> 
    106106                                                        {% else %} 
    107107                                                                <dd>{% trans "(Unknown)" %}</dd> 
Note: See TracChangeset for help on using the changeset viewer.