Commit c9e9c7f0e2dc493ec8946daf0924880bb1c1f344

Authored by Rafael Manzo
1 parent 9e24daab

Initial crude integration with Mezuro

Signed off by: Gustavo Jaruga <darksshades@hotmail.com>
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 gitlab 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="#top-panel" />
  16 + <drop css:content=".navbar-gitlab" />
  17 + <drop css:content=".git-clone-holder .btn:contains('HTTPS')" />
  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'
... ...