Skip to content

Commit

Permalink
Merge pull request #1167 from EricFromCanada/master
Browse files Browse the repository at this point in the history
show all former formula names / cask tokens
  • Loading branch information
MikeMcQuaid authored May 12, 2024
2 parents 1e85dce + 4d4af64 commit 2668564
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 9 additions & 0 deletions _layouts/cask.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@

<p>Current version: <a href="{{ c.url | escape }}" title="Download for {{ c.token | escape }}">{{ c.version | escape }}</a></p>

{%- if c.old_tokens.size > 0 %}
<p class="oldnames">Former tokens:
{%- for oldtoken in c.old_tokens %}
<strong>{{ oldtoken | escape }}</strong>
{%- unless forloop.last -%}, {% endunless -%}
{%- endfor %}
</p>
{%- endif %}

{%- if c.depends_on.size > 0 -%}
{%- include casks.html tokens=c.depends_on.cask description="Depends on casks" -%}
{%- include formulae.html fnames=c.depends_on.formula description="Depends on" -%}
Expand Down
9 changes: 7 additions & 2 deletions _layouts/formula.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@
{%- endfor %}
</p>
{%- endif -%}
{%- if f.oldname %}
<p class="oldname">Formerly known as: <strong>{{ f.oldname | escape }}</strong></p>
{%- if f.oldnames.size > 0 %}
<p class="oldnames">Formerly known as:
{%- for oldname in f.oldnames %}
<strong>{{ oldname | escape }}</strong>
{%- unless forloop.last -%}, {% endunless -%}
{%- endfor %}
</p>
{%- endif %}
<p class="desc">{{ f.desc | escape }}</p>
<p class="homepage"><a href="{{ f.homepage | escape }}">{{ f.homepage | escape }}</a></p>
Expand Down

0 comments on commit 2668564

Please sign in to comment.