Skip to content

c3se/ood_c3se_plugins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alvis

Open OnDemand (dashboard) Plugins @ C3SE

This repo contains local plugins used at C3SE. This repo organizes our changes to the dashboard app using plugins which are available since OOD 4.0.

List of plugins

  • brand: logos and branding;
  • diskquota: home and project quota widget pages;
  • projinfo: project usage page;
  • metrics: metrics on active jobs and dashboard;
  • lmod: lmod module explorer;

General setup

Extra UI elements are registered as widgets which can be used in the ood config, e.g. in ondemand.d/customizations.yml:

  dashboard_layout:
    rows:
+     - columns:
+       - width: 6
+         widgets:
+           - alvis_logo_widget
+           - diskquota_warning
        - width: 6
          widgets:
            - pinned_apps

this adds an extra row with the corresponding widgets.

To display some information as a dedicated page, create a custom page and point a navigation bar element to it.

  nav_bar:
    - title: "Files"
      links:
        - apps: "sys/files"
+       - title: "Check my quota"
+         page: "diskquota"
+         icon: "fa://pie-chart"
    - clusters
    - interactive apps
    - my interactive sessions
+ custom_pages:
+   diskquota:
+     rows:
+       - columns:
+         - width: 12
+           widgets:
+             - "diskquota_page"

The helper functions needed in those view can usually be implemented in the lib sub-folder of each plugin. If a function in an existing module of the dashboard is to be modified, one can implement that as an override with an initializer; see metrics/initializers/active_jobs_helper.rb.

Credits

This repo is based on several separate repos. Prior to the adaptation of 4.x-style plugin setup, each functionality is provided as a passenger app or dashboard modification. These works are mostly done by Linus Nilsson and Arvid Agne at UPPMAX with misc fixes by staff at C3SE.

The migration and rearrangement of plugins are mostly done by Yunqi Shao at C3SE, inspired by HMDC's demonstration at GOOD25.

=======

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors