Skip to content

Closes: #19200 Add Virtual Chassis name to pane on Device View #19369

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renatoalmeidaoliveira
Copy link
Collaborator

Closes: #19200 Add Virtual Chassis name to pane on Device View

  • Added the Virtual Chassis information under the Device card.

Observations

When I added that data to the Virtual Chassis card, it looked very different from the general UI. I mean, users normally don't expect to see a device name in the card header.

If I add that information there to follow the usual behavior, I should add it as a clickable link. However, this would be redundant, considering the View Virtual Chassis link already present in that pane.

So, adding that information in the Device card next to the Rack information makes more sense to me.

@renatoalmeidaoliveira renatoalmeidaoliveira requested review from a team and jeremystretch and removed request for a team May 1, 2025 01:25
@renatoalmeidaoliveira
Copy link
Collaborator Author

image

@@ -26,6 +26,12 @@ <h2 class="card-header">{% trans "Device" %}</h2>
<th scope="row">{% trans "Location" %}</th>
<td>{% nested_tree object.location %}</td>
</tr>
{% if vc_members %}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be conditional on the value of object.virtual_chassis, rather than vc_members.

Comment on lines +30 to +33
<tr>
<th scope="row">{% trans "Virtual Chassis" %}</th>
<td>{{ object.virtual_chassis|linkify }}</td>
</tr>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember to indent code within {% if %} blocks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Virtual Chassis name to pane on Device View
2 participants