Use NetBox's generic object template for detail views

Đang mở
#231 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
57/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
9
Fork
0
Merge trung bình
18 giờ 59 phút
Pull request đã merge (30 ngày)
93

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của netbox-community/netbox-scripts

Tất cả issue của netbox-community/netbox-scripts

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.