Esempio n. 1
0
from django.utils.translation import ugettext_lazy as _
from waliki.plugins import BasePlugin, register


class SearchPlugin(BasePlugin):
    slug = 'search'
    urls_page = ['waliki.search.urls']
    navbar_links = (('haystack_search', _('Search')),)

register(SearchPlugin)
Esempio n. 2
0
from django.utils.translation import ugettext_lazy as _
from waliki.plugins import BasePlugin, register


class AttachmentsPlugin(BasePlugin):
    slug = 'attachments'
    urls_page = ['waliki.attachments.urls']
    extra_edit_actions = {'all': [('waliki_attachments', _('Attachments'))]}
    includes_edit = {'content': 'waliki/attachments_modal.html',
    				 'extra_script': 'waliki/attachments_js.html'}

register(AttachmentsPlugin)

Esempio n. 3
0
from django.utils.translation import ugettext_lazy as _
from waliki.plugins import BasePlugin, register


class BlocksPlugin(BasePlugin):

    slug = 'blocks'
    urls_page = ['waliki_blocks.urls']
    extra_page_actions = {}
    navbar_links = ()
#    extra_page_actions = {'all': [('waliki_history', _('History'))]}
#    navbar_links = (('waliki_whatchanged', _('What changed')),)

register(BlocksPlugin)
Esempio n. 4
0
from waliki.plugins import BasePlugin, register


class TogetherJsPlugin(BasePlugin):
    slug = 'togetherjs'
    urls_page = []

register(TogetherJsPlugin)

Esempio n. 5
0
from django.utils.translation import ugettext_lazy as _
from waliki.plugins import BasePlugin, register


class SlidesPlugin(BasePlugin):
    slug = 'slides'
    urls_page = ['waliki.slides.urls']
    extra_page_actions = {
        'reStructuredText': [('waliki_slides', _('View as slides'))]
    }


register(SlidesPlugin)
Esempio n. 6
0
from django.utils.translation import ugettext_lazy as _
from waliki.plugins import BasePlugin, register


class GitPlugin(BasePlugin):

    slug = 'git'
    urls_page = ['waliki.git.urls']
    extra_page_actions = {'all': [('waliki_history', _('History'))]}

register(GitPlugin)

Esempio n. 7
0
from django.utils.translation import ugettext_lazy as _
from waliki.plugins import BasePlugin, register


class GitPlugin(BasePlugin):

    slug = 'git'
    urls_page = ['waliki.git.urls']
    extra_page_actions = {'all': [('waliki_history', _('History'))]}


register(GitPlugin)
Esempio n. 8
0
from django.utils.translation import ugettext_lazy as _
from waliki.plugins import BasePlugin, register


class PdfPlugin(BasePlugin):
    slug = 'pdf'
    urls_page = ['waliki.pdf.urls']
    extra_page_actions = {'reStructuredText': [('waliki_pdf', _('Get as PDF'))]}

register(PdfPlugin)

Esempio n. 9
0
from django.utils.translation import ugettext_lazy as _
from waliki.plugins import BasePlugin, register


class PdfPlugin(BasePlugin):
    slug = 'pdf'
    urls_page = ['waliki.pdf.urls']
    extra_page_actions = {
        'reStructuredText': [('waliki_pdf', _('Get as PDF'))]
    }


register(PdfPlugin)