{% extends "base" %}
{% import "macros/display" as macros %}

{% block title %}{{ profile.name }} - {% endblock title %}
{% block meta %}
<meta name="og:title" content="{{profile.name}} ({{profile.pronoun_subject}}/{{profile.pronoun_object}}/{{profile.pronoun_possessive}}) - {{profile.id | pretty_id}}" />
<meta name="og:site_name" content="Doll.Tags" />
<meta name="og:description" content="&nbsp;" />
{% endblock meta %}
{% block main %}
<section class="raised profile">
	<header>
		<p class="ident">
			Tag ID <span class="id">{{profile.id | pretty_id}}</span><br />
			{% if profile.microchip_id %}
			Microchip ID <span class="id">{{profile.microchip_id}}</span>
			{% else %}
			Not microchipped
			{% endif %}
		</p>
		<p class="pronouns">
			<span class="pronoun_fragment">{{profile.pronoun_subject}}</span> /
			<span class="pronoun_fragment">{{profile.pronoun_object}}</span> /
			<span class="pronoun_fragment">{{profile.pronoun_possessive}}</span>
		</p>
	</header>
	<h2>{{profile.name}}</h2>

	<hr>
	<div class="split">
		<p>
			<span class="handler">Handler</span><br />
			<span class="handler-info">{{profile.handler_name}}</span>
		</p>
		{% if profile.handler_url %}
		<div>
			<p class="btn"><a href="{{profile.handler_url}}">Contact the handler</a></p>
		</div>
		{% endif %}
	</div>
</section>

{% if has_notable_traits or profile.description %}
<section>
	<div class="dual-fields">
		{% if has_notable_traits %}
		<div>
			<h2>Notable traits</h3>
				<ul>
					{% if profile.kind %}<li><span class="b">Kind:</span> {{profile.kind}}</li>{% endif %}
					{% if profile.breed %}<li><span class="b">Breed:</span> {{profile.breed}}</li>{% endif %}
					{% if profile.behaviour %}<li><span class="b">Behaviour:</span> {{profile.behaviour}}</li>{% endif
					%}
				</ul>

				{% if has_chassis_info %}
				<p>{{profile.chassis_type}}-type {{profile.chassis_color}} chassis, ID [<span
						class="id">{{profile.chassis_id}}</span>]</p>
				{% endif %}
		</div>
		{% endif %}
		{% if profile.description %}
		<div>
			<h2>Description</h3>

				<p>{{ profile.description | linebreaksbr | safe }}</p>
		</div>
		{% endif %}
	</div>
</section>
{% endif %}
{% endblock main %}
