On my landing page (WebAuth Login), I have “powered by open OnDemand” at the bottom left of the footer, with “OnDemand version: v2.0.20” at the bottom right of the footer. Is that latter string the one you’re referring too? If so, that’s in
/var/www/ood/apps/sys/dashboard/app/views/layouts/_footer.html.erb. It’s not clear that you can override or suppress that without editing that file.
What I am referring to is on the form for the Basic Desktop (we modified bc_desktop a little), but it’s on all the applications, at the top of the form. The version is now included after the title attribute from the form.yml.erb is rendered.
[ric@ood ~]$ sudo find / -xdev -name form.yml.erb
comes up empty. I have a boatload of form.yml files though. A quick
rpm -ql ondemand-2.0.20-1.el7.x86_64
shows no form.yml.erb files, so I don’t have any idea where those came from at your site. Local git repo maybe?
here’s my one and only bc_desktop/form.yml
$ ls -ld /var/www/ood/apps/sys/bc_desktop/form.yml
-rw-r–r–. 1 root root 266 Dec 1 13:57 /var/www/ood/apps/sys/bc_desktop/form.yml
I don’t have a form.yml in /etc/ood for bc_desktop, just
$ ls -lR /etc/ood/config/apps/bc_desktop/
-rw-r–r–. 1 root rt-is-unix 1729 Dec 2 07:52 desktop.yml
drwxrwsr-x. 2 root rt-is-unix 24 Jul 28 2021 submit
-rw-r–r–. 1 root rt-is-unix 1148 Dec 2 07:52 desktop.erb
Yes, and I don’t find version: in any of my files, either. That’s why I was asking here, in the hope that someone on the list would know where in the Ruby code that is defined. Grepping for version: in our /opt/ood yielded many, many occurrences, but none looked particularly helpful. I suspect there is a file that gets rendered by the OnDemand application itself because it is occurring for all of our applications, not just one or two, and because it doesn’t seem to be in any file in the application directories.
I also note that under the Clusters menu now, we no longer have the text with the cluster name, instead we have
However, the contents of that _footer.html.erb don’t look like what is in our file.
That commit seems to point to this URL,
and a file called ondemand/app/views/layouts/_footer.html.erb, but when I look at the file listing at
I don’t see an ondemand/app directory, only one called ondemand/apps.
If I follow the path in the release_2.0 branch to the dashboard layouts, the _footer.html.erb there looks like what we have on our file system.
Sorry to be confused by all this, but I don’t know where in the installed RPM paths nor in the paths for the release_2.0 branch I would find the code comparable to what you cited. Would you mind pointing me to the installed location for that commit?
To close the loop in Discourse, if the application has a file called ‘VERSION’ at its root, you can put the word ‘unkown’ on its only line, restart the nginx web server (not httpd), and the version will no longer print as part of the application name. Just in case anyone wants to suppress this and reads this only on Discourse. Thanks, Jeff, and sorry for the extra noise from my confusions.