damned-lies r1084 - in branches/djamnedlies: . stats stats/templates templates



Author: stephaner
Date: Wed Oct 22 23:49:53 2008
New Revision: 1084
URL: http://svn.gnome.org/viewvc/damned-lies?rev=1084&view=rev

Log:
2008-10-23  StÃphane Raimbault  <stephane raimbault gmail com>

	* settings_sample.py: Removed one template setting. 
	* stats/templates/*.tmpl:
	* stats/views.py:
	* templates/*.html: Moved all templates to /templates.
	Rename .tmpl to .html (HTML mode and Django convention).


Added:
   branches/djamnedlies/templates/
   branches/djamnedlies/templates/base.html   (props changed)
      - copied unchanged from r1083, /branches/djamnedlies/stats/templates/base.tmpl
   branches/djamnedlies/templates/index.html   (contents, props changed)
      - copied, changed from r1083, /branches/djamnedlies/stats/templates/index.tmpl
   branches/djamnedlies/templates/language-release-stats.html   (props changed)
      - copied unchanged from r1083, /branches/djamnedlies/stats/templates/language-release-stats.tmpl
   branches/djamnedlies/templates/language-release.html   (contents, props changed)
      - copied, changed from r1083, /branches/djamnedlies/stats/templates/language-release.tmpl
   branches/djamnedlies/templates/list-languages.html   (contents, props changed)
      - copied, changed from r1083, /branches/djamnedlies/stats/templates/list-languages.tmpl
   branches/djamnedlies/templates/list-modules.html   (contents, props changed)
      - copied, changed from r1083, /branches/djamnedlies/stats/templates/list-modules.tmpl
   branches/djamnedlies/templates/list-releases.html   (contents, props changed)
      - copied, changed from r1083, /branches/djamnedlies/stats/templates/list-releases.tmpl
   branches/djamnedlies/templates/list-teams.html   (contents, props changed)
      - copied, changed from r1083, /branches/djamnedlies/stats/templates/list-teams.tmpl
   branches/djamnedlies/templates/module-images.html   (contents, props changed)
      - copied, changed from r1083, /branches/djamnedlies/stats/templates/module-images.tmpl
   branches/djamnedlies/templates/module.html   (contents, props changed)
      - copied, changed from r1083, /branches/djamnedlies/stats/templates/module.tmpl
   branches/djamnedlies/templates/people.html   (contents, props changed)
      - copied, changed from r1083, /branches/djamnedlies/stats/templates/people.tmpl
   branches/djamnedlies/templates/person-base.html   (contents, props changed)
      - copied, changed from r1083, /branches/djamnedlies/stats/templates/person-base.tmpl
   branches/djamnedlies/templates/person.html   (contents, props changed)
      - copied, changed from r1083, /branches/djamnedlies/stats/templates/person.tmpl
   branches/djamnedlies/templates/release.html   (contents, props changed)
      - copied, changed from r1083, /branches/djamnedlies/stats/templates/release.tmpl
   branches/djamnedlies/templates/show-stats.html   (props changed)
      - copied unchanged from r1083, /branches/djamnedlies/stats/templates/show-stats.tmpl
   branches/djamnedlies/templates/team.html   (contents, props changed)
      - copied, changed from r1083, /branches/djamnedlies/stats/templates/team.tmpl
Removed:
   branches/djamnedlies/stats/templates/
Modified:
   branches/djamnedlies/ChangeLog
   branches/djamnedlies/settings_sample.py
   branches/djamnedlies/stats/views.py

Modified: branches/djamnedlies/settings_sample.py
==============================================================================
--- branches/djamnedlies/settings_sample.py	(original)
+++ branches/djamnedlies/settings_sample.py	Wed Oct 22 23:49:53 2008
@@ -71,8 +71,7 @@
 ROOT_URLCONF = 'djamnedlies.urls'
 
 TEMPLATE_DIRS = (
-    os.path.join(PROJECT_PATH, 'stats', 'templates'),
-    os.path.join(PROJECT_PATH, 'vertimus', 'templates'),
+    os.path.join(PROJECT_PATH, 'templates'),
 )
 
 INSTALLED_APPS = (

Modified: branches/djamnedlies/stats/views.py
==============================================================================
--- branches/djamnedlies/stats/views.py	(original)
+++ branches/djamnedlies/stats/views.py	Wed Oct 22 23:49:53 2008
@@ -35,7 +35,7 @@
                'webroot': settings.WEBROOT,
                'rtl': False,
                'translator_credit': translator_credit }
-    return render_to_response('index.tmpl', context)
+    return render_to_response('index.html', context)
 
 def teams(request):
     all_teams = Team.objects.all()
@@ -45,21 +45,21 @@
     context = {'pageSection': "teams",
                'webroot': settings.WEBROOT,
                'teams': utils.sortObjectList(all_teams, 'description') }
-    return render_to_response('list-teams.tmpl', context)
+    return render_to_response('list-teams.html', context)
 
 def team(request, name):
     team = Team.objects.get(name=name)
     context = {'pageSection': "teams",
                'webroot': settings.WEBROOT,
                'team': team}
-    return render_to_response('team.tmpl', context)
+    return render_to_response('team.html', context)
     
 def languages(request):
     all_languages = Language.objects.all()
     context = {'pageSection': "languages",
                'languages': utils.sortObjectList(all_languages, 'name'),
                'webroot': settings.WEBROOT }
-    return render_to_response('list-languages.tmpl', context)
+    return render_to_response('list-languages.html', context)
 
 def people(request):
     """ Print a list of all people in database """
@@ -67,7 +67,7 @@
     context = {'pageSection': "teams",
                'people': all_people,
                'webroot': settings.WEBROOT }
-    return render_to_response('people.tmpl', context)
+    return render_to_response('people.html', context)
 
 def person(request, person_id):
     """ Print the details of a single person """
@@ -79,14 +79,14 @@
                'printroles': True,
                'roles': {'maintains':maintainer, 'translates':translator}, 
                'webroot': settings.WEBROOT }
-    return render_to_response('person.tmpl', context)
+    return render_to_response('person.html', context)
 
 def modules(request):
     all_modules = Module.objects.all()
     context = {'pageSection':  "module",
                'webroot': settings.WEBROOT,
                'modules': utils.sortObjectList(all_modules, 'description') }
-    return render_to_response('list-modules.tmpl', context)
+    return render_to_response('list-modules.html', context)
 
 def module(request, module_name):
     mod = Module.objects.get(name = module_name)
@@ -95,7 +95,7 @@
                'webroot': settings.WEBROOT,
                'module': mod,
                'prof': utils.Profiler() }
-    return render_to_response('module.tmpl', context)
+    return render_to_response('module.html', context)
 
 def docimages(request, module_name, potbase, branch_name, langcode):
     mod = Module.objects.get(name = module_name)
@@ -104,21 +104,21 @@
                'webroot': settings.WEBROOT,
                'module': mod,
                'stat': stat }
-    return render_to_response('module-images.tmpl', context)
+    return render_to_response('module-images.html', context)
 
 def releases(request):
     all_releases = Release.objects.order_by('status', '-name')
     context = {'pageSection':  "releases",
                'webroot': settings.WEBROOT,
                'releases': all_releases }
-    return render_to_response('list-releases.tmpl', context)
+    return render_to_response('list-releases.html', context)
 
 def release(request, release_id):
     rel = Release.objects.get(id=release_id)
     context = {'pageSection':  "releases",
                'webroot': settings.WEBROOT,
                'release': rel }
-    return render_to_response('release.tmpl', context)
+    return render_to_response('release.html', context)
 
 def languagerelease(request, langcode, release_id):
     rel = Release.objects.get(id=release_id)
@@ -129,6 +129,6 @@
                'language': lang,
                'release': rel,
                'stats': rel_stats}
-    return render_to_response('language-release.tmpl', context)
+    return render_to_response('language-release.html', context)
 
 

Copied: branches/djamnedlies/templates/index.html (from r1083, /branches/djamnedlies/stats/templates/index.tmpl)
==============================================================================
--- /branches/djamnedlies/stats/templates/index.tmpl	(original)
+++ branches/djamnedlies/templates/index.html	Wed Oct 22 23:49:53 2008
@@ -1,4 +1,4 @@
-{% extends "base.tmpl" %}
+{% extends "base.html" %}
 {% load i18n %}
 
 {% block title %} {% trans "Damned Lies about GNOME" %} {% endblock %}

Copied: branches/djamnedlies/templates/language-release.html (from r1083, /branches/djamnedlies/stats/templates/language-release.tmpl)
==============================================================================
--- /branches/djamnedlies/stats/templates/language-release.tmpl	(original)
+++ branches/djamnedlies/templates/language-release.html	Wed Oct 22 23:49:53 2008
@@ -1,4 +1,4 @@
-{% extends "base.tmpl" %}
+{% extends "base.html" %}
 {% load i18n %}
 
 {% block title %} {% trans release.name %} - {% trans language.name %}{% endblock %}
@@ -39,7 +39,7 @@
     <h2>{% trans "Coordinator" %}</h2>
     {% with language.team.coordinator as person %}
     {% with 0 as printroles %}
-    {% include "person-base.tmpl" %}
+    {% include "person-base.html" %}
     {% endwith %}
     {% endwith %}
   {% endif %}
@@ -69,7 +69,7 @@
   <td valign="top" width="50%"><!-- two columns set-up -->
   <h3>{% trans "Documentation" %}</h3>
   {% with stats.doc as modstats %}
-    {% include "language-release-stats.tmpl" %}
+    {% include "language-release-stats.html" %}
   {% endwith %}
   </td>
 {% endif %}  
@@ -77,7 +77,7 @@
 
   <h3>{% trans "UI translations" %}</h3>
   {% with stats.ui as modstats %}
-    {% include "language-release-stats.tmpl" %}
+    {% include "language-release-stats.html" %}
   {% endwith %}
 </td></tr></table><!-- end two column layout -->
 

Copied: branches/djamnedlies/templates/list-languages.html (from r1083, /branches/djamnedlies/stats/templates/list-languages.tmpl)
==============================================================================
--- /branches/djamnedlies/stats/templates/list-languages.tmpl	(original)
+++ branches/djamnedlies/templates/list-languages.html	Wed Oct 22 23:49:53 2008
@@ -1,4 +1,4 @@
-{% extends "base.tmpl" %}
+{% extends "base.html" %}
 {% load i18n %}
 
 {% block title %} {% trans "GNOME Languages" %} {% endblock %}

Copied: branches/djamnedlies/templates/list-modules.html (from r1083, /branches/djamnedlies/stats/templates/list-modules.tmpl)
==============================================================================
--- /branches/djamnedlies/stats/templates/list-modules.tmpl	(original)
+++ branches/djamnedlies/templates/list-modules.html	Wed Oct 22 23:49:53 2008
@@ -1,4 +1,4 @@
-{% extends "base.tmpl" %}
+{% extends "base.html" %}
 {% load i18n %}
 
 {% block title %} {% trans "GNOME Modules" %} {% endblock %}

Copied: branches/djamnedlies/templates/list-releases.html (from r1083, /branches/djamnedlies/stats/templates/list-releases.tmpl)
==============================================================================
--- /branches/djamnedlies/stats/templates/list-releases.tmpl	(original)
+++ branches/djamnedlies/templates/list-releases.html	Wed Oct 22 23:49:53 2008
@@ -1,4 +1,4 @@
-{% extends "base.tmpl" %}
+{% extends "base.html" %}
 {% load i18n %}
 
 {% block title %} {% trans "GNOME Releases" %} {% endblock %}

Copied: branches/djamnedlies/templates/list-teams.html (from r1083, /branches/djamnedlies/stats/templates/list-teams.tmpl)
==============================================================================
--- /branches/djamnedlies/stats/templates/list-teams.tmpl	(original)
+++ branches/djamnedlies/templates/list-teams.html	Wed Oct 22 23:49:53 2008
@@ -1,4 +1,4 @@
-{% extends "base.tmpl" %}
+{% extends "base.html" %}
 {% load i18n %}
 
 {% block title %} {% trans "GNOME Translation Teams" %} {% endblock %}

Copied: branches/djamnedlies/templates/module-images.html (from r1083, /branches/djamnedlies/stats/templates/module-images.tmpl)
==============================================================================
--- /branches/djamnedlies/stats/templates/module-images.tmpl	(original)
+++ branches/djamnedlies/templates/module-images.html	Wed Oct 22 23:49:53 2008
@@ -1,4 +1,4 @@
-{% extends "base.tmpl" %}
+{% extends "base.html" %}
 {% load i18n %}
 
 {% block title %} {% blocktrans with module.description as name %}Module Doc Figure Status: {{ name }}{% endblocktrans %} {% endblock %}

Copied: branches/djamnedlies/templates/module.html (from r1083, /branches/djamnedlies/stats/templates/module.tmpl)
==============================================================================
--- /branches/djamnedlies/stats/templates/module.tmpl	(original)
+++ branches/djamnedlies/templates/module.html	Wed Oct 22 23:49:53 2008
@@ -1,4 +1,4 @@
-{% extends "base.tmpl" %}
+{% extends "base.html" %}
 {% load i18n %}
 
 {% block title %} {% blocktrans with module.description as name %}Module Statistics: {{ name }}{% endblocktrans %} {% endblock %}
@@ -79,7 +79,7 @@
     {% with branch.get_doc_stats as stats %}
     {% if stats|length %}
       <h3>{% trans "Documentation" %}</h3>
-        {% include "show-stats.tmpl" %}
+        {% include "show-stats.html" %}
     {% endif %}
     {% endwith %}
 
@@ -87,7 +87,7 @@
     {% with branch.get_ui_stats as stats %}
     {% if stats|length %}
       <h3>{% trans "Translation" %}</h3>
-        {% include "show-stats.tmpl" %}
+        {% include "show-stats.html" %}
     {% endif %}
     {% endwith %}
 

Copied: branches/djamnedlies/templates/people.html (from r1083, /branches/djamnedlies/stats/templates/people.tmpl)
==============================================================================
--- /branches/djamnedlies/stats/templates/people.tmpl	(original)
+++ branches/djamnedlies/templates/people.html	Wed Oct 22 23:49:53 2008
@@ -1,4 +1,4 @@
-{% extends "base.tmpl" %}
+{% extends "base.html" %}
 {% load i18n %}
 
 {% block title %} {% trans "GNOME Contributors" %} {% endblock %}

Copied: branches/djamnedlies/templates/person-base.html (from r1083, /branches/djamnedlies/stats/templates/person-base.tmpl)
==============================================================================
--- /branches/djamnedlies/stats/templates/person-base.tmpl	(original)
+++ branches/djamnedlies/templates/person-base.html	Wed Oct 22 23:49:53 2008
@@ -1,6 +1,6 @@
 {# Variables $person and $printroles must be defined prior to calling this template #}
 {# If $printroles !=0 $roles must also be defined #}
-{# This template is included in person.tmpl, team.tmpl and language-release.tmpl #}
+{# This template is included in person.html, team.html and language-release.html #}
 
 {% load i18n %}
 

Copied: branches/djamnedlies/templates/person.html (from r1083, /branches/djamnedlies/stats/templates/person.tmpl)
==============================================================================
--- /branches/djamnedlies/stats/templates/person.tmpl	(original)
+++ branches/djamnedlies/templates/person.html	Wed Oct 22 23:49:53 2008
@@ -1,4 +1,4 @@
-{% extends "base.tmpl" %}
+{% extends "base.html" %}
 {% load i18n %}
 
 {% block title %} {% trans "GNOME Contributor" %} {% endblock %}
@@ -8,7 +8,7 @@
 
   <h2>{{ person.name}}</h2>
   {% with 1 as printroles %}
-  {% include "person-base.tmpl" %}
+  {% include "person-base.html" %}
   {% endwith %}
 
 </div>

Copied: branches/djamnedlies/templates/release.html (from r1083, /branches/djamnedlies/stats/templates/release.tmpl)
==============================================================================
--- /branches/djamnedlies/stats/templates/release.tmpl	(original)
+++ branches/djamnedlies/templates/release.html	Wed Oct 22 23:49:53 2008
@@ -1,4 +1,4 @@
-{% extends "base.tmpl" %}
+{% extends "base.html" %}
 {% load i18n %}
 
 {% block title %} {% trans release.name %} {% endblock %}

Copied: branches/djamnedlies/templates/team.html (from r1083, /branches/djamnedlies/stats/templates/team.tmpl)
==============================================================================
--- /branches/djamnedlies/stats/templates/team.tmpl	(original)
+++ branches/djamnedlies/templates/team.html	Wed Oct 22 23:49:53 2008
@@ -1,4 +1,4 @@
-{% extends "base.tmpl" %}
+{% extends "base.html" %}
 {% load i18n %}
 
 {% block title %}{% trans team.description %}{% endblock %}
@@ -38,7 +38,7 @@
     <h2>{% trans "Coordinator" %}</h2>
     {% with team.coordinator as person %}
     {% with 0 as printroles %}
-    {% include "person-base.tmpl" %}
+    {% include "person-base.html" %}
     {% endwith %}
     {% endwith %}
   {% endif %}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]