MOBILE-2430 mainmenu: Change ionic icon by graduation cap
parent
482230a472
commit
6c34dcbd89
|
@ -11,7 +11,7 @@
|
||||||
<ion-card>
|
<ion-card>
|
||||||
<ion-card-content>
|
<ion-card-content>
|
||||||
<ion-card-title text-wrap>
|
<ion-card-title text-wrap>
|
||||||
<ion-icon *ngIf="!event.moduleIcon" name="{{event.icon}}" item-start></ion-icon>
|
<core-icon *ngIf="event.icon && !event.moduleIcon" [name]="event.icon" item-start></core-icon>
|
||||||
<core-format-text [text]="event.name"></core-format-text>
|
<core-format-text [text]="event.name"></core-format-text>
|
||||||
</ion-card-title>
|
</ion-card-title>
|
||||||
<ion-item text-wrap>
|
<ion-item text-wrap>
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
<ion-list *ngIf="filteredEvents && filteredEvents.length" no-margin>
|
<ion-list *ngIf="filteredEvents && filteredEvents.length" no-margin>
|
||||||
<a ion-item text-wrap *ngFor="let event of filteredEvents" [title]="event.name" (click)="gotoEvent(event.id)" [class.core-split-item-selected]="event.id == eventId">
|
<a ion-item text-wrap *ngFor="let event of filteredEvents" [title]="event.name" (click)="gotoEvent(event.id)" [class.core-split-item-selected]="event.id == eventId">
|
||||||
<img *ngIf="event.moduleIcon" src="{{event.moduleIcon}}" item-start class="core-module-icon">
|
<img *ngIf="event.moduleIcon" src="{{event.moduleIcon}}" item-start class="core-module-icon">
|
||||||
<ion-icon *ngIf="!event.moduleIcon" name="{{event.icon}}" item-start></ion-icon>
|
<core-icon *ngIf="event.icon && !event.moduleIcon" [name]="event.icon" item-start></core-icon>
|
||||||
<h2><core-format-text [text]="event.name"></core-format-text></h2>
|
<h2><core-format-text [text]="event.name"></core-format-text></h2>
|
||||||
<p>{{ event.timestart | coreToLocaleString }}</p>
|
<p>{{ event.timestart | coreToLocaleString }}</p>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -24,11 +24,11 @@ export class AddonCalendarHelperProvider {
|
||||||
protected logger;
|
protected logger;
|
||||||
|
|
||||||
protected EVENTICONS = {
|
protected EVENTICONS = {
|
||||||
course: 'ionic',
|
course: 'fa-university',
|
||||||
group: 'people',
|
group: 'people',
|
||||||
site: 'globe',
|
site: 'globe',
|
||||||
user: 'person',
|
user: 'person',
|
||||||
category: 'albums'
|
category: 'fa-cubes'
|
||||||
};
|
};
|
||||||
|
|
||||||
constructor(logger: CoreLoggerProvider, private courseProvider: CoreCourseProvider) {
|
constructor(logger: CoreLoggerProvider, private courseProvider: CoreCourseProvider) {
|
||||||
|
|
|
@ -61,7 +61,7 @@ export class CoreCoursesMainMenuHandler implements CoreMainMenuHandler {
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
return {
|
return {
|
||||||
icon: 'ionic',
|
icon: 'fa-graduation-cap',
|
||||||
title: 'core.courses.mycourses',
|
title: 'core.courses.mycourses',
|
||||||
page: 'CoreCoursesMyCoursesPage',
|
page: 'CoreCoursesMyCoursesPage',
|
||||||
class: 'core-mycourses-handler'
|
class: 'core-mycourses-handler'
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
page-core-mainmenu {
|
page-core-mainmenu {
|
||||||
|
.ion-md-fa-graduation-cap,
|
||||||
|
.ion-ios-fa-graduation-cap,
|
||||||
|
.ion-wp-fa-graduation-cap,
|
||||||
|
.ion-fa-graduation-cap {
|
||||||
|
@extend .fa-graduation-cap;
|
||||||
|
@extend .fa;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@ import { CoreCoursesMyOverviewProvider } from '@core/courses/providers/my-overvi
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class CoreSiteHomeMainMenuHandler implements CoreMainMenuHandler {
|
export class CoreSiteHomeMainMenuHandler implements CoreMainMenuHandler {
|
||||||
name = 'CoreSiteHome';
|
name = 'CoreSiteHome';
|
||||||
priority = 1000;
|
priority = 1200;
|
||||||
isOverviewEnabled: boolean;
|
isOverviewEnabled: boolean;
|
||||||
|
|
||||||
constructor(private siteHomeProvider: CoreSiteHomeProvider, private myOverviewProvider: CoreCoursesMyOverviewProvider) { }
|
constructor(private siteHomeProvider: CoreSiteHomeProvider, private myOverviewProvider: CoreCoursesMyOverviewProvider) { }
|
||||||
|
|
Loading…
Reference in New Issue