Project

General

Profile

« Previous | Next » 

Revision 60203

[Monitor Dashboard|Trunk]

- package.json: clean up citation.js + wikidata
- Admin tools:
remove components- use directly library components
- Properties: updates for helptexts

View differences:

app.component.ts
247 247
        this.userMenuItems.push(new MenuItem("", "Manage profiles",
248 248
          "", "/admin", false, [], [], {}));
249 249
      }
250
      if(Session.isPortalAdministrator(this.user) ) {
251
        this.userMenuItems.push( new MenuItem("adminOptions", "Super Admin options","", "/admin-tools/portals", false, [], [], {}));
252
        this.userMenuItems.push(new MenuItem("monitorOptions", "Monitor portal options","", "/admin-tools/pages", false, [], [], {communityId: 'monitor'}));
253

  
254
      }
250 255
      this.userMenuItems.push(new MenuItem("", "User information", "", "/user-info", false, [], [], {}));
251 256
    }
252 257
    if (this.stakeholder) {
......
327 332
        this.adminMenuItems.push(new MenuItem("indicators", "Indicators", "", "/admin/" + this.stakeholder.alias + '/indicators', false, [], [], {}, "<i uk-icon=\"image\"></i>"));
328 333
        this.adminMenuItems.push(new MenuItem("users", "Users", "", "/admin/" + this.stakeholder.alias + "/users", false, [], [], {}, "<i uk-icon=\"users\"></i>"));
329 334
        if(Session.isPortalAdministrator(this.user) ) {
330
          let monitorOptions = new MenuItem("monitorOptions", "Monitor Options", "", "", false, [], [], {});
331
          monitorOptions.items.push(new MenuItem("pages", "Pages", "", "/admin-tools/" + this.stakeholder.alias +  "/pages", false, [], [], {communityId:this.stakeholder.alias}));
332
          monitorOptions.items.push(new MenuItem("entities", "Entities", "","/admin-tools/" + this.stakeholder.alias +  "/entities", false, [], [], {communityId:this.stakeholder.alias}));
333
          // monitorOptions.items.push(new MenuItem("classes", "Class help texts", "","/admin-tools/" + this.stakeholder.alias +  "/classContents", false, [], [], {}));
334
          monitorOptions.items.push(new MenuItem("helptexts", "Help texts", "","/admin-tools/" + this.stakeholder.alias +  "/helptexts", false, [], [], {communityId:this.stakeholder.alias}));
335
          this.adminMenuItems.push(monitorOptions);
335
          this.adminMenuItems.push(new MenuItem("monitorOptions", "Pages & Entities", "", "/admin-tools/" + this.stakeholder.alias +  "/pages", false, [], [],  {communityId:this.stakeholder.alias}));
336 336
        }
337 337
        this.specialSideBarMenuItem = new MenuItem("back", "Manage profiles", "", "/admin", false, [], null, {});
338 338
        this.specialSideBarMenuItem.icon = '<span class="uk-icon-button small uk-icon uk-button-secondary">' + arrow_left.data + '</span>'; // '<span class="uk-icon-button uk-icon portal-button  " uk-icon="chevron-left"></span>';
......
379 379
        this.adminMenuItems = [];
380 380
        this.specialSideBarMenuItem = null;
381 381
        this.adminMenuItems.push(new MenuItem("stakeholders", "Manage profiles", "", "/admin", false, [], [], {}, "<i uk-icon=\"cog\"></i>"));
382
       if(Session.isPortalAdministrator(this.user) ) {
383
         let adminOptions = new MenuItem("adminOptions", "Admin Options", "", "", false, [], [], {})
384
         adminOptions.items.push(new MenuItem("pages", "Pages", "", "/admin-tools/pages", false, [], [], {}));
385
         adminOptions.items.push(new MenuItem("portals", "Portals", "", "/admin-tools/portals", false, [], [], {}));
386
         adminOptions.items.push(new MenuItem("entities", "Entities", "", "/admin-tools/entities", false, [], [], {}));
387
         // adminOptions.items.push(new MenuItem("classes", "Class help texts", "", "/admin-tools/classes", false, [], [], {}));
388
         this.adminMenuItems.push(adminOptions);
389
         let monitorOptions = new MenuItem("monitorOptions", "Monitor Options", "", "", false, [], [], {});
390
         monitorOptions.items.push(new MenuItem("pages", "Pages", "", "/admin-tools/pages", false, [], [], {communityId: 'monitor'}));
391
         monitorOptions.items.push(new MenuItem("entities", "Entities", "", "/admin-tools/entities", false, [], [], {communityId: 'monitor'}));
392
         // monitorOptions.items.push(new MenuItem("classes", "Class help texts", "", "/admin-tools/classContents", false, [], [], {communityId: 'monitor'}));
393
         monitorOptions.items.push(new MenuItem("helptexts", "Help texts", "", "/admin-tools/helptexts", false, [], [], {communityId: 'monitor'}));
394
         this.adminMenuItems.push(monitorOptions);
395
       }
382
//        if(Session.isPortalAdministrator(this.user) ) {
383
//          let adminOptions = new MenuItem("adminOptions", "Admin Options","", "/admin-tools/admin-pages", false, [], [], {});
384
// /*         adminOptions.items.push(new MenuItem("pages", "Pages", "", "/admin-tools/pages", false, [], [], {}));
385
//          adminOptions.items.push(new MenuItem("portals", "Portals", "", "/admin-tools/portals", false, [], [], {}));
386
//          adminOptions.items.push(new MenuItem("entities", "Entities", "", "/admin-tools/entities", false, [], [], {}));
387
//          // adminOptions.items.push(new MenuItem("classes", "Class help texts", "", "/admin-tools/classes", false, [], [], {}));*/
388
//          this.adminMenuItems.push(adminOptions);
389
//          let monitorOptions = new MenuItem("monitorOptions", "Monitor Options","", "/admin-tools/admin-pages", false, [], [], {communityId: 'monitor'});
390
//         /* monitorOptions.items.push(new MenuItem("pages", "Pages", "", "/admin-tools/pages", false, [], [], {communityId: 'monitor'}));
391
//          monitorOptions.items.push(new MenuItem("entities", "Entities", "", "/admin-tools/entities", false, [], [], {communityId: 'monitor'}));
392
//          // monitorOptions.items.push(new MenuItem("classes", "Class help texts", "", "/admin-tools/classContents", false, [], [], {communityId: 'monitor'}));
393
//          monitorOptions.items.push(new MenuItem("helptexts", "Help texts", "", "/admin-tools/helptexts", false, [], [], {communityId: 'monitor'}));*/
394
//          this.adminMenuItems.push(monitorOptions);
395
//        }
396 396
        
397 397
      }
398 398
    }

Also available in: Unified diff