Use NetBox's generic object template for detail views

Aperta
#231 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
57/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
9
Fork
0
Merge medio
18h 59m
PR unite (30g)
93

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di netbox-community/netbox-scripts

Tutte le issue di netbox-community/netbox-scripts

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.