@uportal/app-framework
Version:
Application Framework for uPortal
64 lines (59 loc) • 2.84 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.
-->
<frame-page app-title="Settings"
app-icon="fa-gears"
page-title="Settings"
white-background="true"
class="user-settings-page">
<md-content layout-padding>
<div layout="column">
<p ng-hide="kvEnabled">No settings for you to set at this time.</p>
<h4 class="md-subhead" ng-if="kvEnabled">Reset Zone<br>
<small>Reset various features to their default states.</small>
</h4>
<div ng-if="kvEnabled" layout="column" layout-align="center start">
<!-- RESET MESSAGES -->
<div layout-xs="column" layout-align-xs="center start" layout="row" layout-align="start center">
<md-button class="md-primary md-raised"
ng-click="resetMessages()"
aria-label="reset seen notifications">
Reset {{ portal.theme.title }} messages
<i class="fa fa-spin fa-circle-o" ng-if="loadingResetMessages"></i>
</md-button>
<small>Click to see previously-dismissed notifications.</small>
</div>
<!-- RESET LAYOUT -->
<div layout-xs="column" layout-align-xs="center start" layout="row" layout-align="start center" ng-if="MISC_URLS.resetLayoutURL">
<md-button class="md-warn md-raised"
ng-href="{{MISC_URLS.resetLayoutURL}}"
aria-label="reset layout">
Reset layout
</md-button>
<small>Click to reset your portal layout.</small>
</div>
</div>
<h4 class="md-subhead">Reset In-Browser State<br>
<small>Clear in-browser session storage and local storage. This is perfectly safe and may cause some changes to take effect faster.</small>
</h4>
<div layout="column" layout-gt-xs="row">
<md-button class="md-primary md-raised" ng-click="resetAll()">
Reset All
</md-button>
</div>
</div>
</md-content>
</frame-page>