@uportal/app-framework
Version:
Application Framework for uPortal
55 lines (50 loc) • 2.43 kB
HTML
<!--
Licensed to Apereo under one or more contributor license
agreements. See the NOTICE file distributed with this work
for additional information regarding copyright ownership.
Apereo licenses this file to you under the Apache License,
Version 2.0 (the "License"); you may not use this file
except in compliance with the License. You may obtain a
copy of the License at the following location:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<!-- NOTIFICATION CONTENT -->
<div class="md-list-item-text"
layout="row"
layout-align="start center"
layout-xs="column"
layout-align-xs="center start">
<!-- Notification text -->
<div layout="column" layout-align="center start" flex-gt-xs="70">
<div class="notification__priority-message" ng-if="notification.priority === 'high'">
<md-icon class="md-warn">priority_high</md-icon>
<span>High priority</span>
</div>
<div>{{ notification.title }}</div>
</div>
<!-- Notification buttons -->
<div ng-if="notification.moreInfoButton || notification.actionButton" class="notification-buttons" flex-gt-xs="30" layout="row" layout-align="end center">
<md-button class="md-raised md-accent"
ng-href="{{ notification.actionButton.url }}"
ng-if="notification.actionButton && notification.actionButton.url"
ng-click="pushGAEvent('notifications page', 'take action', notification.actionButton.url)"
target="_blank"
rel="noopener noreferrer">
{{ notification.actionButton.label }}
</md-button>
<md-button class="md-raised md-default"
ng-href="{{ notification.moreInfoButton.url }}"
ng-if="notification.moreInfoButton && notification.moreInfoButton.url"
ng-click="pushGAEvent('notifications page', 'more info', notification.moreInfoButton.url)"
target="_blank"
rel="noopener noreferrer">
{{ notification.moreInfoButton.label }}
</md-button>
</div>
</div>