Project

General

Profile

Feature #13079

As a foreman developer I'd like my pagelets being displayed conditionally

Added by Tomáš Strachota almost 4 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Plugins-Engines
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

There's no possibility to display pagelets conditionally. Currently they can only be registered at the plugin load time and there's no option to hide them according to current context (eg. listing environments makes sense only for proxies with pulp node feature). It's problematic only for tab pagelets because they always render headings. Other pagelets can solve the problems by putting the condition in it's partial.


Related issues

Related to Foreman - Tracker #12507: Smart Proxy UX improvmentsNew2015-11-17

Related to Foreman - Feature #12716: As a foreman developer I'd like to have way of extending the data returned from smart proxy api.Closed2015-12-07

Associated revisions

Revision 208d9743 (diff)
Added by Ondřej Pražák almost 4 years ago

Fixes #13079 - Conditionally hide the pagelets

History

#1 Updated by Tomáš Strachota almost 4 years ago

#2 Updated by Tomáš Strachota almost 4 years ago

  • Related to Feature #12716: As a foreman developer I'd like to have way of extending the data returned from smart proxy api. added

#3 Updated by Lukas Zapletal almost 4 years ago

I don't understand, why don't you simply make the condition in the ERB fragment you are importing?

#4 Updated by Tomáš Strachota almost 4 years ago

That doesn't help you with tabs. The tab gets rendered regardless it's empty or not.

#5 Updated by The Foreman Bot almost 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/3063 added

#6 Updated by Ondřej Pražák almost 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#7 Updated by Dominic Cleal almost 4 years ago

  • Category set to Plugins-Engines
  • Legacy Backlogs Release (now unused) set to 71

Also available in: Atom PDF