MOBILE-2430 mainmenu: Change ionic icon by graduation cap
parent
482230a472
commit
6c34dcbd89
|
@ -11,7 +11,7 @@
|
|||
<ion-card>
|
||||
<ion-card-content>
|
||||
<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>
|
||||
</ion-card-title>
|
||||
<ion-item text-wrap>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<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">
|
||||
<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>
|
||||
<p>{{ event.timestart | coreToLocaleString }}</p>
|
||||
</a>
|
||||
|
|
|
@ -24,11 +24,11 @@ export class AddonCalendarHelperProvider {
|
|||
protected logger;
|
||||
|
||||
protected EVENTICONS = {
|
||||
course: 'ionic',
|
||||
course: 'fa-university',
|
||||
group: 'people',
|
||||
site: 'globe',
|
||||
user: 'person',
|
||||
category: 'albums'
|
||||
category: 'fa-cubes'
|
||||
};
|
||||
|
||||
constructor(logger: CoreLoggerProvider, private courseProvider: CoreCourseProvider) {
|
||||
|
|
|
@ -61,7 +61,7 @@ export class CoreCoursesMainMenuHandler implements CoreMainMenuHandler {
|
|||
};
|
||||
} else {
|
||||
return {
|
||||
icon: 'ionic',
|
||||
icon: 'fa-graduation-cap',
|
||||
title: 'core.courses.mycourses',
|
||||
page: 'CoreCoursesMyCoursesPage',
|
||||
class: 'core-mycourses-handler'
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
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()
|
||||
export class CoreSiteHomeMainMenuHandler implements CoreMainMenuHandler {
|
||||
name = 'CoreSiteHome';
|
||||
priority = 1000;
|
||||
priority = 1200;
|
||||
isOverviewEnabled: boolean;
|
||||
|
||||
constructor(private siteHomeProvider: CoreSiteHomeProvider, private myOverviewProvider: CoreCoursesMyOverviewProvider) { }
|
||||
|
|
Loading…
Reference in New Issue