mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 14:03:22 +08:00
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:
parent
7e69c5cc36
commit
c1b58613a2
|
@ -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}}
|
Loading…
Reference in New Issue
Block a user