{% extends "base_generic.html" %} {% load bleach_tags custom_tags extra_fields %} {% block pagetitle %}{{ primary_address }}{% endblock %} {% block content %}
Reusable Server

{{ primary_address }}

{% if staticserver.name %}{{ staticserver.name }}{% endif %} {{ staticserver.server_status }} {% for tag in staticserver.tags.names %}{{ tag|bleach }}{% endfor %}

Server Details

Hostname
{% if staticserver.name %}{{ staticserver.name }}{% else %}No hostname{% endif %}
Hosting provider
{{ staticserver.server_provider }}
Current status
{{ staticserver.server_status }}
Operator context
Additional information
{% if staticserver.description %} {{ staticserver.description|strip_empty_tags|bleach }} {% else %}

No additional information has been provided for this server.

{% endif %}
Network identity
Server addresses
{% for addy in staticserver.auxserveraddress_set.all %} {% endfor %}
IP Address Assignment
{{ staticserver.ip_address }} Primary address
{{ addy }} {% if addy.primary %}Primary address{% else %}Additional address{% endif %}

Server History

Entries are partially redacted when you cannot access the related client or project.

{% if staticserver.serverhistory_set.all %}
{% for checkout in staticserver.serverhistory_set.all %} {% endfor %}
Project Activity Type Server Role Execution Window Checked Out By Options
{% if checkout.project|has_access:request.user %} {{ checkout.project }} {% else %} REDACTED {% endif %} {{ checkout.activity_type }} {{ checkout.server_role }} {{ checkout.start_date|date:"DATE_FORMAT" }} - {{ checkout.end_date|date:"DATE_FORMAT" }} {% if checkout.operator %} {% if checkout.operator.name %} {{ checkout.operator.name }} ({{ checkout.operator.username }}) {% else %} Missing Full Name ({{ checkout.operator.username }}) {% endif %} {% else %} Unknown/Deleted user {% endif %} {% if checkout.project|has_access:request.user %}
{% endif %}
{% else %}

No project history yet

Check this server out to a project to begin its usage history.

{% endif %}

Server Notes

Add a Note
{% if staticserver.servernote_set.all %}
{% for note in staticserver.servernote_set.all reversed %}
{{ note.note|bleach }}
{% if request.user == note.operator or request.user|is_privileged %} {% endif %}
{% if note.operator %}{{ note.operator.username }}{% else %}Deleted user{% endif %}
{% endfor %}
{% else %}

No notes yet

Add a note when operators need context that does not belong in the server description.

{% endif %}
{% comment %} Extra Fields Tab {% endcomment %} {% if server_extra_fields_spec %}

Extra Fields

Jinja2 template syntax is not rendered in these previews because a project and report context is required.

Edit Extra Fields
{% for field_spec in server_extra_fields_spec %}
{{ field_spec.display_name }}
{% if field_spec.type == "rich_text" %}Rich Text{% else %}{{ field_spec.get_type_display }}{% endif %}
Template reference staticserver.extra_fields.{{ field_spec.internal_name }}
Current value
{% if field_spec.type == "rich_text" %} Formatted content is available in Preview. {% elif field_spec.type == "json" %} Structured content is available in View JSON. {% else %} {% include "user_extra_fields/field.html" with extra_fields=staticserver.extra_fields field_spec=field_spec preview_report=False %} {% endif %}
{% if field_spec.type == "rich_text" or field_spec.type == "json" %} {% endif %}
{% endfor %}
{% endif %}
{% endblock %} {% block collapse_js %} {{ block.super }} {% endblock %} {% block morescripts %} {% comment %} Include the reusable delete confirmation modal and related scripts {% endcomment %} {% include "confirm_delete_modal.html" %} {% comment %} Insert modals for RichText previews on extra fields {% endcomment %} {% if server_extra_fields_spec %} {% for field_spec in server_extra_fields_spec %} {% url 'shepherd:server_extra_field_json' staticserver.id field_spec.internal_name as extra_field_json_url %} {% include "user_extra_fields/extra_field_modal.html" with extra_fields=staticserver.extra_fields field_spec=field_spec lazy_json_url=extra_field_json_url preview_report=False %} {% endfor %} {% include "user_extra_fields/lazy_json_modal_script.html" %} {% endif %} {% endblock %}