Skip to content

Main menu #14

Description

@nickopris

The main menu has been hardcoded in many templates. This is wrong.

The ai_dashboard custom module introduces templates for various endpoints where the main menu is hardcoded like this:

  <!-- Top Navigation -->
  <div class="dashboard-navigation">
    <div class="nav-links">
      <a href="/ai-dashboard" class="nav-link">Dashboard</a>
      <a href="/ai-dashboard/calendar" class="nav-link{% if not is_organizational_view %} active{% endif %}">Calendar View</a>
      <a href="/ai-dashboard/calendar/organizational" class="nav-link{% if is_organizational_view %} active{% endif %}">Organizational View</a>
      <a href="/ai-dashboard/roadmap" class="nav-link">Roadmap</a>
      <a href="/ai-dashboard/priority-kanban" class="nav-link">Kanban</a>
      <a href="/ai-dashboard/projects" class="nav-link">Projects</a>
      <a href="/ai-dashboard/docs" class="nav-link">Docs</a>
    </div>
  </div>

When a module creates an endpoint which is supposed to have a link in the main menu then it should place it in the menu of the site and not hardcode it in templates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions