<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,74 +1,81 @@
-&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
-&lt;?python
-from pootle_app.templates import pootlepage
-from pootle_misc.baseurl import l
-?&gt;
-&lt;include py:layout=&quot;'../page_layout.kid'&quot; xmlns:py=&quot;http://purl.org/kid/ns#&quot;&gt;
+{% extends &quot;base.html&quot; %}
+{% load i18n baseurl %}
+{% get_current_language as LANGUAGE_CODE %}
+{% get_current_language_bidi as LANGUAGE_BIDI %}
+{% block body.id %}frontpage{% endblock body.id %}
 
 
-  &lt;div id=&quot;precontent&quot; py:def=&quot;precontent_block()&quot;&gt;
-      &lt;div class=&quot;intro&quot; py:content=&quot;XML(description)&quot;&gt;this is a demo installation of pootle&lt;/div&gt;
+{% block precontent %}
+  &lt;div id=&quot;precontent&quot;&gt;
+      &lt;div class=&quot;intro&quot;&gt;{{ description|safe }}&lt;/div&gt;
   &lt;/div&gt;&lt;!--precontent--&gt;
+{% endblock precontent %}
 
-
-  &lt;div id=&quot;content&quot; py:def=&quot;content_block()&quot;&gt;
+{% block content %}
+  &lt;div id=&quot;content&quot;&gt;
     &lt;div class=&quot;module first&quot;&gt;
       &lt;div class=&quot;hd&quot;&gt;
-	&lt;h2 py:content=&quot;languagelink&quot;&gt;Languages&lt;/h2&gt;
+	&lt;h2&gt;{{languagelink}}&lt;/h2&gt;
       &lt;/div&gt;
       &lt;div class=&quot;bd&quot;&gt;
 	&lt;table class=&quot;sortable&quot;&gt;
-	  &lt;tr&gt;&lt;th&gt;Language&lt;/th&gt;&lt;th&gt;Overall Completion&lt;/th&gt;&lt;th&gt;Last Activity&lt;/th&gt;&lt;/tr&gt;
-	  &lt;tr py:for=&quot;zebra, lang in enumerate(languages)&quot; class=&quot;${zebra%2 and 'odd' or 'even'}&quot;&gt;
-	    &lt;td class=&quot;language&quot;&gt;&lt;a href=&quot;${l('/'+lang.code+'/')}&quot; py:content=&quot;lang.name&quot;&gt;Language&lt;/a&gt;&lt;/td&gt;
+	  &lt;tr&gt;&lt;th&gt;{% trans 'Language' %}&lt;/th&gt;
+	    &lt;th&gt;{% trans 'Overall Completion' %}&lt;/th&gt;
+	    &lt;th&gt;{% trans 'Last Activity' %}&lt;/th&gt;&lt;/tr&gt;
+	  {% for item in languages %}
+	  &lt;tr class=&quot;{% cycle 'even' 'odd' %}&quot;&gt;
+	    &lt;td class=&quot;language&quot;&gt;&lt;a href=&quot;{%filter l%}/{{item.code}}/{%endfilter%}&quot;&gt;{{item.name}}&lt;/a&gt;&lt;/td&gt;
 	    &lt;td&gt;
-	      &lt;span class=&quot;graph&quot; dir=&quot;$uidir&quot;&gt;
-		&lt;span class=&quot;translated&quot; style=&quot;width: ${lang.transper}px;&quot; title=&quot;${lang.trans}/${lang.total} words translated&quot; /&gt;
-		&lt;span class=&quot;fuzzy&quot; style=&quot;${cssaligndir}: ${lang.transper}px; width: ${lang.fuzzyper}px&quot; title=&quot;${lang.fuzzy}/${lang.total} words fuzzy&quot; /&gt;
-		&lt;span class=&quot;untranslated&quot; style=&quot;${cssaligndir}: ${lang.transper+lang.fuzzyper}px; width: ${lang.untransper}px&quot; title=&quot;${lang.untrans}/${lang.total} words untranslated&quot; /&gt;
+	      &lt;span class=&quot;graph&quot; dir=&quot;{% if LANGUAGE_BIDI %}rtl{% else %}ltr{% endif %}&quot;&gt;
+		&lt;span class=&quot;translated&quot; style=&quot;width: {{item.transper}}px&quot; title=&quot;{{item.trans}}/{{item.total}} words translated&quot;&gt; &lt;/span&gt;
+		{% if item.fuzzy %}&lt;span class=&quot;fuzzy&quot; style=&quot;{%if LANGUAGE_BIDI%}right{%else%}left{%endif%}: {{item.transper}}px; width: {{item.fuzzyper}}px&quot; title=&quot;{{item.fuzzy}}/{{item.total}} words fuzzy&quot;&gt; &lt;/span&gt;{% endif %}
+		{% if item.untrans %}&lt;span class=&quot;untranslated&quot; style=&quot;{%if LANGUAGE_BIDI%}right{%else%}left{%endif%}: {{item.transper|add:item.fuzzyper}}px; width: {{item.untransper}}px&quot; title=&quot;{{item.untrans}}/{{item.total}} words untranslated&quot;&gt; &lt;/span&gt;{% endif %}
 	      &lt;/span&gt;
-	      &lt;span class=&quot;sortkey&quot;&gt;${lang.transper}%&lt;/span&gt;
+	      &lt;span class=&quot;sortkey&quot;&gt;{{item.transper}}&lt;/span&gt;
 	    &lt;/td&gt; 
-	    &lt;td&gt;${lang.lastactivity}&lt;/td&gt;
+	    &lt;td&gt;{{item.lastactivity}}&lt;/td&gt;
 	  &lt;/tr&gt;
+	  {% endfor %}
 	&lt;/table&gt;
       &lt;/div&gt;
     &lt;/div&gt;
 
     &lt;div class=&quot;module&quot;&gt;
       &lt;div class=&quot;hd&quot;&gt;
-	&lt;h2 py:content=&quot;projectlink&quot;&gt;Projects&lt;/h2&gt;
+	&lt;h2&gt;{{projectlink}}&lt;/h2&gt;
       &lt;/div&gt;
       &lt;div class=&quot;bd&quot;&gt;
 	&lt;table class=&quot;sortable&quot;&gt;
-	  &lt;tr&gt;&lt;th&gt;Project&lt;/th&gt;&lt;th&gt;Overall Completion&lt;/th&gt;&lt;th&gt;Last Activity&lt;/th&gt;&lt;/tr&gt;
-	  &lt;tr py:for=&quot;zebra, p in enumerate(projects)&quot; class=&quot;${zebra%2 and 'odd' or 'even'}&quot;&gt;
-	    &lt;td class=&quot;language&quot;&gt;&lt;a href=&quot;${l('/projects/'+p.code+'/')}&quot; title=&quot;${p.description}&quot;  py:content=&quot;p.name&quot;&gt;Project&lt;/a&gt;&lt;/td&gt;
+	  &lt;tr&gt;&lt;th&gt;{% trans 'Project' %}&lt;/th&gt;
+	    &lt;th&gt;{% trans 'Overall Completion' %}&lt;/th&gt;
+	    &lt;th&gt;{% trans 'Last Activity' %}&lt;/th&gt;&lt;/tr&gt;
+	  {% for item in projects %}
+	  &lt;tr class=&quot;{% cycle 'even' 'odd' %}&quot;&gt;
+	    &lt;td class=&quot;project&quot;&gt;&lt;a href=&quot;{%filter l%}/projects/{{item.code}}/{%endfilter%}&quot; title=&quot;{{item.description}}&quot;&gt;{{item.name}}&lt;/a&gt;&lt;/td&gt;
 	    &lt;td&gt;
-	      &lt;span class=&quot;graph&quot; dir=&quot;$uidir&quot;&gt;
-		&lt;span class=&quot;translated&quot; style=&quot;width: ${p.transper}px&quot; title=&quot;${p.trans}/${p.total} words translated&quot; /&gt;
-		&lt;span class=&quot;fuzzy&quot; style=&quot;${cssaligndir}: ${p.transper}px; width: ${p.fuzzyper}px&quot; title=&quot;${p.fuzzy}/${p.total} words fuzzy&quot; /&gt;
-		&lt;span class=&quot;untranslated&quot; style=&quot;${cssaligndir}: ${p.transper+p.fuzzyper}px; width: ${p.untransper}px&quot; title=&quot;${p.untrans}/${p.total} words untranslated&quot; /&gt;
+	      &lt;span class=&quot;graph&quot; dir=&quot;{% if LANGUAGE_BIDI %}rtl{% else %}ltr{% endif %}&quot;&gt;
+		&lt;span class=&quot;translated&quot; style=&quot;width: {{item.transper}}px&quot; title=&quot;{{item.trans}}/{{item.total}} words translated&quot;&gt; &lt;/span&gt;
+		{% if item.fuzzy %}&lt;span class=&quot;fuzzy&quot; style=&quot;{%if LANGUAGE_BIDI%}right{%else%}left{%endif%}: {{item.transper}}px; width: {{item.fuzzyper}}px&quot; title=&quot;{{item.fuzzy}}/{{item.total}} words fuzzy&quot;&gt; &lt;/span&gt;{% endif %}
+		{% if item.untrans %}&lt;span class=&quot;untranslated&quot; style=&quot;{%if LANGUAGE_BIDI%}right{%else%}left{%endif%}: {{item.transper|add:item.fuzzyper}}px; width: {{item.untransper}}px&quot; title=&quot;{{item.untrans}}/{{item.total}} words untranslated&quot;&gt; &lt;/span&gt;{% endif %}
 	      &lt;/span&gt;
-	      &lt;span class=&quot;sortkey&quot;&gt;${p.transper}%&lt;/span&gt;
+	      &lt;span class=&quot;sortkey&quot;&gt;{{item.transper}}&lt;/span&gt;
 	    &lt;/td&gt; 
-	    &lt;td&gt;${p.lastactivity}&lt;/td&gt;
+	    &lt;td&gt;{{item.lastactivity}}&lt;/td&gt;
 	  &lt;/tr&gt;
+	  {% endfor %}
 	&lt;/table&gt;
       &lt;/div&gt;
     &lt;/div&gt;
   &lt;/div&gt;&lt;!--content--&gt;
+{% endblock content %}
 
-
-  &lt;div id=&quot;postcontent&quot; py:def=&quot;postcontent_block()&quot;&gt;
+{% block postcontent %}
+  &lt;div id=&quot;postcontent&quot;&gt;
     &lt;div class=&quot;module first clear&quot;&gt;
       &lt;div class=&quot;bd&quot;&gt;
-	&lt;div py:replace=&quot;pootlepage.translationsummarylegend(translationlegend, mediaurl)&quot; /&gt;
+	{% include &quot;translation_summary_legend.html&quot; %}
       &lt;/div&gt;
     &lt;/div&gt;
-      
-    &lt;div py:replace=&quot;pootlepage.topcontributerstable(topstats, topstatsheading)&quot; /&gt;
+    {% include &quot;top_contributers_table.html&quot; %}
   &lt;/div&gt;&lt;!--postcontent--&gt;
-
-
-&lt;/include&gt;
+{% endblock postcontent %}</diff>
      <filename>local_apps/pootle_app/templates/index/index.html</filename>
    </modified>
    <modified>
      <diff>@@ -22,15 +22,16 @@ import locale
 
 from django.utils.translation import ugettext as _
 from django.utils.translation import ungettext
+from django.shortcuts import render_to_response
+from django.template import RequestContext
 
 from pootle_app.models.profile import get_profile
 from pootle_app.models import Project, Directory, Suggestion, Submission, TranslationProject, Language
 from pootle_app.models.permissions import get_matching_permissions
-from pootle_app.views.util import render_jtoolkit, render_to_kid, KidRequestContext
 from pootle_app.views import indexpage
 from pootle_app.views import pagelayout
 from pootle_app.views.indexpage import shortdescription, gentopstats
-from pootle.i18n.jtoolkit_i18n import nlocalize, tr_lang
+from pootle.i18n.jtoolkit_i18n import tr_lang
 from pootle_app.models import metadata
 
 
@@ -137,6 +138,6 @@ def view(request, *path_vars):
                     ), 'untranslated': _('Untranslated')},
         }
 
-    return render_to_kid('index/index.html', KidRequestContext(request, templatevars))
+    return render_to_response('index/index.html', templatevars, RequestContext(request))
 
 </diff>
      <filename>local_apps/pootle_app/views/index/index.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7d6e8ae4265ab5cea9a8b71c790dd99c6780a787</id>
    </parent>
  </parents>
  <author>
    <name>alaaosh</name>
    <email>alaaosh@54714841-351b-0410-a198-e36a94b762f5</email>
  </author>
  <url>http://github.com/translateorgza/pootle/commit/0da46f32fa31f5b72b19b56c4b779ea978baed2f</url>
  <id>0da46f32fa31f5b72b19b56c4b779ea978baed2f</id>
  <committed-date>2009-06-08T19:30:17-07:00</committed-date>
  <authored-date>2009-06-08T19:30:17-07:00</authored-date>
  <message>port index.html to django templates

git-svn-id: https://translate.svn.sourceforge.net/svnroot/translate/src/trunk/Pootle@11409 54714841-351b-0410-a198-e36a94b762f5</message>
  <tree>89c4bf4610a5c6c04d2a0be93d720dd7fab1584a</tree>
  <committer>
    <name>alaaosh</name>
    <email>alaaosh@54714841-351b-0410-a198-e36a94b762f5</email>
  </committer>
</commit>
