LocationBasedServices/mowesta/pipeline/head This commit looks good
Code base cleanup in styles.scss cityview icon display order map & log encapsulation
105 lines
5.1 KiB
HTML
105 lines
5.1 KiB
HTML
<mat-nav-list class="mat-typography">
|
|
<h3 class="fg-drawerTitles" style="margin-bottom: 0px; padding-left: 20px;font-weight: bold;" mat-subheader>{{res.strings('drawer_weather')}}</h3>
|
|
<mat-list-item>
|
|
<a mat-list-item [routerLink]="'/' + res.getLanguage() + '/weather/map'">
|
|
<mat-icon class="icon-button">map</mat-icon>
|
|
<span class="mat-button">{{ res.strings('weather_map_title') }}</span>
|
|
</a>
|
|
</mat-list-item>
|
|
<mat-list-item>
|
|
<a mat-list-item [routerLink]="'/' + res.getLanguage() + '/weather/cities'">
|
|
<mat-icon class="icon-button">location_city</mat-icon>
|
|
<span class="mat-button">{{ res.strings('cities_title') }}</span>
|
|
</a>
|
|
</mat-list-item>
|
|
<mat-list-item>
|
|
<a mat-list-item [routerLink]="'/' + res.getLanguage() + '/weather/stations'">
|
|
<mat-icon class="icon-button">toys</mat-icon>
|
|
<span class="mat-button">{{ res.strings('stations_title') }}</span>
|
|
</a>
|
|
</mat-list-item>
|
|
<mat-list-item>
|
|
<a mat-list-item [routerLink]="'/' + res.getLanguage() + '/weather/videos'">
|
|
<mat-icon class="icon-button">video_library</mat-icon>
|
|
<span class="mat-button">{{ res.strings('videos_title') }}</span>
|
|
</a>
|
|
</mat-list-item>
|
|
@if (user) {
|
|
<ng-container>
|
|
<mat-list-item>
|
|
<a mat-list-item [routerLink]="'/' + res.getLanguage() + '/user/favorites'">
|
|
<mat-icon class="icon-button">favorite</mat-icon>
|
|
<span class="mat-button">{{ res.strings('user_favorites_title') }}</span>
|
|
</a>
|
|
</mat-list-item>
|
|
<mat-list-item>
|
|
<a mat-list-item [routerLink]="'/' + res.getLanguage() + '/user/devices'">
|
|
<mat-icon class="icon-button">devices</mat-icon>
|
|
<span class="mat-button">{{ res.strings('user_devices_title') }}</span>
|
|
</a>
|
|
</mat-list-item>
|
|
</ng-container>
|
|
}
|
|
@if (admin) {
|
|
<ng-container >
|
|
<h3 class="fg-drawerTitles" style="margin-bottom: 0px; padding-left: 20px; padding-top: 40px; font-weight: bold;" mat-subheader>{{res.strings('drawer_management')}}</h3>
|
|
<mat-list-item>
|
|
<a mat-list-item [routerLink]="'/' + res.getLanguage() + '/manage/system'">
|
|
<mat-icon class="icon-button">equalizer</mat-icon>
|
|
<span class="mat-button">{{ res.strings('manage_system_title') }}</span>
|
|
</a>
|
|
</mat-list-item>
|
|
<mat-list-item>
|
|
<a mat-list-item [routerLink]="'/' + res.getLanguage() + '/manage/logs'">
|
|
<mat-icon class="icon-button">subject</mat-icon>
|
|
<span class="mat-button">{{ res.strings('manage_logs_title') }}</span>
|
|
</a>
|
|
</mat-list-item>
|
|
<mat-list-item>
|
|
<a mat-list-item [routerLink]="'/' + res.getLanguage() + '/manage/users'">
|
|
<mat-icon class="icon-button">people</mat-icon>
|
|
<span class="mat-button">{{ res.strings('manage_users_title') }}</span>
|
|
</a>
|
|
</mat-list-item>
|
|
<mat-list-item>
|
|
<a mat-list-item [routerLink]="'/' + res.getLanguage() + '/manage/measurements'">
|
|
<mat-icon class="icon-button">assessment</mat-icon>
|
|
<span class="mat-button">{{ res.strings('manage_measurements_map_title') }}</span>
|
|
</a>
|
|
</mat-list-item>
|
|
</ng-container>
|
|
}
|
|
<h3 class="fg-drawerTitles" style="margin-bottom: 0px; padding-left: 20px; padding-top: 40px; font-weight: bold;" mat-subheader>{{res.strings('drawer_account')}}</h3>
|
|
@if (user) {
|
|
<ng-container>
|
|
<mat-list-item>
|
|
<a mat-list-item [routerLink]="'/' + res.getLanguage() + '/user/account'">
|
|
<mat-icon class="icon-button">perm_identity</mat-icon>
|
|
<span class="mat-button">{{ res.strings('user_account_title') }}</span>
|
|
</a>
|
|
</mat-list-item>
|
|
<mat-list-item>
|
|
<a mat-list-item (click)="onLogout()">
|
|
<mat-icon class="icon-button">exit_to_app</mat-icon>
|
|
<span class="mat-button">{{ res.strings('button_logout') }}</span>
|
|
</a>
|
|
</mat-list-item>
|
|
</ng-container>
|
|
}@else{
|
|
<ng-container>
|
|
<mat-list-item>
|
|
<a mat-list-item [routerLink]="'/' + res.getLanguage() + '/login'">
|
|
<mat-icon class="icon-button">open_in_browser</mat-icon>
|
|
<span class="mat-button">{{ res.strings('login_login_title') }}</span>
|
|
</a>
|
|
</mat-list-item>
|
|
<mat-list-item>
|
|
<a mat-list-item [routerLink]="'/' + res.getLanguage() + '/register'">
|
|
<mat-icon class="icon-button">edit</mat-icon>
|
|
<span class="mat-button">{{ res.strings('register_title') }}</span>
|
|
</a>
|
|
</mat-list-item>
|
|
</ng-container>
|
|
}
|
|
</mat-nav-list>
|