DEV: Add extra whitespace to tidy up prettified templates

This commit is contained in:
David Taylor 2022-12-28 12:23:09 +00:00
parent c8e2e37fa7
commit 9f0a095405
9 changed files with 104 additions and 67 deletions

View File

@ -15,21 +15,21 @@
<LoadMore @selector=".web-hook-events li" @action={{this.loadMore}}>
<div class="web-hook-events content-list">
<div class="heading-container">
<div class="col heading first status">{{i18n
"admin.web_hooks.events.status"
}}</div>
<div class="col heading event-id">{{i18n
"admin.web_hooks.events.event_id"
}}</div>
<div class="col heading timestamp">{{i18n
"admin.web_hooks.events.timestamp"
}}</div>
<div class="col heading completion">{{i18n
"admin.web_hooks.events.completion"
}}</div>
<div class="col heading actions">{{i18n
"admin.web_hooks.events.actions"
}}</div>
<div class="col heading first status">
{{i18n "admin.web_hooks.events.status"}}
</div>
<div class="col heading event-id">
{{i18n "admin.web_hooks.events.event_id"}}
</div>
<div class="col heading timestamp">
{{i18n "admin.web_hooks.events.timestamp"}}
</div>
<div class="col heading completion">
{{i18n "admin.web_hooks.events.completion"}}
</div>
<div class="col heading actions">
{{i18n "admin.web_hooks.events.actions"}}
</div>
</div>
{{#if this.hasIncoming}}

View File

@ -1,16 +1,26 @@
<td class="title">{{this.report.title}}</td>
<td class="value"><LinkTo @route="adminUsersList.show" @model="newuser">{{number
(value-at-tl this.report.data level="0")
}}</LinkTo></td>
<td class="value"><LinkTo @route="adminUsersList.show" @model="basic">{{number
(value-at-tl this.report.data level="1")
}}</LinkTo></td>
<td class="value"><LinkTo @route="adminUsersList.show" @model="member">{{number
(value-at-tl this.report.data level="2")
}}</LinkTo></td>
<td class="value"><LinkTo @route="adminUsersList.show" @model="regular">{{number
(value-at-tl this.report.data level="3")
}}</LinkTo></td>
<td class="value"><LinkTo @route="adminUsersList.show" @model="leader">{{number
(value-at-tl this.report.data level="4")
}}</LinkTo></td>
<td class="value">
<LinkTo @route="adminUsersList.show" @model="newuser">
{{number (value-at-tl this.report.data level="0")}}
</LinkTo>
</td>
<td class="value">
<LinkTo @route="adminUsersList.show" @model="basic">
{{number (value-at-tl this.report.data level="1")}}
</LinkTo>
</td>
<td class="value">
<LinkTo @route="adminUsersList.show" @model="member">
{{number (value-at-tl this.report.data level="2")}}
</LinkTo>
</td>
<td class="value">
<LinkTo @route="adminUsersList.show" @model="regular">
{{number (value-at-tl this.report.data level="3")}}
</LinkTo>
</td>
<td class="value">
<LinkTo @route="adminUsersList.show" @model="leader">
{{number (value-at-tl this.report.data level="4")}}
</LinkTo>
</td>

View File

@ -2,16 +2,24 @@
<div class="admin-controls">
<nav>
<ul class="nav nav-pills">
<li><LinkTo
<li>
<LinkTo
@route="adminCustomizeEmailStyle.edit"
@model="html"
@replace={{true}}
>{{i18n "admin.customize.email_style.html"}}</LinkTo></li>
<li><LinkTo
>
{{i18n "admin.customize.email_style.html"}}
</LinkTo>
</li>
<li>
<LinkTo
@route="adminCustomizeEmailStyle.edit"
@model="css"
@replace={{true}}
>{{i18n "admin.customize.email_style.css"}}</LinkTo></li>
>
{{i18n "admin.customize.email_style.css"}}
</LinkTo>
</li>
</ul>
</nav>
</div>

View File

@ -50,18 +50,26 @@
/>
</td>
{{else}}
<td><div class="label">{{i18n
"admin.embedding.host"
}}</div>{{this.host.host}}</td>
<td><div class="label">{{i18n
"admin.embedding.class_name"
}}</div>{{this.host.class_name}}</td>
<td><div class="label">{{i18n
"admin.embedding.allowed_paths"
}}</div>{{this.host.allowed_paths}}</td>
<td><div class="label">{{i18n
"admin.embedding.category"
}}</div>{{category-badge this.host.category allowUncategorized=true}}</td>
<td>
<div class="label">{{i18n "admin.embedding.host"}}</div>
{{this.host.host}}
</td>
<td>
<div class="label">
{{i18n "admin.embedding.class_name"}}
</div>
{{this.host.class_name}}
</td>
<td>
<div class="label">
{{i18n "admin.embedding.allowed_paths"}}
</div>
{{this.host.allowed_paths}}
</td>
<td>
<div class="label">{{i18n "admin.embedding.category"}}</div>
{{category-badge this.host.category allowUncategorized=true}}
</td>
<td class="controls">
<DButton @icon="pencil-alt" @action={{action "edit"}} />
<DButton

View File

@ -58,9 +58,11 @@
</td>
</tr>
{{else}}
<tr><td colspan="4">{{i18n
"admin.email.incoming_emails.none"
}}</td></tr>
<tr>
<td colspan="4">
{{i18n "admin.email.incoming_emails.none"}}
</td>
</tr>
{{/each}}
</tbody>
</table>

View File

@ -30,9 +30,12 @@
{{/if}}
{{~#if this.computedLabel~}}
<span class="d-button-label">{{html-safe this.computedLabel}}{{#if
this.ellipsis
}}&hellip;{{/if}}</span>
<span class="d-button-label">
{{~html-safe this.computedLabel~}}
{{~#if this.ellipsis~}}
&hellip;
{{~/if~}}
</span>
{{~else if (not (has-block))~}}
&#8203;
{{! Zero-width space character, so icon-only button height = regular button height }}

View File

@ -16,8 +16,15 @@
pmOnly=tag.pmOnly
tagsForUser=this.tagsForUser
}}
{{#if tag.pmOnly}}{{d-icon "envelope"}}{{/if}}{{#if tag.totalCount}}
<span class="tag-count">x {{tag.totalCount}}</span>{{/if}}
{{#if tag.pmOnly}}
{{d-icon "envelope"}}
{{/if}}
{{#if tag.totalCount}}
<span class="tag-count">
x
{{tag.totalCount}}
</span>
{{/if}}
</div>
{{/each}}
<div class="clearfix"></div>

View File

@ -17,10 +17,9 @@
{{~""~}}
<span class="wave">
{{~""~}}
<span class="dot">.</span><span class="dot">.</span><span
class="dot"
>.</span>
{{~""~}}
<span class="dot">.</span>{{~""~}}
<span class="dot">.</span>{{~""~}}
<span class="dot">.</span>{{~""~}}
</span>
</span>
</div>

View File

@ -8,15 +8,15 @@
{{/each}}
</div>
<span class="presence-text">
<span class="description">{{i18n
"presence.replying_to_topic"
count=this.users.length
}}</span>{{! (using comment to stop whitespace)
}}<span
class="wave"
><span class="dot">.</span><span class="dot">.</span><span
class="dot"
>.</span></span>
<span class="description">
{{i18n "presence.replying_to_topic" count=this.users.length}}
</span>
<span class="wave">
{{~""~}}
<span class="dot">.</span>{{~""~}}
<span class="dot">.</span>{{~""~}}
<span class="dot">.</span>{{~""~}}
</span>
</span>
</div>
{{/if}}