Skip to content

Commit

Permalink
feat: display deprecation messages better (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
alicejli committed Jun 3, 2021
1 parent 2c11678 commit def7b82
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 21 deletions.
21 changes: 0 additions & 21 deletions tmpl/details.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -104,27 +104,6 @@
</dd>
<?js } ?>

<?js if (data.deprecated) { ?>
<dt class="important tag-deprecated">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 } ?>
<br>
<?js } ?>

<?js if (data.author && author.length) {?>
<dt class="tag-author">Author:</dt>
<dd class="tag-author">
Expand Down
7 changes: 7 additions & 0 deletions tmpl/method.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@
</ul>
<?js } ?>

<?js if (data.deprecated) { ?>
<div class="important tag-deprecated">Deprecated:
<?js= data.deprecated ?>
</div>
<br>
<?js } ?>

<?js if (data.params && params.length) { ?>
<h5>Parameters:</h5>
<?js= this.partial('params.tmpl', params) ?>
Expand Down

0 comments on commit def7b82

Please sign in to comment.