Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to refresh the page header after edit horizon

i added extra link in the _header.html and settings.py, after restart apache2 service, still no change

/usr/share/openstack-dashboard/openstack_dashboard


/usr/share/openstack-dashboard/openstack_dashboard/templates/_header.html

<li><a href="{% url 'horizon:settings:user:index' %}">{% trans "Settings" %}</a></li>


{% if HORIZON_CONFIG.systemstatus_url %}
      <li><a href="{{ HORIZON_CONFIG.systemstatus_url }}" target="_new">{% trans "System Status" %}</a></li>
      {% endif %}
      {% if HORIZON_CONFIG.notification_url %}
      <li><a href="{{ HORIZON_CONFIG.notification_url }}" target="_new">{% trans "Notification" %}</a></li>
      {% endif %}
      {% if HORIZON_CONFIG.help_url %}
        <li><a href="{{ HORIZON_CONFIG.help_url }}" target="_new">{% trans "Help" %}</a></li>


/usr/share/openstack-dashboard/openstack_dashboard/settings.py

HORIZON_CONFIG = {
    'dashboards': ('project', 'admin', 'settings', 'router',),
    'default_dashboard': 'project',
    'user_home': 'openstack_dashboard.views.get_user_home',
    'ajax_queue_limit': 10,
    'auto_fade_alerts': {
        'delay': 3000,
        'fade_duration': 1500,
        'types': ['alert-success', 'alert-info']
    },
    'help_url': "http://docs.openstack.org",
    'systemstatus_url': "http://docs.openstack.org",
    'notification_url': "http://docs.openstack.org",
    'exceptions': {'recoverable': exceptions.RECOVERABLE,
                   'not_found': exceptions.NOT_FOUND,
                   'unauthorized': exceptions.UNAUTHORIZED},
}