

@register.inclusion_tag('journalmanager/inctag_journaldash_toolbar.html', takes_context=True)
def journaldash_toolbar(context, page, journal, user):
    ret = {
        'page': page,
    }
    if journal.id:
        perms = context['perms']
        ret.update({
            'journal_id': journal.id,
            'perms': perms,
        })
    return ret

dataset/ETHPy150Open scieloorg/scielo-manager/scielomanager/journalmanager/templatetags/inctag_toolbars.py journaldash_toolbar/original