Commit
c9e9c7f0e2dc493ec8946daf0924880bb1c1f344
Exists in
master
and in
32 other branches
1.12.x, add_requests_as_dep, celery_service, change-passwd-signal, colab-signals, colab-vcard, colab_search, colab_tag, colab_tag_merge, community_association, detach_super_archives, fix-dashboard, fix-message-preview, fix_app_label, fix_header, fixed_gitlab_import, go_to_profile_panel, mobile_user_scalable, paginate-threads, profile_integration, refactor-data-import, remove-gitlab-plugin, removing_namespace, search_block, search_filters, split_screen, startplugin, timestamp_plugins, translation_review, user_regex, validate-passwd, workin_whoosh_temp
Initial crude integration with Mezuro
Signed off by: Gustavo Jaruga <darksshades@hotmail.com>
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +default_app_config = 'colab.plugins.mezuro.apps.ProxyMezuroAppConfig' |
0
| \ No newline at end of file |
2
| \ No newline at end of file |
| @@ -0,0 +1,3 @@ |
| @@ -0,0 +1,3 @@ |
| |
1
| +from django.contrib import admin |
| |
2
| + |
| |
3
| +# Register your models here. |
| @@ -0,0 +1,6 @@ |
| @@ -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' |
| @@ -0,0 +1,18 @@ |
| @@ -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> |
| @@ -0,0 +1,3 @@ |
| @@ -0,0 +1,3 @@ |
| |
1
| +from django.db import models |
| |
2
| + |
| |
3
| +# Create your models here. |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +{% extends 'base.html' %} |
| @@ -0,0 +1,3 @@ |
| @@ -0,0 +1,3 @@ |
| |
1
| +from django.test import TestCase |
| |
2
| + |
| |
3
| +# Create your tests here. |
| @@ -0,0 +1,7 @@ |
| @@ -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
| +) |
| @@ -0,0 +1,5 @@ |
| @@ -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' |