mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 15:06:26 +08:00
DEV: Add outlet wrapper for user card information replacement (#29523)
Some checks are pending
Licenses / run (push) Waiting to run
Linting / run (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (annotations, core) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (backend, core) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (backend, plugins) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (frontend, plugins) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (frontend, themes) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (system, chat) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (system, core) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (system, plugins) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (system, themes) (push) Waiting to run
Tests / core frontend (${{ matrix.browser }}) (Chrome) (push) Waiting to run
Tests / core frontend (${{ matrix.browser }}) (Firefox ESR) (push) Waiting to run
Tests / core frontend (${{ matrix.browser }}) (Firefox Evergreen) (push) Waiting to run
Some checks are pending
Licenses / run (push) Waiting to run
Linting / run (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (annotations, core) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (backend, core) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (backend, plugins) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (frontend, plugins) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (frontend, themes) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (system, chat) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (system, core) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (system, plugins) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (system, themes) (push) Waiting to run
Tests / core frontend (${{ matrix.browser }}) (Chrome) (push) Waiting to run
Tests / core frontend (${{ matrix.browser }}) (Firefox ESR) (push) Waiting to run
Tests / core frontend (${{ matrix.browser }}) (Firefox Evergreen) (push) Waiting to run
* DEV: Add outlet wrapper for user card information replacement * Fix format issues * Fix format issues
This commit is contained in:
parent
afdca41fd5
commit
758de8167b
|
@ -27,6 +27,15 @@
|
||||||
</div>
|
</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
<div class="card-row first-row">
|
<div class="card-row first-row">
|
||||||
|
<PluginOutlet
|
||||||
|
@name="user-card-main-info"
|
||||||
|
@outletArgs={{hash
|
||||||
|
user=this.user
|
||||||
|
post=this.post
|
||||||
|
contentHidden=this.contentHidden
|
||||||
|
handleShowUser=this.handleShowUser
|
||||||
|
}}
|
||||||
|
>
|
||||||
<div class="user-card-avatar" aria-hidden="true">
|
<div class="user-card-avatar" aria-hidden="true">
|
||||||
{{#if this.contentHidden}}
|
{{#if this.contentHidden}}
|
||||||
<span class="card-huge-avatar">{{bound-avatar
|
<span class="card-huge-avatar">{{bound-avatar
|
||||||
|
@ -94,7 +103,9 @@
|
||||||
@outletArgs={{hash user=this.user showUser=this.handleShowUser}}
|
@outletArgs={{hash user=this.user showUser=this.handleShowUser}}
|
||||||
/>
|
/>
|
||||||
{{#if this.nameFirst}}
|
{{#if this.nameFirst}}
|
||||||
<div class="names__secondary username">{{this.user.username}}</div>
|
<div
|
||||||
|
class="names__secondary username"
|
||||||
|
>{{this.user.username}}</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{#if this.user.name}}
|
{{#if this.user.name}}
|
||||||
<div class="names__secondary full-name">{{this.user.name}}</div>
|
<div class="names__secondary full-name">{{this.user.name}}</div>
|
||||||
|
@ -123,6 +134,7 @@
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</PluginOutlet>
|
||||||
<ul class="usercard-controls">
|
<ul class="usercard-controls">
|
||||||
{{#if this.user.can_send_private_message_to_user}}
|
{{#if this.user.can_send_private_message_to_user}}
|
||||||
<li class="compose-pm">
|
<li class="compose-pm">
|
||||||
|
@ -378,6 +390,10 @@
|
||||||
|
|
||||||
{{#if this.showBadges}}
|
{{#if this.showBadges}}
|
||||||
<div class="card-row">
|
<div class="card-row">
|
||||||
|
<PluginOutlet
|
||||||
|
@name="user-card-badges"
|
||||||
|
@outletArgs={{hash user=this.user post=this.post}}
|
||||||
|
>
|
||||||
{{#if this.user.featured_user_badges}}
|
{{#if this.user.featured_user_badges}}
|
||||||
<div class="badge-section">
|
<div class="badge-section">
|
||||||
{{#each this.user.featured_user_badges as |ub|}}
|
{{#each this.user.featured_user_badges as |ub|}}
|
||||||
|
@ -392,6 +408,7 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
</PluginOutlet>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user