<?php
namespace zin;
global $lang;
query('#mainMenu')->append(toolBar
(
    hasPriv('repo', 'createTag') ? item(set(array
    (
        'text'  => $lang->repo->createTagAction,
        'icon'  => 'plus',
        'class' => 'btn primary',
        'url'   => createLink('repo', 'createTag', 'objectID=' . data('objectID') . '&repoID=' . data('repoID')),
        'data-toggle'=>'modal'
    ))) : null
));