Project

General

Profile

Actions

Feature #13079

closed

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

Added by Tomáš Strachota over 8 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Plugin integration
Target version:
Difficulty:
Triaged:
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 2 (1 open1 closed)

Related to Foreman - Tracker #12507: Smart Proxy UX improvmentsNew11/17/2015

Actions
Related to Foreman - Feature #12716: As a foreman developer I'd like to have way of extending the data returned from smart proxy api.ClosedOndřej Pražák12/07/2015Actions
Actions #1

Updated by Tomáš Strachota over 8 years ago

Actions #2

Updated by Tomáš Strachota over 8 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
Actions #3

Updated by Lukas Zapletal over 8 years ago

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

Actions #4

Updated by Tomáš Strachota over 8 years ago

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

Actions #5

Updated by The Foreman Bot over 8 years ago

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

Updated by Ondřej Pražák over 8 years ago

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

Updated by Dominic Cleal over 8 years ago

  • Category set to Plugin integration
  • Translation missing: en.field_release set to 71
Actions

Also available in: Atom PDF