Commits

Diego Búrigo Zacarão committed a5b240e Merge

Merged new collection nuking changes

Comments (0)

Files changed (4)

transifex/reviews/forms.py

+from django import forms
+from django.conf import settings
+from django.utils.translation import ugettext_lazy as _
+from threadedcomments.forms import FreeThreadedCommentForm
+
+class POFileSubmissionForm(forms.Form):
+    description = forms.CharField(
+        widget=forms.Textarea(attrs={'rows':2, 'cols':50}),
+        help_text=_("Write a short blurb for your review request."))
+    review_file = forms.FileField(label='File for review',
+        help_text=_("Select a translation file for review."))
+
+
+class AuthenticatedCommentForm(FreeThreadedCommentForm):
+    def __init__(self, user, *args, **kwargs):
+        super(AuthenticatedCommentForm, self).__init__(*args, **kwargs)
+        self.fields['comment'].widget.attrs.update({'rows': 4, 'cols': 70})
+        self.fields['markup'].widget = forms.HiddenInput()
+        self.fields['email'].widget = forms.HiddenInput(
+            attrs={'autocomplete': 'off',
+                   'value' : user.email}
+            )
+        self.fields['name'].widget = forms.HiddenInput()
+        self.fields['name'].initial = user
+        self.fields['website'].widget = forms.HiddenInput()

transifex/templates/index.html

 {% extends "base.html" %}
 {% load i18n %}
+{% load txcommontags %}
 
 {% block body_class %}index{% endblock %}
 
     {% blocktrans %}You could also browse through <a href="{{ project_list }}">all projects</a>.{% endblocktrans %}
   </div>
 <div id="top_lists">{% include "projects/project_latests.html" %}
+
+{% get_top_translators 5 %}
 {% include "projects/project_top_translators.html" %}
+
 </div> 
 </div>
 <div id="clear"></div>

transifex/templates/projects/project_detail.html

 
 {% endif %}
 
+{% get_top_translators 5 project %}
+{% include "projects/project_top_translators.html" %}
+
 {% endblock %}
 
 {% block content_footer %}

transifex/templates/projects/project_top_translators.html

 {% load i18n %}
-{% load txcommontags %}
-{% get_top_translators 5 %}
 {% if top_translators %}
 <div id="top_translators">
 <h3>{% trans "Top Translators"%}</h3>