[OOD-users] Menus, theming

Franz, Eric efranz at osc.edu
Fri Sep 1 11:11:53 EDT 2017


Shawn,

>     1) Is it possible to create new top level menus on the homepage, for example one called Report.

Yes. Create a custom initializer file under the dashboard app called config/initializers/ood.rb and add this line:

    NavConfig.categories << "Reports"

This will make “Reports” a top level menu which will appear if any apps have been deployed to a directory under /var/www/ood/apps/sys whose manifest.yml contains:

    category: Reports

NavConfig.categories is an array that acts both as a sort order for the top level menus of apps and a whitelist of which apps will appear in the menu. We’ve discussed internally removing the whitelist so a top level menu would be generated for any app with a category in the manifest. I don’t believe the whitelist it offers much value anymore, but there is still a question of how to control the order of the menu (Files, Jobs, Clusters, Interactive Apps is not ordered alphabetically.

If you want to split that menu up further, you can specify a “subcategory” in the manifest of the app and the apps with subcategories will be grouped together in the dropdown menu. 


>    2) What is the best way to output a page so it picks up the theming from the homepage so one doesn't have to duplicate all the work that went into the HTML, css.

What is your app written in? (node.js, ruby, etc.?) Also, are you okay with the look and feel of the other OOD apps like Active Jobs and My Jobs, or are you wanting to copy the Tufts specific branding you added to the dashboard to your custom OOD apps?

Thanks,
Eric

---
Eric Franz, Senior Web & Interface App Engineer
Ohio Supercomputer Center
An Ohio Technology Consortium (OH-TECH) Member
1224 Kinnear Road
Columbus, OH 43212
email: efranz at osc.edu
 

On 9/1/17, 3:32 AM, "OOD-users on behalf of Doughty, Shawn" <ood-users-bounces at lists.osc.edu on behalf of Shawn.Doughty at tufts.edu> wrote:

    Couple of miscellaneous questions
    1) Is it possible to create new top level menus on the homepage, for example one called Report.
    
    2) What is the best way to output a page so it picks up the theming from the homepage so one doesn't have to duplicate all the work that went into the HTML, css.
    
    
    
    
    --
    Shawn G. Doughty
    Senior Research Technology Specialist
    Research Storage Service Owner
    Research Technology (RT)
    Tufts Technology Services (TTS)
    XSEDE Campus Champion, Student Mentor, Region 7 Team
    
    16 Dearborn Road
    Somerville, MA 02144
    617-627-5462
    http://it.tufts.edu/
    _______________________________________________
    OOD-users mailing list
    OOD-users at lists.osc.edu
    https://lists.osu.edu/mailman/listinfo/ood-users
    



More information about the OOD-users mailing list