Commit 5b55538ce107fc1f6da2e77d290856789815cde6
1 parent
a9fec364
Exists in
master
and in
39 other branches
Adding TODOS to trac's ifs
Signed-off-by: Matheus Faria <matheus.sousa.faria@gmail.com> Signed-off-by: Gustavo Jaruga <darksshades@hotmail.com>
Showing
3 changed files
with
3 additions
and
2 deletions
Show diff stats
src/home/views.py
@@ -26,7 +26,7 @@ def index(request): | @@ -26,7 +26,7 @@ def index(request): | ||
26 | count_types['thread'] = SearchQuerySet().filter( | 26 | count_types['thread'] = SearchQuerySet().filter( |
27 | type='thread', | 27 | type='thread', |
28 | ).count() | 28 | ).count() |
29 | - | 29 | + # TODO: this section should be inside trac app and only use it here |
30 | if settings.TRAC_ENABLED: | 30 | if settings.TRAC_ENABLED: |
31 | for type in ['changeset', 'attachment']: | 31 | for type in ['changeset', 'attachment']: |
32 | count_types[type] = SearchQuerySet().filter( | 32 | count_types[type] = SearchQuerySet().filter( |
src/search/views.py
@@ -28,7 +28,7 @@ class ColabSearchView(SearchView): | @@ -28,7 +28,7 @@ class ColabSearchView(SearchView): | ||
28 | ), | 28 | ), |
29 | }, | 29 | }, |
30 | } | 30 | } |
31 | - | 31 | + # TODO: Replace for a more generic plugin architecture |
32 | if settings.TRAC_ENABLED: | 32 | if settings.TRAC_ENABLED: |
33 | types['wiki'] = { | 33 | types['wiki'] = { |
34 | 'name': _(u'Wiki'), | 34 | 'name': _(u'Wiki'), |
src/templates/base.html
@@ -90,6 +90,7 @@ | @@ -90,6 +90,7 @@ | ||
90 | {% endif %} | 90 | {% endif %} |
91 | <li><a href="/roadmap">{% trans "Roadmap" %}</a></li> | 91 | <li><a href="/roadmap">{% trans "Roadmap" %}</a></li> |
92 | <li><a href="/browser">{% trans "Browse Source" %}</a></li> | 92 | <li><a href="/browser">{% trans "Browse Source" %}</a></li> |
93 | + <!-- TODO: Must be optional like trac and separated --!> | ||
93 | <li><a href="/ci">{% trans "Continuous Integration" %}</a></li> | 94 | <li><a href="/ci">{% trans "Continuous Integration" %}</a></li> |
94 | </ul> | 95 | </ul> |
95 | </li> | 96 | </li> |