芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/mctv/views/authed-topbar.twig
{# /** * Copyright (C) 2020 Xibo Signage Ltd * * Xibo - Digital Signage - http://www.xibo.org.uk * * This file is part of Xibo. * * Xibo is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * Xibo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with Xibo. If not, see
. */ #}
{% trans "Dashboard" %}
{% set countViewable = currentUser.featureEnabledCount(["schedule.view", "daypart.view"]) %} {% set groupElementClass = (countViewable > 1) ? 'dropdown-item' : 'nav-link' %} {% if countViewable > 0 %} {% if countViewable > 1 %}
{% trans "Schedule" %}
{% else %}
{% endif %} {% if currentUser.featureEnabled("schedule.view") %}
{% if countViewable > 1 %}{% trans "Schedule" %}{% else %}{% trans "Schedule" %}{% endif %}
{% endif %} {% if currentUser.featureEnabled("daypart.view") %}
{% trans "Dayparting" %}
{% endif %} {% if countViewable > 1 %}
{% endif %}
{% endif %} {% set countViewable = currentUser.featureEnabledCount(["campaign.view", "layout.view", "template.view", "resolution.view"]) %} {% set groupElementClass = (countViewable > 1) ? 'dropdown-item' : 'nav-link' %} {% if countViewable > 0 %} {% if countViewable > 1 %}
{% trans "Design" %}
{% else %}
{% endif %} {% if currentUser.featureEnabled("campaign.view") %}
{% trans "Campaigns" %}
{% endif %} {% if currentUser.featureEnabled("layout.view") %}
{% trans "Layouts" %}
{% endif %} {% if currentUser.featureEnabled("template.view") %}
{% trans "Templates" %}
{% endif %} {% if currentUser.featureEnabled("resolution.view") %}
{% trans "Resolutions" %}
{% endif %} {% if countViewable > 1 %}
{% endif %}
{% endif %} {% set countViewable = currentUser.featureEnabledCount(["library.view", "playlist.view", "dataset.view"]) %} {% set groupElementClass = (countViewable > 1) ? 'dropdown-item' : 'nav-link' %} {% if countViewable > 0 %} {% if countViewable > 1 %}
{% trans "Library" %}
{% else %}
{% endif %} {% if currentUser.featureEnabled("playlist.view") %}
{% trans "Playlists" %}
{% endif %} {% if currentUser.featureEnabled("library.view") %}
{% trans "Media" %}
{% endif %} {% if currentUser.featureEnabled("dataset.view") %}
{% trans "DataSets" %}
{% endif %} {% if countViewable > 1 %}
{% endif %}
{% endif %} {% set countViewable = currentUser.featureEnabledCount(["displays.view", "displaygroup.view", "displayprofile.view", "playersoftware.view", "command.view"]) %} {% set groupElementClass = (countViewable > 1) ? 'dropdown-item' : 'nav-link' %} {% if countViewable > 0 %} {% if countViewable > 1 %}
{% trans "Displays" %}
{% else %}
{% endif %} {% if currentUser.featureEnabled("displays.view") %}
{% trans "Displays" %}
{% endif %} {% if currentUser.featureEnabled("displaygroup.view") %}
{% trans "Display Groups" %}
{% endif %} {% if currentUser.featureEnabled("displayprofile.view") %}
{% trans "Display Settings" %}
{% endif %} {% if currentUser.featureEnabled("playersoftware.view") %}
{% trans "Player Versions" %}
{% endif %} {% if currentUser.featureEnabled("command.view") %}
{% trans "Commands" %}
{% endif %} {% if countViewable > 1 %}
{% endif %}
{% endif %} {% if currentUser.featureEnabled("users.view") and (currentUser.isGroupAdmin() or currentUser.isSuperAdmin()) %} {% set userMenuViewable = true %} {% else %} {% set userMenuViewable = false %} {% endif %} {% set countViewable = currentUser.featureEnabledCount(["usergroup.view", "module.view", "transition.view", "task.view"]) %} {% set groupElementClass = (countViewable > 1 or (countViewable == 1 and userMenuViewable)) ? 'dropdown-item' : 'nav-link' %} {% if countViewable > 0 or userMenuViewable %} {% if countViewable > 1 or (countViewable == 1 and userMenuViewable) %}
{% trans "Administration" %}
{% else %}
{% endif %} {% if userMenuViewable %}
{% trans "Users" %}
{% endif %} {% if currentUser.featureEnabled("usergroup.view") %}
{% trans "User Groups" %}
{% endif %} {% if currentUser.isSuperAdmin() %}
{% trans "Settings" %}
{% endif %} {% if currentUser.isSuperAdmin() %}
{% trans "Applications" %}
{% endif %} {% if currentUser.featureEnabled("module.view") %}
{% trans "Modules" %}
{% endif %} {% if currentUser.featureEnabled("transition.view") %}
{% trans "Transitions" %}
{% endif %} {% if currentUser.featureEnabled("task.view") %}
{% trans "Tasks" %}
{% endif %} {% if currentUser.featureEnabled("tag.view") %}
{% trans "Tags" %}
{% endif %} {% if countViewable > 1 or (countViewable == 1 and userMenuViewable) %}
{% endif %}
{% endif %} {% set countViewable = currentUser.featureEnabledCount(["report.view", "report.scheduling", "report.saving"]) %} {% set groupElementClass = (countViewable > 1) ? 'dropdown-item' : 'nav-link' %} {% if countViewable > 0 %} {% if countViewable > 1 %}
{% trans "Reporting" %}
{% else %}
{% endif %} {% if currentUser.featureEnabled("report.view") %}
{% trans "All Reports" %}
{% endif %} {% if currentUser.featureEnabled("report.scheduling") %}
{% trans "Report Schedules" %}
{% endif %} {% if currentUser.featureEnabled("report.saving") %}
{% trans "Saved Reports" %}
{% endif %} {% if countViewable > 1 %}
{% endif %}
{% endif %} {% set countViewable = currentUser.featureEnabledCount(["log.view", "sessions.view", "auditlog.view", "fault.view", "help.view"]) %} {% set groupElementClass = (countViewable > 1) ? 'dropdown-item' : 'nav-link' %} {% if countViewable > 0 %} {% if countViewable > 1 %}
{% trans "Advanced" %}
{% else %}
{% endif %} {% if currentUser.featureEnabled("log.view") %}
{% trans "Log" %}
{% endif %} {% if currentUser.featureEnabled("sessions.view") %}
{% trans "Sessions" %}
{% endif %} {% if currentUser.featureEnabled("auditlog.view") %}
{% trans "Audit Trail" %}
{% endif %} {% if currentUser.featureEnabled("fault.view") %}
{% trans "Report Fault" %}
{% endif %} {% if currentUser.featureEnabled("help.view") %}
{% trans "Help Links" %}
{% endif %} {% if countViewable > 1 %}
{% endif %}
{% endif %}