From f7fe1908c8bd2e991b00fe2739bd39996436ca66 Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Tue, 11 Nov 2014 11:09:10 -0200 Subject: [PATCH] Created dinamically jenkins menu --- colab/proxy/jenkins/apps.py | 9 +++++++++ colab/proxy/jenkins/urls.py | 2 +- colab/templates/base.html | 9 --------- colab/urls.py | 1 + 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/colab/proxy/jenkins/apps.py b/colab/proxy/jenkins/apps.py index e1e0833..52acd2b 100644 --- a/colab/proxy/jenkins/apps.py +++ b/colab/proxy/jenkins/apps.py @@ -1,7 +1,16 @@ +from django.utils.translation import ugettext_lazy as _ + from ..utils.apps import ColabProxiedAppConfig class ProxyJenkinsAppConfig(ColabProxiedAppConfig): name = 'colab.proxy.jenkins' verbose_name = 'Jenkins Proxy' + + menu = { + 'title': _('Code'), + 'links': ( + (_('Continuos Integration'), ''), + ), + } diff --git a/colab/proxy/jenkins/urls.py b/colab/proxy/jenkins/urls.py index 8c499e4..162ec0e 100644 --- a/colab/proxy/jenkins/urls.py +++ b/colab/proxy/jenkins/urls.py @@ -6,5 +6,5 @@ from .views import JenkinsProxyView urlpatterns = patterns('', # Jenkins URLs - url(r'^ci/(?P.*)$', JenkinsProxyView.as_view()), + url(r'^(?P.*)$', JenkinsProxyView.as_view(), name='jenkins'), ) diff --git a/colab/templates/base.html b/colab/templates/base.html index 94f8599..fe1c98f 100644 --- a/colab/templates/base.html +++ b/colab/templates/base.html @@ -96,15 +96,6 @@ {% proxy_menu %} - {% if proxy.trac %} - - {% endif %} -
  • {% trans "Paste" %}