Commit 48a720797e4b80aba638618ac70b625f9ae1d770

Authored by Sergio Oliveira
2 parents 05417135 2cd97c75

Merge branch 'mezuro-integration'

colab/plugins/mezuro/__init__.py 0 → 100644
... ... @@ -0,0 +1 @@
  1 +default_app_config = 'colab.plugins.mezuro.apps.ProxyMezuroAppConfig'
0 2 \ No newline at end of file
... ...
colab/plugins/mezuro/admin.py 0 → 100644
... ... @@ -0,0 +1,3 @@
  1 +from django.contrib import admin
  2 +
  3 +# Register your models here.
... ...
colab/plugins/mezuro/apps.py 0 → 100644
... ... @@ -0,0 +1,6 @@
  1 +from django.utils.translation import ugettext_lazy as _
  2 +from ..utils.apps import ColabProxiedAppConfig
  3 +
  4 +class ProxyMezuroAppConfig(ColabProxiedAppConfig):
  5 + name = 'colab.plugins.mezuro'
  6 + verbose_name = 'Mezuro Proxy'
... ...
colab/plugins/mezuro/diazo.xml 0 → 100644
... ... @@ -0,0 +1,18 @@
  1 +<rules
  2 + xmlns="http://namespaces.plone.org/diazo"
  3 + xmlns:css="http://namespaces.plone.org/diazo/css"
  4 + xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  5 +
  6 + <before theme-children="/html/head" content-children="/html/head" />
  7 + <before css:theme-children="#main-content" css:content-children="body" />
  8 +
  9 + <merge attributes="class" css:theme="body" css:content="body" />
  10 +
  11 + <!-- Add mezuro properties -->
  12 + <merge attributes="data-page" css:theme="body" css:content="body" />
  13 + <merge attributes="data-project-id" css:theme="body" css:content="body" />
  14 +
  15 + <drop css:content=".navbar" /> <!-- Mezuro's navbar links are part of Colab's menu -->
  16 + <drop css:theme="script[src$='bootstrap.min.js']" /> <!-- Fixes top menu dropdown by removing Colab's bootstrap JS -->
  17 + <drop css:theme="script[src*='jquery']:not([src*='cookie']):not([src*='debouncedresize'])" /> <!-- Fixes accordion conflict by removing Colab's JQuery. But keeps the JS for cookie and debouncedresize -->
  18 +</rules>
... ...
colab/plugins/mezuro/migrations/__init__.py 0 → 100644
colab/plugins/mezuro/models.py 0 → 100644
... ... @@ -0,0 +1,3 @@
  1 +from django.db import models
  2 +
  3 +# Create your models here.
... ...
colab/plugins/mezuro/templates/proxy/mezuro.html 0 → 100644
... ... @@ -0,0 +1 @@
  1 +{% extends 'base.html' %}
... ...
colab/plugins/mezuro/tests.py 0 → 100644
... ... @@ -0,0 +1,3 @@
  1 +from django.test import TestCase
  2 +
  3 +# Create your tests here.
... ...
colab/plugins/mezuro/urls.py 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +from django.conf.urls import patterns, url
  2 +from .views import MezuroProxyView
  3 +
  4 +urlpatterns = patterns('',
  5 + # Gitlab URLs
  6 + url(r'^(?P<path>.*)$', MezuroProxyView.as_view(), name='mezuro'),
  7 +)
... ...
colab/plugins/mezuro/views.py 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +from ..utils.views import ColabProxyView
  2 +
  3 +class MezuroProxyView(ColabProxyView):
  4 + app_label = 'mezuro'
  5 + diazo_theme_template = 'proxy/mezuro.html'
... ...
colab/urls.py
... ... @@ -37,6 +37,7 @@ urlpatterns = patterns(&#39;&#39;,
37 37  
38 38 url(r'^trac/', include('colab.plugins.trac.urls')),
39 39 url(r'^gitlab/', include('colab.plugins.gitlab.urls')),
  40 + url(r'^mezuro/', include('colab.plugins.mezuro.urls')),
40 41 url(r'^social/', include('colab.plugins.noosfero.urls')),
41 42 url(r'^ci/', include('colab.plugins.jenkins.urls')),
42 43  
... ...