Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-26 02:50:28 +01:00
DEV: Run Prettier đź’„
Dieser Commit ist enthalten in:
Ursprung
4abe30464c
Commit
c60d1e3338
1 geänderte Dateien mit 73 neuen und 24 gelöschten Zeilen
|
@ -4,20 +4,35 @@
|
||||||
|
|
||||||
{{#if isTextArea}}
|
{{#if isTextArea}}
|
||||||
<div class="submission-long-text">
|
<div class="submission-long-text">
|
||||||
<p class="submission-long-text-content {{textState}}">{{value.value}}</p>
|
<p class="submission-long-text-content {{textState}}">
|
||||||
<a href {{action "expandText"}}>{{toggleText}}</a>
|
{{value.value}}
|
||||||
|
</p>
|
||||||
|
<a href {{action "expandText"}}>
|
||||||
|
{{toggleText}}
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if isComposer}}
|
{{#if isComposer}}
|
||||||
<div class="submission-long-text">
|
<div class="submission-long-text">
|
||||||
<p class="submission-composer-text submission-long-text-content {{textState}}">{{value.value}}</p>
|
<p
|
||||||
<a href {{action "expandText"}}>{{toggleText}}</a>
|
class="submission-composer-text submission-long-text-content {{
|
||||||
|
textState
|
||||||
|
}}"
|
||||||
|
>
|
||||||
|
{{value.value}}
|
||||||
|
</p>
|
||||||
|
<a href {{action "expandText"}}>
|
||||||
|
{{toggleText}}
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if isComposerPreview}}
|
{{#if isComposerPreview}}
|
||||||
{{d-icon "comment-alt" }} <span class="submission-composer-text">{{i18n "admin.wizard.submissions.composer_preview"}}: {{value.value}}</span>
|
{{d-icon "comment-alt"}}
|
||||||
|
<span class="submission-composer-text">
|
||||||
|
{{i18n "admin.wizard.submissions.composer_preview"}}: {{value.value}}
|
||||||
|
</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if isTextOnly}}
|
{{#if isTextOnly}}
|
||||||
|
@ -61,14 +76,20 @@
|
||||||
{{#if isUrl}}
|
{{#if isUrl}}
|
||||||
<span class="submission-icon-item submission-url">
|
<span class="submission-icon-item submission-url">
|
||||||
{{d-icon "link"}}
|
{{d-icon "link"}}
|
||||||
<a target="_blank" href={{value.value}}>
|
<a target="_blank" rel="noopener noreferrer" href={{value.value}}>
|
||||||
{{value.value}}
|
{{value.value}}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if isUpload}}
|
{{#if isUpload}}
|
||||||
<a target="_blank" class="attachment" href={{file.url}} download>
|
<a
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
class="attachment"
|
||||||
|
href={{file.url}}
|
||||||
|
download
|
||||||
|
>
|
||||||
{{file.original_filename}}
|
{{file.original_filename}}
|
||||||
</a>
|
</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -87,24 +108,52 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if isCategory}}
|
{{#if isCategory}}
|
||||||
<strong>{{i18n "admin.wizard.submissions.category_id"}}: </strong><a target="_blank" href={{categoryUrl}} title={{value.value}}>{{value.value}}</a>
|
<strong>
|
||||||
|
{{i18n "admin.wizard.submissions.category_id"}}:
|
||||||
|
</strong>
|
||||||
|
<a
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
href={{categoryUrl}}
|
||||||
|
title={{value.value}}
|
||||||
|
>
|
||||||
|
{{value.value}}
|
||||||
|
</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if isGroup}}
|
{{#if isGroup}}
|
||||||
<strong>{{i18n "admin.wizard.submissions.group_id"}}: </strong> {{ value.value }}
|
<strong>
|
||||||
|
{{i18n "admin.wizard.submissions.group_id"}}:
|
||||||
|
</strong>
|
||||||
|
{{value.value}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
|
||||||
{{#if isUserSelector}}
|
{{#if isUserSelector}}
|
||||||
{{#each submittedUsers as |user|}}
|
{{#each submittedUsers as |user|}}
|
||||||
{{d-icon "user"}}
|
{{d-icon "user"}}
|
||||||
<a target="_blank" href={{user.url}} title={{user.username}}>{{user.username}}</a>
|
<a
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
href={{user.url}}
|
||||||
|
title={{user.username}}
|
||||||
|
>
|
||||||
|
{{user.username}}
|
||||||
|
</a>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if isUser}}
|
{{#if isUser}}
|
||||||
{{#link-to "user" value}}{{avatar value imageSize="tiny"}}{{/link-to}}
|
{{#link-to "user" value}}
|
||||||
<a target="_blank" href={{userProfileUrl}} title={{value.name}}>{{value.username}}</a>
|
{{avatar value imageSize="tiny"}}
|
||||||
|
{{/link-to}}
|
||||||
|
<a
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
href={{userProfileUrl}}
|
||||||
|
title={{value.name}}
|
||||||
|
>
|
||||||
|
{{value.username}}
|
||||||
|
</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if isSubmittedAt}}
|
{{#if isSubmittedAt}}
|
||||||
|
|
Laden …
In neuem Issue referenzieren