Use NetBox's generic object template for detail views

Abierto
#231 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
57/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
backend

Línea de trabajo

Start with the Script Project, Script File, Script, and migration run detail views and their templates. Compare how the views declare NetBox's generic object layout with the existing model-specific templates; keep the migration run template for its custom content and declare its breadcrumbs through the layout. Done when the redundant templates are removed, the intended views use the generic template, and rendered pages remain unchanged.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

app: scripts status: backlog type: housekeeping
Proposed Changes

Use generic/object.html directly for the Script Project, Script File and Script detail views, removing their redundant model-specific templates.

Declare the migration run's breadcrumbs through its layout while retaining the template for its custom content.

Justification

These detail views already use NetBox's declarative UI components, and their model-specific templates provide no additional functionality.

Using the generic object template directly reduces unnecessary template files, keeps the page definitions in their respective views and aligns the plugin with NetBox's existing conventions.

No changes to the rendered pages are intended.

Lenguaje dominante
Python
Estrellas
9
Forks
0
Merge medio
18 h 59 min
PR fusionados (30 d)
93

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de netbox-community/netbox-scripts

Todos los issues de netbox-community/netbox-scripts

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.