Return a (set) of dicts of help menu items, with name, priority, URL, target and onclick code.
(self)
| 20 | |
| 21 | class HelpModule(PgAdminModule): |
| 22 | def get_own_menuitems(self): |
| 23 | """Return a (set) of dicts of help menu items, with name, priority, |
| 24 | URL, target and onclick code.""" |
| 25 | return {'help_items': [ |
| 26 | MenuItem(name='mnu_quick_search_help', |
| 27 | label=gettext('Quick Search'), |
| 28 | priority=99, |
| 29 | target='pgadmin_quick_search_help', |
| 30 | icon='fa fa-question', |
| 31 | url='#'), |
| 32 | MenuItem(name='mnu_online_help', |
| 33 | label=gettext('Online Help'), |
| 34 | priority=100, |
| 35 | target='pgadmin_help', |
| 36 | icon='fa fa-question', |
| 37 | url=url_for('help.static', filename='index.html')), |
| 38 | |
| 39 | MenuItem(name='mnu_pgadmin_website', |
| 40 | label=gettext('pgAdmin Website'), |
| 41 | priority=200, |
| 42 | target='pgadmin_website', |
| 43 | icon='fa fa-external-link-alt', |
| 44 | url='https://www.pgadmin.org/'), |
| 45 | |
| 46 | MenuItem(name='mnu_postgresql_website', |
| 47 | label=gettext('PostgreSQL Website'), |
| 48 | priority=300, |
| 49 | target='postgres_website', |
| 50 | icon='fa fa-external-link-alt', |
| 51 | url='https://www.postgresql.org/')]} |
| 52 | |
| 53 | def register_preferences(self): |
| 54 | """ |