Commit 5b55538ce107fc1f6da2e77d290856789815cde6

Authored by Gust
1 parent a9fec364

Adding TODOS to trac's ifs

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