← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1401332] [NEW] Missing step in the building a dashboard tutorial

 

Public bug reported:

http://docs.openstack.org/developer/horizon/topics/tutorial.html

On the tutorial page
----------------------------
Open the index.html file in the mydashboard/mypanel/templates/mypanel directory, the auto-generated code is like the following:

{% extends 'mydashboard/base.html' %}
{% load i18n %}
{% block title %}{% trans "Mypanel" %}{% endblock %}

{% block page_header %}
    {% include "horizon/common/_page_header.html" with title=_("Mypanel") %}
{% endblock page_header %}

{% block mydashboard_main %}
{% endblock %}
----------------------------

Acutally, the generated index.html starts with:
{% extends 'base.html' %}

If you don't change this, the mydashboard_main block is never included,
and the new instance table added in the tutorial is never shown, causing
confusion for learners. If you *cut and paste* the tutorial index.html,
it will work, but if you follow the steps, the new panel will not work.

I think the tutorial is missing a step to edit the "extends" portion of
the template.

** Affects: horizon
     Importance: Undecided
     Assignee: Tyr Johanson (tyr-6)
         Status: New

** Changed in: horizon
     Assignee: (unassigned) => Tyr Johanson (tyr-6)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1401332

Title:
  Missing step in the building a dashboard tutorial

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  http://docs.openstack.org/developer/horizon/topics/tutorial.html

  On the tutorial page
  ----------------------------
  Open the index.html file in the mydashboard/mypanel/templates/mypanel directory, the auto-generated code is like the following:

  {% extends 'mydashboard/base.html' %}
  {% load i18n %}
  {% block title %}{% trans "Mypanel" %}{% endblock %}

  {% block page_header %}
      {% include "horizon/common/_page_header.html" with title=_("Mypanel") %}
  {% endblock page_header %}

  {% block mydashboard_main %}
  {% endblock %}
  ----------------------------

  Acutally, the generated index.html starts with:
  {% extends 'base.html' %}

  If you don't change this, the mydashboard_main block is never
  included, and the new instance table added in the tutorial is never
  shown, causing confusion for learners. If you *cut and paste* the
  tutorial index.html, it will work, but if you follow the steps, the
  new panel will not work.

  I think the tutorial is missing a step to edit the "extends" portion
  of the template.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1401332/+subscriptions


Follow ups

References