<?js
var data = obj;
var self = this;
?>
<dl class="details">
    <?js
        var properties = data.properties;
        if (properties && properties.length && properties.forEach) {
    ?>

    <h5 class="subsection-title">Properties:</h5>

    <dl><?js= this.partial('properties.tmpl', properties) ?></dl>

    <?js } ?>

	<?js if (data.version) {?>
	<dt class="tag-version method-doc-label method-doc-details-label">Version:</dt>
	<dd class="tag-version">
		<ul class="dummy">
			<li><?js= version ?></li>
		</ul>
	</dd>
	<?js } ?>

	<?js if (data.since) {?>
	<dt class="tag-since method-doc-label method-doc-details-label">Since:</dt>
	<dd class="tag-since">
		<ul class="dummy">
			<li><?js= since ?></li>
		</ul>
	</dd>
	<?js } ?>

	<?js if (data.inherited && data.inherits) { ?>
	<dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
	<dd class="inherited-from">
		<ul class="dummy">
			<li>
				<?js= this.linkto(data.inherits, this.htmlsafe(data.inherits)) ?>
			</li>
		</ul>
	</dd>
	<?js } ?>

    <?js if (data.overrides) { ?>
    <dt class="tag-overrides">Overrides:</dt>
    <dd class="tag-overrides"><ul class="dummy"><li>
        <?js= this.linkto(data.overrides, this.htmlsafe(data.overrides)) ?>
    </li></ul></dd>
    <?js } ?>

    <?js if (data.implementations && data.implementations.length) { ?>
    <dt class="implementations">Implementations:</dt>
    <dd class="implementations"><ul>
        <?js data.implementations.forEach(function(impl) { ?>
            <li><?js= self.linkto(impl, self.htmlsafe(impl)) ?></li>
        <?js }); ?>
    </ul></dd>
    <?js } ?>

    <?js if (data.implements && data.implements.length) { ?>
    <dt class="implements">Implements:</dt>
    <dd class="implements"><ul>
        <?js data.implements.forEach(function(impl) { ?>
            <li><?js= self.linkto(impl, self.htmlsafe(impl)) ?></li>
        <?js }); ?>
    </ul></dd>
    <?js } ?>

    <?js if (data.mixes && data.mixes.length) { ?>
        <dt class="mixes">Mixes In:</dt>

        <dd class="mixes"><ul>
        <?js data.mixes.forEach(function(a) { ?>
            <li><?js= self.linkto(a, a) ?></li>
        <?js }); ?>
        </ul></dd>
    <?js } ?>

	<?js if (data.deprecated) { ?>
	<dt class="important tag-deprecated method-doc-label method-doc-details-label">Deprecated:</dt>
	<?js
            if (data.deprecated === true) { ?>
    <dd class="yes-def tag-deprecated">
        <ul class="dummy">
            <li>Yes</li>
        </ul>
    </dd>
    <?js }
            else { ?>
    <dd>
        <ul class="dummy">
            <li><?js= data.deprecated ?></li>
        </ul>
    </dd>
    <?js }
        ?>
    <?js } ?>

	<?js if (data.author && author.length) {?>
	<dt class="tag-author method-doc-label method-doc-details-label">Author:</dt>
	<dd class="tag-author">
		<ul><?js author.forEach(function(a) { ?>
			<li><?js= self.resolveAuthorLinks(a) ?></li>
			<?js }); ?></ul>
	</dd>
	<?js } ?>

	<?js if (data.copyright) {?>
	<dt class="tag-copyright method-doc-label method-doc-details-label">Copyright:</dt>
	<dd class="tag-copyright">
		<ul class="dummy">
			<li><?js= copyright ?></li>
		</ul>
	</dd>
	<?js } ?>

	<?js if (data.license) {?>
	<dt class="tag-license method-doc-label method-doc-details-label">License:</dt>
	<dd class="tag-license">
		<ul class="dummy">
			<li><?js= license ?></li>
		</ul>
	</dd>
	<?js } ?>

	<?js if (data.defaultvalue) {?>
	<dt class="tag-default method-doc-label method-doc-details-label">Default Value:</dt>
	<dd class="tag-default">
		<ul class="dummy">
			<li><?js= data.defaultvalue ?></li>
		</ul>
	</dd>
	<?js } ?>



	<?js if (data.meta && this.navOptions.outputSourceFiles) {?>
	<dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
	<dd class="tag-source">
		<ul class="dummy">
			<li>
				<?js= self.linkto(meta.shortpath) ?><?js if (this.navOptions.linenums) {?>,
				 <?js= self.linkto(meta.shortpath, 'line ' + meta.lineno, null, 'sunlight-1-line-' + meta.lineno) ?><?js } ?>
			</li>
		</ul>
	</dd>
	<?js } else if (data.meta && this.navOptions.outputSourcePath) { ?>
	<dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
	<dd class="tag-source">
		<?js= meta.shortpath ?>
	</dd>
	<?js } ?>

	<?js if (data.tutorials && tutorials.length) {?>
	<dt class="tag-tutorial method-doc-label method-doc-details-label">Tutorials:</dt>
	<dd class="tag-tutorial">
		<ul><?js tutorials.forEach(function(t) { ?>
			<li><?js= self.tutoriallink(t) ?></li>
			<?js }); ?></ul>
	</dd>
	<?js } ?>

	<?js if (data.see && see.length) {?>
	<dt class="tag-see method-doc-label method-doc-details-label">See:</dt>
	<dd class="tag-see">
		<ul><?js see.forEach(function(s) { ?>
			<li><?js= self.linkto(s) ?></li>
			<?js }); ?></ul>
	</dd>
	<?js } ?>

	<?js if (data.todo && todo.length) {?>
	<dt class="tag-todo method-doc-label method-doc-details-label">To Do:</dt>
	<dd class="tag-todo">
		<ul><?js todo.forEach(function(t) { ?>
			<li><?js= t ?></li>
			<?js }); ?></ul>
	</dd>
	<?js } ?>
</dl>
