MOBILE-3119 mainmenu: Show site name and URL on the menu
parent
0e9b3dcbe1
commit
932f00cf1b
|
@ -5,9 +5,11 @@
|
|||
</ion-header>
|
||||
<ion-content>
|
||||
<ion-list>
|
||||
<a ion-item core-user-link [userId]="siteInfo.userid">
|
||||
<a ion-item core-user-link [userId]="siteInfo.userid" text-wrap>
|
||||
<ion-avatar core-user-avatar [user]="siteInfo" item-start></ion-avatar>
|
||||
<p>{{siteInfo.fullname}}</p>
|
||||
<h2>{{siteInfo.fullname}}</h2>
|
||||
<ion-note>{{ siteName }}</ion-note>
|
||||
<ion-note>{{ siteUrl }}</ion-note>
|
||||
</a>
|
||||
<ion-item-divider></ion-item-divider>
|
||||
<ion-item text-center *ngIf="(!handlers || !handlers.length) && !handlersLoaded">
|
||||
|
|
|
@ -38,6 +38,7 @@ export class CoreMainMenuMorePage implements OnDestroy {
|
|||
showHelp: boolean;
|
||||
docsUrl: string;
|
||||
customItems: CoreMainMenuCustomItem[];
|
||||
siteUrl: string;
|
||||
|
||||
protected subscription;
|
||||
protected langObserver;
|
||||
|
@ -108,6 +109,7 @@ export class CoreMainMenuMorePage implements OnDestroy {
|
|||
|
||||
this.siteInfo = currentSite.getInfo();
|
||||
this.siteName = currentSite.getSiteName();
|
||||
this.siteUrl = currentSite.getURL();
|
||||
this.logoutLabel = 'core.mainmenu.' + (config && config.tool_mobile_forcelogout == '1' ? 'logout' : 'changesite');
|
||||
this.showWeb = !currentSite.isFeatureDisabled('CoreMainMenuDelegate_website');
|
||||
this.showHelp = !currentSite.isFeatureDisabled('CoreMainMenuDelegate_help');
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<p><a [href]="privacyPolicy" core-link auto-login="no">{{ privacyPolicy }}</a></p>
|
||||
</ion-item>
|
||||
</ion-item-group>
|
||||
<ion-item-group *ngIf="siteUrl">
|
||||
<ion-item-group *ngIf="siteUrl">
|
||||
<ion-item-divider text-wrap>
|
||||
{{ 'core.login.siteurl' | translate }}<ng-container *ngIf="isPrefixedUrl"> *</ng-container>
|
||||
</ion-item-divider>
|
||||
|
|
Loading…
Reference in New Issue