[damned-lies] Replace cgit by browse in git URL for GNOME



commit 614e81e17d829ada6d408de65d549fc77ad16d6f
Author: Claude Paroz <claude 2xlibre net>
Date:   Sat Apr 24 17:31:33 2010 +0200

    Replace cgit by browse in git URL for GNOME

 stats/models.py         |    4 ++--
 stats/tests/__init__.py |    8 ++++----
 templates/base.html     |    2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/stats/models.py b/stats/models.py
index e00bd11..d64c8dc 100644
--- a/stats/models.py
+++ b/stats/models.py
@@ -1106,7 +1106,7 @@ class Statistics(models.Model):
             [{'path':, 'video':, 'hash':, 'fuzzy':, 'translated':, 'translated_file':}, ...] """
         if self.figures is None and self.domain.dtype == 'doc':
             self.figures = utils.get_fig_stats(self.po_path())
-            # something like: "http://git.gnome.org/cgit/vinagre / plain / help / %s / %s ?h=master"
+            # something like: "http://git.gnome.org/browse/vinagre / plain / help / %s / %s ?h=master"
             url_model = utils.url_join(self.branch.get_vcs_web_url(), self.branch.img_url_prefix,
                                        self.domain.directory, '%s', '%s') + self.branch.img_url_suffix
             for fig in self.figures:
@@ -1380,7 +1380,7 @@ class FakeStatistics(object):
             [{'path':, 'hash':, 'fuzzy':, 'translated':, 'translated_file':}, ...] """
         if self.figures is None and self.domain.dtype == 'doc':
             self.figures = utils.get_fig_stats(self.po_path())
-            # something like: "http://git.gnome.org/cgit/vinagre / plain / help / %s / %s ?h=master"
+            # something like: "http://git.gnome.org/browse/vinagre / plain / help / %s / %s ?h=master"
             url_model = utils.url_join(self.branch.get_vcs_web_url(), self.branch.img_url_prefix,
                                        self.domain.directory, '%s', '%s') + self.branch.img_url_suffix
             for fig in self.figures:
diff --git a/stats/tests/__init__.py b/stats/tests/__init__.py
index 9339bb3..752c08f 100644
--- a/stats/tests/__init__.py
+++ b/stats/tests/__init__.py
@@ -44,7 +44,7 @@ class ModuleTestCase(TestCase):
                   bugs_component="test",
                   vcs_type="git",
                   vcs_root="git://git.gnome.org/gnome-hello",
-                  vcs_web="http://git.gnome.org/cgit/gnome-hello/";)
+                  vcs_web="http://git.gnome.org/browse/gnome-hello/";)
         self.mod.save()
         dom = Domain(module=self.mod, name='po', description='UI Translations', dtype='ui', directory='po')
         dom.save()
@@ -68,7 +68,7 @@ class ModuleTestCase(TestCase):
     def testBranchFunctions(self):
         self.assertTrue(self.b.is_head())
         self.assertEquals(self.b.get_vcs_url(), "git://git.gnome.org/gnome-hello")
-        self.assertEquals(self.b.get_vcs_web_url(), "http://git.gnome.org/cgit/gnome-hello/";)
+        self.assertEquals(self.b.get_vcs_web_url(), "http://git.gnome.org/browse/gnome-hello/";)
 
     def testBranchStats(self):
         # Check stats
@@ -142,8 +142,8 @@ class ModuleTestCase(TestCase):
         self.b.update_stats(force=True)
         stat = Statistics.objects.get(branch=self.b, domain__dtype='doc', language__locale='fr')
         figs = stat.get_figures()
-        self.assertEquals(figs[0]['orig_remote_url'], 'http://git.gnome.org/cgit/gnome-hello/plain/help/C/figures/gnome-hello.png?h=master')
-        self.assertEquals(figs[0]['trans_remote_url'], 'http://git.gnome.org/cgit/gnome-hello/plain/help/fr/figures/gnome-hello.png?h=master')
+        self.assertEquals(figs[0]['orig_remote_url'], 'http://git.gnome.org/browse/gnome-hello/plain/help/C/figures/gnome-hello.png?h=master')
+        self.assertEquals(figs[0]['trans_remote_url'], 'http://git.gnome.org/browse/gnome-hello/plain/help/fr/figures/gnome-hello.png?h=master')
 
     def testCreateUnexistingBranch(self):
         """ Try to create a non-existing branch """
diff --git a/templates/base.html b/templates/base.html
index 6b4ee51..db6ee8c 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -93,7 +93,7 @@
   <div id="footer">
     {% trans "Copyright &copy; 2006-2009" %} <a href="http://www.gnome.org/";>{% trans "The GNOME Project" %}</a>.
     <br />
-{% trans "Maintained in the <a href='http://git.gnome.org/cgit/damned-lies/'>damned-lies</a> module on <a href='http://git.gnome.org/'>git.gnome.org</a>" %}
+{% trans "Maintained in the <a href='http://git.gnome.org/browse/damned-lies/'>damned-lies</a> module on <a href='http://git.gnome.org/'>git.gnome.org</a>" %}
  <br />
     {% trans "Hosted by" %} <a href="http://www.canonical.com/";>Canonical</a>.
   </div>



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