UX: adds <a> tag with href category box titles (#7901)

This Ensures that category titles in category-boxes can be opened in a new tab.
This commit is contained in:
Joe 2019-07-18 19:25:39 +08:00 committed by GitHub
parent 7e69c5cc36
commit c1b58613a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
{{#each categories as |c|}}
<div class='category category-box category-box-{{unbound c.slug}}' style={{border-color c.color}} data-url={{c.url}}>
<div class='category category-box category-box-{{unbound c.slug}}' style={{border-color c.color}}
data-url={{c.url}}>
<div class='category-box-inner'>
<div class="category-logo">
{{#if c.uploaded_logo.url}}
@ -12,12 +13,14 @@
</div>
<div class="category-details">
<div class='category-box-heading'>
<h3>
{{#if c.read_restricted}}
{{d-icon 'lock'}}
{{/if}}
{{c.name}}
</h3>
<a href={{c.url}}>
<h3>
{{#if c.read_restricted}}
{{d-icon 'lock'}}
{{/if}}
{{c.name}}
</h3>
</a>
</div>
<div class='description'>
@ -43,4 +46,4 @@
</div>
</div>
</div>
{{/each}}
{{/each}}