[damned-lies: 9/9] Merge branch 'pofile'



commit b437e9f0cc73d88bf0dce7464183afa42b44730f
Merge: 9f6b895 d74539a
Author: Claude Paroz <claude 2xlibre net>
Date:   Wed Mar 16 10:02:52 2011 +0100

    Merge branch 'pofile'

 README                                            |    3 +
 docs/DataModel.odg                                |  Bin 26643 -> 27476 bytes
 languages/urls.py                                 |    2 +-
 languages/views.py                                |    7 +-
 media/css/main.css                                |    4 +
 stats/migrations/0005_add_pofile.py               |  228 ++++++++++++++
 stats/migrations/0006_migrate_stats.py            |  208 +++++++++++++
 stats/models.py                                   |  330 +++++++++++++++------
 stats/templatetags/stats_extras.py                |    9 +
 stats/tests/fixture_factory.py                    |   44 ++--
 stats/utils.py                                    |   56 +++-
 templates/languages/language_release_stats.html   |    3 +-
 templates/languages/language_release_summary.html |   18 +-
 templates/release_detail.html                     |    8 +-
 templates/vertimus/vertimus_detail.html           |   30 ++-
 vertimus/models.py                                |   11 +-
 vertimus/views.py                                 |    5 +-
 17 files changed, 819 insertions(+), 147 deletions(-)
---
diff --cc stats/templatetags/stats_extras.py
index f786455,ab496bc..8c717aa
--- a/stats/templatetags/stats_extras.py
+++ b/stats/templatetags/stats_extras.py
@@@ -28,5 -29,9 +29,13 @@@ def domain_type(stat)
      return stat.domain.get_type(stat.branch)
  
  @register.filter
 +def browse_bugs(module, content):
 +    return module.get_bugs_i18n_url(content)
++
++ register filter
+ def num_stats(stat, scope):
+     """ Produce stat numbers as in: 85% (1265/162/85) """
+     return mark_safe("%s%%&nbsp;(%s/%s/%s)" % (
+         stat.tr_percentage(scope), stat.translated(scope),
+         stat.fuzzy(scope), stat.untranslated(scope))
+     )



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