芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/www/midiatech/views/authed-topbar.twig
{# /** * Copyright (C) 2019 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.countViewable(["/schedule", "/daypart"]) %} {% if countViewable > 0 %} {% if countViewable > 1 %}
{% trans "Schedule" %}
{% endif %} {% if currentUser.routeViewable("/schedule") %}
{% if countViewable > 1 %}{% trans "Schedule" %}{% else %}{% trans "Schedule" %}{% endif %}
{% endif %} {% if currentUser.routeViewable("/daypart") %}
{% trans "Dayparting" %}
{% endif %} {% if countViewable > 1 %}
{% endif %} {% endif %} {% set countViewable = currentUser.countViewable(["/campaign", "/layout", "/template", "/resolution"]) %} {% if countViewable > 0 %} {% if countViewable > 1 %}
{% trans "Design" %}
{% endif %} {% if currentUser.routeViewable("/campaign") %}
{% trans "Campaigns" %}
{% endif %} {% if currentUser.routeViewable("/layout") %}
{% trans "Layouts" %}
{% endif %} {% if currentUser.routeViewable("/template") %}
{% trans "Templates" %}
{% endif %} {% if currentUser.routeViewable("/resolution") %}
{% trans "Resolutions" %}
{% endif %} {% if countViewable > 1 %}
{% endif %} {% endif %} {% set countViewable = currentUser.countViewable(["/library", "/playlist", "/dataset"]) %} {% if countViewable > 0 %} {% if countViewable > 1 %}
{% trans "Library" %}
{% endif %} {% if currentUser.routeViewable("/playlist") %}
{% trans "Playlists" %}
{% endif %} {% if currentUser.routeViewable("/library") %}
{% trans "Media" %}
{% endif %} {% if currentUser.routeViewable("/dataset") %}
{% trans "DataSets" %}
{% endif %} {% if countViewable > 1 %}
{% endif %} {% endif %} {% set countViewable = currentUser.countViewable(["/display", "/displaygroup", "/stats", "/displayprofile"]) %} {% if countViewable > 0 %} {% if countViewable > 1 %}
{% trans "Displays" %}
{% endif %} {% if currentUser.routeViewable("/display") %}
{% trans "Displays" %}
{% endif %} {% if currentUser.routeViewable("/displaygroup") %}
{% trans "Display Groups" %}
{% endif %} {% if currentUser.routeViewable("/displayprofile") %}
{% trans "Display Settings" %}
{% endif %} {% if currentUser.routeViewable("/playersoftware") %}
{% trans "Player Versions" %}
{% endif %} {% if currentUser.routeViewable("/command") %}
{% trans "Commands" %}
{% endif %} {% if countViewable > 1 %}
{% endif %} {% endif %} {% if currentUser.routeViewable("/user") and (currentUser.isGroupAdmin() or currentUser.isSuperAdmin()) %} {% set userMenuViewable = true %} {% else %} {% set userMenuViewable = false %} {% endif %} {% set countViewable = currentUser.countViewable(["/usergroup", "/admin", "/application", "/module", "/transition"]) %} {% if countViewable > 0 or userMenuViewable %} {% if countViewable > 1 or (countViewable == 1 and userMenuViewable) %}
{% trans "Administration" %}
{% endif %} {% if userMenuViewable %}
{% trans "Users" %}
{% endif %} {% if currentUser.routeViewable("/group") %}
{% trans "User Groups" %}
{% endif %} {% if currentUser.routeViewable("/admin") %}
{% trans "Settings" %}
{% endif %} {% if currentUser.routeViewable("/application") %}
{% trans "Applications" %}
{% endif %} {% if currentUser.routeViewable("/module") %}
{% trans "Modules" %}
{% endif %} {% if currentUser.routeViewable("/transition") %}
{% trans "Transitions" %}
{% endif %} {% if currentUser.routeViewable("/task") %}
{% trans "Tasks" %}
{% endif %} {% if currentUser.isSuperAdmin() %}
{% trans "Tags" %}
{% endif %} {% if countViewable > 1 or (countViewable == 1 and userMenuViewable) %}
{% endif %} {% endif %} {% if currentUser.routeViewable("/stats") or currentUser.routeViewable("/report") %}
{% trans "Reporting" %}
{% if currentUser.routeViewable("/stats") %}
{% trans "Display Statistics" %}
{% endif %} {% if currentUser.routeViewable("/stats") %}
{% trans "Proof of Play" %}
{% endif %} {% if currentUser.routeViewable("/stats") %}
{% trans "Library Usage" %}
{% endif %} {% if currentUser.routeViewable("/report") %}
{% trans "Report Schedules" %}
{% endif %} {% if currentUser.routeViewable("/report") %}
{% trans "Saved Reports" %}
{% endif %}
{% endif %} {% set countViewable = currentUser.countViewable(["/log", "/sessions", "/auditlog", "/fault", "/help"]) %} {% if countViewable > 0 %} {% if countViewable > 1 %}
{% trans "Advanced" %}
{% endif %} {% if currentUser.routeViewable("/log") %}
{% trans "Log" %}
{% endif %} {% if currentUser.routeViewable("/sessions") %}
{% trans "Sessions" %}
{% endif %} {% if currentUser.routeViewable("/auditlog") %}
{% trans "Audit Trail" %}
{% endif %} {% if currentUser.routeViewable("/fault") %}
{% trans "Report Fault" %}
{% endif %} {% if currentUser.routeViewable("/help") %}
{% trans "Help Links" %}
{% endif %} {% if countViewable > 1 %}
{% endif %} {% endif %}