예제 #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)
예제 #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)

예제 #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)
예제 #4
0
from waliki.plugins import BasePlugin, register


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

register(TogetherJsPlugin)

예제 #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)
예제 #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)

예제 #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)
예제 #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)

예제 #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)