damned-lies r1083 - in branches/djamnedlies: . stats stats/templates
- From: stephaner svn gnome org
- To: svn-commits-list gnome org
- Subject: damned-lies r1083 - in branches/djamnedlies: . stats stats/templates
- Date: Wed, 22 Oct 2008 23:31:20 +0000 (UTC)
Author: stephaner
Date: Wed Oct 22 23:31:20 2008
New Revision: 1083
URL: http://svn.gnome.org/viewvc/damned-lies?rev=1083&view=rev
Log:
2008-10-23 StÃphane Raimbault <stephane raimbault gmail com>
* stats/models.py:
* stats/templates/module-images.tmpl:
* stats/templates/show-stats.tmpl: Replace remaining URLs to /data
* stats/urls.py: Remove the old URL pattern to Claude's directory :)
Modified:
branches/djamnedlies/ChangeLog
branches/djamnedlies/stats/models.py
branches/djamnedlies/stats/templates/module-images.tmpl
branches/djamnedlies/stats/templates/show-stats.tmpl
branches/djamnedlies/stats/urls.py
Modified: branches/djamnedlies/stats/models.py
==============================================================================
--- branches/djamnedlies/stats/models.py (original)
+++ branches/djamnedlies/stats/models.py Wed Oct 22 23:31:20 2008
@@ -893,7 +893,7 @@
db_table = 'information'
def get_icon(self):
- return "/data/%s.png" % self.Type
+ return "/media/img/%s.png" % self.Type
def get_description(self):
text = self.Description
Modified: branches/djamnedlies/stats/templates/module-images.tmpl
==============================================================================
--- branches/djamnedlies/stats/templates/module-images.tmpl (original)
+++ branches/djamnedlies/stats/templates/module-images.tmpl Wed Oct 22 23:31:20 2008
@@ -42,7 +42,7 @@
{% endif %}
{% else %}
<em>{% trans "Not translated" %}</em><br/>
- <img src="/data/emptyimg.png">
+ <img src="/media/img/emptyimg.png">
{% endif %}
{% endif %}
</td>
Modified: branches/djamnedlies/stats/templates/show-stats.tmpl
==============================================================================
--- branches/djamnedlies/stats/templates/show-stats.tmpl (original)
+++ branches/djamnedlies/stats/templates/show-stats.tmpl Wed Oct 22 23:31:20 2008
@@ -8,7 +8,7 @@
<br /><span class='path'>{{ stat1.domain.directory }}</span>
{% endifnotequal %}
{% endifnotequal %}</h3>
- <a href="{{ stat1.po_url }}"><img src="/data/download.png" alt="Download POT file" /></a>
+ <a href="{{ stat1.po_url }}"><img src="/media/img/download.png" alt="Download POT file" /></a>
{{ stat1.pot_text }}
<!-- /* This is the title of the section that lists notices about a module */ -->
@@ -41,7 +41,7 @@
<td>{{ line.get_translationstat|safe }}</td>
{% if stat1.fig_count %}
<td><a href="/module/{{ module.name }}/{{ stat1.domain.name }}/{{ branch.name }}/{{ line.language.locale}}/images">
- <img src="/data/figure.png" alt="{% trans "Display document figures" %}"></a></td>
+ <img src="/media/img/figure.png" alt="{% trans "Display document figures" %}"></a></td>
{% endif %}
<td style="width: 108px; text-align: center;"><div class="graph">
<div class="translated" style="width: {{ line.tr_percentage }}px;"></div>
Modified: branches/djamnedlies/stats/urls.py
==============================================================================
--- branches/djamnedlies/stats/urls.py (original)
+++ branches/djamnedlies/stats/urls.py Wed Oct 22 23:31:20 2008
@@ -21,9 +21,6 @@
)
# Static files (should be replaced by web server redirection in production
urlpatterns += patterns('',
- (r'^data/(?P<path>.*)$', 'django.views.static.serve',
- {'document_root': '/home/claude/Sauvegarde/Sites/djamnedlies/stats/data'}),
(r'^POT/(?P<path>.*)$', 'django.views.static.serve',
- {'document_root': '/home/claude/www/damned-lies/cvs/POT'}),
-
+ {'document_root': '/home/claude/www/damned-lies/cvs/POT'}),
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]