mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
No implicit this codemod (#17235)
* Run no-implicit-this codemod for app templates * Run tagless-ember-components-codemod for plugins * Turn on no-implicit-this lint
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
<div class="color-bg {{color}}"></div>
|
||||
<div class="color-name">var(--{{color}})</div>
|
||||
<div class="color-bg {{this.color}}"></div>
|
||||
<div class="color-name">var(--{{this.color}})</div>
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
<div class="example-title">{{title}}</div>
|
||||
<div class="example-title">{{this.title}}</div>
|
||||
<section class="rendered">{{yield this.value}}</section>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{{#each iconIds as |id|}}
|
||||
{{#each this.iconIds as |id|}}
|
||||
<div class="styleguide-icon">
|
||||
{{d-icon id}}
|
||||
<span>{{id}}</span>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<LinkTo @route="styleguide.show" @models={{array section.category section.id}}>
|
||||
{{section-title section.id}}
|
||||
<LinkTo @route="styleguide.show" @models={{array this.section.category this.section.id}}>
|
||||
{{section-title this.section.id}}
|
||||
</LinkTo>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<h1 class="section-title">
|
||||
{{#if section}}
|
||||
{{section-title section.id}}
|
||||
{{#if this.section}}
|
||||
{{section-title this.section.id}}
|
||||
{{else}}
|
||||
{{i18n title}}
|
||||
{{i18n this.title}}
|
||||
{{/if}}
|
||||
</h1>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<section class="styleguide">
|
||||
<section class="styleguide-menu">
|
||||
{{#each categories as |c|}}
|
||||
{{#each this.categories as |c|}}
|
||||
<ul>
|
||||
<li class="styleguide-heading">{{i18n (concat "styleguide.categories." c.id)}}</li>
|
||||
{{#each c.sections as |s|}}
|
||||
|
||||
@@ -1,71 +1,71 @@
|
||||
<StyleguideExample @title=".btn-icon - sizes (large, default, small)">
|
||||
{{#each dummy.buttonSizes as |bs|}}
|
||||
{{#each this.dummy.buttonSizes as |bs|}}
|
||||
<DButton @icon="times" @translatedTitle={{bs.text}} @class={{bs.class}} @disabled={{bs.disabled}} />
|
||||
{{/each}}
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title=".btn-icon - states">
|
||||
{{#each dummy.buttonStates as |bs|}}
|
||||
{{#each this.dummy.buttonStates as |bs|}}
|
||||
<DButton @icon="times" @translatedTitle={{bs.text}} @class={{bs.class}} @disabled={{bs.disabled}} />
|
||||
{{/each}}
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title=".btn-text - sizes (large, default, small)">
|
||||
{{#each dummy.buttonSizes as |bs|}}
|
||||
{{#each this.dummy.buttonSizes as |bs|}}
|
||||
<DButton @translatedLabel={{bs.text}} @class={{bs.class}} @disabled={{bs.disabled}} />
|
||||
{{/each}}
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title=".btn-text - states">
|
||||
{{#each dummy.buttonStates as |bs|}}
|
||||
{{#each this.dummy.buttonStates as |bs|}}
|
||||
<DButton @translatedLabel={{bs.text}} @class={{bs.class}} @disabled={{bs.disabled}} />
|
||||
{{/each}}
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title=".btn-default .btn-icon-text - sizes (large, default, small)">
|
||||
{{#each dummy.buttonSizes as |bs|}}
|
||||
{{#each this.dummy.buttonSizes as |bs|}}
|
||||
<DButton @icon="plus" @translatedLabel={{bs.text}} @class={{bs.class}} @disabled={{bs.disabled}} />
|
||||
{{/each}}
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title=".btn-default .btn-icon-text - states">
|
||||
{{#each dummy.buttonStates as |bs|}}
|
||||
{{#each this.dummy.buttonStates as |bs|}}
|
||||
<DButton @icon="plus" @translatedLabel={{bs.text}} @class={{bs.class}} @disabled={{bs.disabled}} />
|
||||
{{/each}}
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title=".btn-primary .btn-icon-text - sizes (large, default, small)">
|
||||
{{#each dummy.buttonSizes as |bs|}}
|
||||
{{#each this.dummy.buttonSizes as |bs|}}
|
||||
<DButton @class={{concat "btn-primary " bs.class}} @icon="plus" @translatedLabel={{bs.text}} @disabled={{bs.disabled}} />
|
||||
{{/each}}
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title=".btn-primary .btn-icon-text - states">
|
||||
{{#each dummy.buttonStates as |bs|}}
|
||||
{{#each this.dummy.buttonStates as |bs|}}
|
||||
<DButton @class={{concat "btn-primary " bs.class}} @icon="plus" @translatedLabel={{bs.text}} @disabled={{bs.disabled}} />
|
||||
{{/each}}
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title=".btn-danger .btn-icon-text - sizes (large, default, small)">
|
||||
{{#each dummy.buttonSizes as |bs|}}
|
||||
{{#each this.dummy.buttonSizes as |bs|}}
|
||||
<DButton @class={{concat "btn-danger " bs.class}} @icon="trash-alt" @translatedLabel={{bs.text}} @disabled={{bs.disabled}} />
|
||||
{{/each}}
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title=".btn-danger .btn-icon-text - states">
|
||||
{{#each dummy.buttonStates as |bs|}}
|
||||
{{#each this.dummy.buttonStates as |bs|}}
|
||||
<DButton @class={{concat "btn-danger " bs.class}} @icon="trash-alt" @translatedLabel={{bs.text}} @disabled={{bs.disabled}} />
|
||||
{{/each}}
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title=".btn-flat - sizes (large, default, small)">
|
||||
{{#each dummy.buttonSizes as |bs|}}
|
||||
{{#each this.dummy.buttonSizes as |bs|}}
|
||||
<FlatButton @icon="trash-alt" @disabled={{bs.disabled}} @translatedTitle={{bs.title}} />
|
||||
{{/each}}
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title=".btn-flat - states">
|
||||
{{#each dummy.buttonStates as |bs|}}
|
||||
{{#each this.dummy.buttonStates as |bs|}}
|
||||
<FlatButton @icon="trash-alt" @disabled={{bs.disabled}} @translatedTitle={{bs.title}} />
|
||||
{{/each}}
|
||||
</StyleguideExample>
|
||||
|
||||
@@ -37,10 +37,10 @@
|
||||
</div>
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="inline-form with combo-box" @initialValue={{dummy.options.[0].name}} as |value|>
|
||||
<StyleguideExample @title="inline-form with combo-box" @initialValue={{this.dummy.options.[0].name}} as |value|>
|
||||
<div class="inline-form">
|
||||
<TextField @placeholder="Placeholder" />
|
||||
<ComboBox @content={{dummy.options}} @value={{value}} @onChange={{fn (mut value)}} />
|
||||
<ComboBox @content={{this.dummy.options}} @value={{value}} @onChange={{fn (mut value)}} />
|
||||
<DButton @class="btn-primary" @icon="search" @type="submit" @translatedLabel="Submit" />
|
||||
</div>
|
||||
</StyleguideExample>
|
||||
@@ -48,7 +48,7 @@
|
||||
<StyleguideExample @title="inline-form with multi-select">
|
||||
<div class="inline-form">
|
||||
<TextField />
|
||||
<MultiSelect @content={{dummy.options}} @onChange={{action "dummy"}} />
|
||||
<MultiSelect @content={{this.dummy.options}} @onChange={{action "dummy"}} />
|
||||
<DButton @class="btn-primary" @icon="search" @type="submit" @translatedLabel="Submit" />
|
||||
</div>
|
||||
</StyleguideExample>
|
||||
@@ -57,7 +57,7 @@
|
||||
<div class="inline-form">
|
||||
<label>Text:</label>
|
||||
<TextField />
|
||||
<MultiSelect @content={{dummy.options}} @onChange={{action "dummy"}} />
|
||||
<MultiSelect @content={{this.dummy.options}} @onChange={{action "dummy"}} />
|
||||
<DButton @class="btn-primary" @icon="search" @type="submit" @translatedLabel="Submit" />
|
||||
</div>
|
||||
</StyleguideExample>
|
||||
@@ -70,7 +70,7 @@
|
||||
|
||||
<StyleguideExample @title="category-notifications-button and regular button">
|
||||
<div class="inline-form">
|
||||
<CategoryNotificationsButton @category={{dummy.categories.[0]}} @value={{1}} @onChange={{action "dummy"}} />
|
||||
<CategoryNotificationsButton @category={{this.dummy.categories.[0]}} @value={{1}} @onChange={{action "dummy"}} />
|
||||
<DButton @icon="reply" @type="submit" @translatedLabel="Button" />
|
||||
</div>
|
||||
</StyleguideExample>
|
||||
|
||||
@@ -1,37 +1,37 @@
|
||||
<StyleguideExample @title="combo-box" @initialValue={{dummy.options.[0].name}} as |value|>
|
||||
<ComboBox @content={{dummy.options}} @value={{value}} @onChange={{fn (mut value)}} />
|
||||
<StyleguideExample @title="combo-box" @initialValue={{this.dummy.options.[0].name}} as |value|>
|
||||
<ComboBox @content={{this.dummy.options}} @value={{value}} @onChange={{fn (mut value)}} />
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="filterable combo-box" @initialValue={{dummy.categories.[0].name}} as |value|>
|
||||
<ComboBox @content={{dummy.categories}} @value={{value}} @options={{hash filterable=true}} @onChange={{fn (mut value)}} />
|
||||
<StyleguideExample @title="filterable combo-box" @initialValue={{this.dummy.categories.[0].name}} as |value|>
|
||||
<ComboBox @content={{this.dummy.categories}} @value={{value}} @options={{hash filterable=true}} @onChange={{fn (mut value)}} />
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="combo-box with a default state" @initialValue={{dummy.options.[0].name}} as |value|>
|
||||
<ComboBox @content={{dummy.options}} @value={{value}} @options={{hash none="category.none"}} @onChange={{fn (mut value)}} />
|
||||
<StyleguideExample @title="combo-box with a default state" @initialValue={{this.dummy.options.[0].name}} as |value|>
|
||||
<ComboBox @content={{this.dummy.options}} @value={{value}} @options={{hash none="category.none"}} @onChange={{fn (mut value)}} />
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="combo-box clearable" @initialValue={{dummy.options.[0].name}} as |value|>
|
||||
<ComboBox @content={{dummy.options}} @clearable={{true}} @value={{value}} @options={{hash none="category.none"}} @onChange={{fn (mut value)}} />
|
||||
<StyleguideExample @title="combo-box clearable" @initialValue={{this.dummy.options.[0].name}} as |value|>
|
||||
<ComboBox @content={{this.dummy.options}} @clearable={{true}} @value={{value}} @options={{hash none="category.none"}} @onChange={{fn (mut value)}} />
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="topic-notifications-options" @initialValue={{1}} as |value|>
|
||||
<TopicNotificationsOptions @topic={{dummy.topic}} @value={{value}} @onChange={{fn (mut value)}} />
|
||||
<TopicNotificationsOptions @topic={{this.dummy.topic}} @value={{value}} @onChange={{fn (mut value)}} />
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="topic-footer-mobile-dropdown">
|
||||
<TopicFooterMobileDropdown @topic={{dummy.topic}} />
|
||||
<TopicFooterMobileDropdown @topic={{this.dummy.topic}} />
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="category-chooser" @initialValue={{categories.[0].name}} as |value|>
|
||||
<StyleguideExample @title="category-chooser" @initialValue={{this.categories.[0].name}} as |value|>
|
||||
<CategoryChooser @value={{value}} @onChange={{fn (mut value)}} />
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="pinned-button">
|
||||
<PinnedButton @topic={{dummy.pinnedTopic}} />
|
||||
<PinnedButton @topic={{this.dummy.pinnedTopic}} />
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="pinned-options">
|
||||
<PinnedOptions @topic={{dummy.pinnedTopic}} />
|
||||
<PinnedOptions @topic={{this.dummy.pinnedTopic}} />
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="categories-admin-dropdown">
|
||||
@@ -39,7 +39,7 @@
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="category-notifications-button">
|
||||
<CategoryNotificationsButton @category={{dummy.categories.[0]}} @value={{1}} @onChange={{action "dummy"}} />
|
||||
<CategoryNotificationsButton @category={{this.dummy.categories.[0]}} @value={{1}} @onChange={{action "dummy"}} />
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="notifications-button">
|
||||
@@ -47,31 +47,31 @@
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="dropdown-select-box">
|
||||
<DropdownSelectBox @content={{dummy.options}} @onChange={{action "dummy"}} @options={{hash
|
||||
<DropdownSelectBox @content={{this.dummy.options}} @onChange={{action "dummy"}} @options={{hash
|
||||
translatedNone="Something"
|
||||
}} />
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="future-date-input-selector">
|
||||
<FutureDateInputSelector @input={{dummy.topicTimerUpdateDate}} @includeWeekend={{true}} @includeForever={{true}} @options={{hash none="time_shortcut.select_timeframe"}} />
|
||||
<FutureDateInputSelector @input={{this.dummy.topicTimerUpdateDate}} @includeWeekend={{true}} @includeForever={{true}} @options={{hash none="time_shortcut.select_timeframe"}} />
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="multi-select">
|
||||
<MultiSelect @content={{dummy.options}} @onChange={{action "dummy"}} />
|
||||
<MultiSelect @content={{this.dummy.options}} @onChange={{action "dummy"}} />
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="admin group-chooser">
|
||||
<GroupChooser @selected={{dummy.selectedGroups}} @content={{dummy.groups}} @onChange={{action "dummy"}} />
|
||||
<GroupChooser @selected={{this.dummy.selectedGroups}} @content={{this.dummy.groups}} @onChange={{action "dummy"}} />
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="list-setting">
|
||||
<ListSetting @settingValue={{dummy.settings}} @onChange={{action "dummy"}} />
|
||||
<ListSetting @settingValue={{this.dummy.settings}} @onChange={{action "dummy"}} />
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="list-setting with colors">
|
||||
<ListSetting @settingValue={{dummy.colors}} @nameProperty="color" @onChange={{action "dummy"}} />
|
||||
<ListSetting @settingValue={{this.dummy.colors}} @nameProperty="color" @onChange={{action "dummy"}} />
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="user-notifications-dropdown">
|
||||
<UserNotificationsDropdown @user={{currentUser}} @value="changeToNormal" />
|
||||
<UserNotificationsDropdown @user={{this.currentUser}} @value="changeToNormal" />
|
||||
</StyleguideExample>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<StyleguideExample @title="topic-link">
|
||||
{{topic-link dummy.topic}}
|
||||
{{topic-link this.dummy.topic}}
|
||||
</StyleguideExample>
|
||||
|
||||
@@ -1,27 +1,27 @@
|
||||
<StyleguideExample @title="invisible">
|
||||
<TopicStatus @topic={{dummy.invisibleTopic}} />
|
||||
<TopicStatus @topic={{this.dummy.invisibleTopic}} />
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="closed">
|
||||
<TopicStatus @topic={{dummy.closedTopic}} />
|
||||
<TopicStatus @topic={{this.dummy.closedTopic}} />
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="pinned">
|
||||
<TopicStatus @topic={{dummy.pinnedTopic}} />
|
||||
<TopicStatus @topic={{this.dummy.pinnedTopic}} />
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="unpinned">
|
||||
<TopicStatus @topic={{dummy.unpinnedTopic}} />
|
||||
<TopicStatus @topic={{this.dummy.unpinnedTopic}} />
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="archived">
|
||||
<TopicStatus @topic={{dummy.archivedTopic}} />
|
||||
<TopicStatus @topic={{this.dummy.archivedTopic}} />
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="warning">
|
||||
<TopicStatus @topic={{dummy.warningTopic}} />
|
||||
<TopicStatus @topic={{this.dummy.warningTopic}} />
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="no status">
|
||||
<TopicStatus @topic={{dummy.topic}} />
|
||||
<TopicStatus @topic={{this.dummy.topic}} />
|
||||
</StyleguideExample>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<StyleguideExample @title="category-breadcrumbs">
|
||||
<BreadCrumbs @categories={{dummy.categories}} @showTags={{false}} />
|
||||
<BreadCrumbs @categories={{this.dummy.categories}} @showTags={{false}} />
|
||||
</StyleguideExample>
|
||||
|
||||
{{#if siteSettings.tagging_enabled}}
|
||||
{{#if this.siteSettings.tagging_enabled}}
|
||||
<StyleguideExample @title="category-breadcrumbs - tags">
|
||||
<BreadCrumbs @categories={{dummy.categories}} @showTags={{true}} />
|
||||
<BreadCrumbs @categories={{this.dummy.categories}} @showTags={{true}} />
|
||||
</StyleguideExample>
|
||||
{{/if}}
|
||||
|
||||
@@ -1,23 +1,23 @@
|
||||
<StyleguideExample @title="category-badge - bullet">
|
||||
{{#each dummy.categories as |c|}}
|
||||
{{#each this.dummy.categories as |c|}}
|
||||
{{category-badge c categoryStyle="bullet"}}
|
||||
{{/each}}
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="category-badge - bar">
|
||||
{{#each dummy.categories as |c|}}
|
||||
{{#each this.dummy.categories as |c|}}
|
||||
{{category-badge c categoryStyle="bar"}}
|
||||
{{/each}}
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="category-badge - box">
|
||||
{{#each dummy.categories as |c|}}
|
||||
{{#each this.dummy.categories as |c|}}
|
||||
{{category-badge c categoryStyle="box"}}
|
||||
{{/each}}
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="category-badge - none">
|
||||
{{#each dummy.categories as |c|}}
|
||||
{{#each this.dummy.categories as |c|}}
|
||||
{{category-badge c categoryStyle="none"}}
|
||||
{{/each}}
|
||||
</StyleguideExample>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<StyleguideExample @title="empty-state">
|
||||
<EmptyState @title={{dummy.sentence}} @body={{dummy.short_sentence}} />
|
||||
<EmptyState @title={{this.dummy.sentence}} @body={{this.dummy.short_sentence}} />
|
||||
</StyleguideExample>
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<StyleguideExample @title="footer-message - default">
|
||||
<FooterMessage @education={{dummy.sentence}} @message={{dummy.short_sentence}} />
|
||||
<FooterMessage @education={{this.dummy.sentence}} @message={{this.dummy.short_sentence}} />
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="footer-message - latest">
|
||||
<FooterMessage @education={{dummy.sentence}} @message={{dummy.short_sentence}} @latest={{true}} @canCreateTopicOnCategory={{true}} @createTopic={{action "dummy"}} />
|
||||
<FooterMessage @education={{this.dummy.sentence}} @message={{this.dummy.short_sentence}} @latest={{true}} @canCreateTopicOnCategory={{true}} @createTopic={{action "dummy"}} />
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="footer-message - top">
|
||||
<FooterMessage @education={{dummy.sentence}} @message={{dummy.short_sentence}} @top={{true}} @changePeriod={{action "dummy"}} />
|
||||
<FooterMessage @education={{this.dummy.sentence}} @message={{this.dummy.short_sentence}} @top={{true}} @changePeriod={{action "dummy"}} />
|
||||
</StyleguideExample>
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="header-icons - user">
|
||||
<MountWidget @widget="header-icons" @args={{hash user=dummy.user}} />
|
||||
<MountWidget @widget="header-icons" @args={{hash user=this.dummy.user}} />
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="header-icons - notifications">
|
||||
<MountWidget @widget="header-icons" @args={{hash user=dummy.userWithUnread flagCount=5}} />
|
||||
<MountWidget @widget="header-icons" @args={{hash user=this.dummy.userWithUnread flagCount=5}} />
|
||||
</StyleguideExample>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<StyleguideExample @title="navigation-bar">
|
||||
<NavigationBar @navItems={{dummy.navItems}} @filterMode="latest" />
|
||||
<NavigationBar @navItems={{this.dummy.navItems}} @filterMode="latest" />
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title=".user-main .nav-pills">
|
||||
<MobileNav @class="main-nav" @desktopClass="nav nav-pills user-nav">
|
||||
{{#each dummy.navItems as |ni|}}
|
||||
{{#each this.dummy.navItems as |ni|}}
|
||||
<li><a href={{ni.href}} class={{if ni.styleGuideActive "active"}}>{{ni.displayName}}</a></li>
|
||||
{{/each}}
|
||||
</MobileNav>
|
||||
@@ -13,10 +13,10 @@
|
||||
<StyleguideExample @title="group page navigation-bar">
|
||||
<MobileNav @class="group-nav" @desktopClass="nav nav-pills">
|
||||
<li class="group-dropdown">
|
||||
<GroupDropdown @groups={{dummy.groupNames}} @value="staff" />
|
||||
<GroupDropdown @groups={{this.dummy.groupNames}} @value="staff" />
|
||||
</li>
|
||||
|
||||
{{#each dummy.navItems as |ni|}}
|
||||
{{#each this.dummy.navItems as |ni|}}
|
||||
<li><a href={{ni.href}} class={{if ni.styleGuideActive "active"}}>{{ni.displayName}}</a></li>
|
||||
{{/each}}
|
||||
</MobileNav>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<StyleguideExample @title=".nav-stacked" class="half-size">
|
||||
<MobileNav @class="preferences-nav" @desktopClass="preferences-list action-list nav-stacked">
|
||||
{{#each dummy.navItems as |ni|}}
|
||||
{{#each this.dummy.navItems as |ni|}}
|
||||
<li><a href={{ni.href}} class={{if ni.styleGuideActive "active"}}>{{ni.displayName}}</a></li>
|
||||
{{/each}}
|
||||
</MobileNav>
|
||||
@@ -9,7 +9,7 @@
|
||||
<StyleguideExample @title=".user-navigation .nav-stacked" class="half-size">
|
||||
<DSection @class="user-navigation">
|
||||
<MobileNav @class="preferences-nav" @desktopClass="preferences-list action-list nav-stacked">
|
||||
{{#each dummy.navItems as |ni|}}
|
||||
{{#each this.dummy.navItems as |ni|}}
|
||||
<li><a href={{ni.href}} class={{if ni.styleGuideActive "active"}}>{{ni.displayName}}</a></li>
|
||||
{{/each}}
|
||||
</MobileNav>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<StyleguideExample @title="post-menu">
|
||||
<MountWidget @widget="post-menu" @args={{dummy.transformedPost}} />
|
||||
<MountWidget @widget="post-menu" @args={{this.dummy.transformedPost}} />
|
||||
</StyleguideExample>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<StyleguideExample @title="topic list item">
|
||||
<table class="topic-list">
|
||||
<tbody>
|
||||
<TopicListItem @topic={{dummy.topic}} @showPosters={{true}} />
|
||||
<TopicListItem @topic={{this.dummy.topic}} @showPosters={{true}} />
|
||||
</tbody>
|
||||
</table>
|
||||
</StyleguideExample>
|
||||
@@ -9,7 +9,7 @@
|
||||
<StyleguideExample @title="topic list item - hide category">
|
||||
<table class="topic-list">
|
||||
<tbody>
|
||||
<TopicListItem @topic={{dummy.topic}} @hideCategory={{true}} @showPosters={{true}} />
|
||||
<TopicListItem @topic={{this.dummy.topic}} @hideCategory={{true}} @showPosters={{true}} />
|
||||
</tbody>
|
||||
</table>
|
||||
</StyleguideExample>
|
||||
@@ -17,11 +17,11 @@
|
||||
<StyleguideExample @title="topic list item - show likes">
|
||||
<table class="topic-list">
|
||||
<tbody>
|
||||
<TopicListItem @topic={{dummy.topic}} @showLikes={{true}} @showPosters={{true}} />
|
||||
<TopicListItem @topic={{this.dummy.topic}} @showLikes={{true}} @showPosters={{true}} />
|
||||
</tbody>
|
||||
</table>
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="topic list item - latest" class="half-size">
|
||||
<LatestTopicListItem @topic={{dummy.topic}} />
|
||||
<LatestTopicListItem @topic={{this.dummy.topic}} />
|
||||
</StyleguideExample>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<StyleguideExample @title="topic-notifications-button">
|
||||
<TopicNotificationsButton @topic={{dummy.topic}} />
|
||||
<TopicNotificationsButton @topic={{this.dummy.topic}} />
|
||||
</StyleguideExample>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<StyleguideExample @title="topic-timer-info">
|
||||
<TopicTimerInfo @statusType="reminder" @executeAt={{dummy.soon}} />
|
||||
<TopicTimerInfo @statusType="reminder" @executeAt={{this.dummy.soon}} />
|
||||
</StyleguideExample>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<StyleguideExample @title="post">
|
||||
<MountWidget @widget="post" @args={{dummy.transformedPost}} />
|
||||
<MountWidget @widget="post" @args={{this.dummy.transformedPost}} />
|
||||
</StyleguideExample>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<StyleguideExample @title="topic-map">
|
||||
<MountWidget @widget="topic-map" @args={{dummy.transformedPost}} />
|
||||
<MountWidget @widget="topic-map" @args={{this.dummy.transformedPost}} />
|
||||
</StyleguideExample>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<StyleguideExample @title="topic-footer-buttons - logged in">
|
||||
<TopicFooterButtons @topic={{dummy.topic}} />
|
||||
<TopicFooterButtons @topic={{this.dummy.topic}} />
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="topic-footer-buttons - anonymous">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<StyleguideExample @title="topic-list">
|
||||
<TopicList @topics={{dummy.topics}} @showPosters={{true}} />
|
||||
<TopicList @topics={{this.dummy.topics}} @showPosters={{true}} />
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="topic-list - hide posters">
|
||||
<TopicList @topics={{dummy.topics}} @showPosters={{false}} />
|
||||
<TopicList @topics={{this.dummy.topics}} @showPosters={{false}} />
|
||||
</StyleguideExample>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<StyleguideExample @title="basic-topic-list" class="half-size">
|
||||
<BasicTopicList @topics={{dummy.topics}} />
|
||||
<BasicTopicList @topics={{this.dummy.topics}} />
|
||||
</StyleguideExample>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<StyleguideExample @title="categories-only">
|
||||
<CategoriesOnly @categories={{dummy.categories}} />
|
||||
<CategoriesOnly @categories={{this.dummy.categories}} />
|
||||
</StyleguideExample>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<StyleguideExample @title="d-modal">
|
||||
<DModal @closeModal={{action "dummy"}} @modalStyle="inline-modal" @title={{i18n "styleguide.sections.modal.header"}}>
|
||||
<DModalBody>
|
||||
{{html-safe dummy.lorem}}
|
||||
{{html-safe this.dummy.lorem}}
|
||||
</DModalBody>
|
||||
<div class="modal-footer">
|
||||
{{i18n "styleguide.sections.modal.footer"}}
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
<div class="list-controls">
|
||||
<div class="container">
|
||||
<DSection @class="navigation-container">
|
||||
<BreadCrumbs @categories={{dummy.categories}} />
|
||||
<NavigationBar @navItems={{dummy.navItems}} @filterMode="latest" />
|
||||
<BreadCrumbs @categories={{this.dummy.categories}} />
|
||||
<NavigationBar @navItems={{this.dummy.navItems}} @filterMode="latest" />
|
||||
<div class="navigation-controls">
|
||||
<CategoriesAdminDropdown />
|
||||
<CreateTopicButton @canCreateTopic={{true}} />
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
<div class="wrap">
|
||||
<div class="contents">
|
||||
<MountWidget @widget="home-logo" @args={{hash minimized=true}} />
|
||||
<MountWidget @widget="header-topic-info" @args={{dummy}} />
|
||||
<MountWidget @widget="header-topic-info" @args={{this.dummy}} />
|
||||
<div class="panel clearfix">
|
||||
<MountWidget @widget="header-icons" @args={{hash user=dummy.user}} />
|
||||
<MountWidget @widget="header-icons" @args={{hash user=this.dummy.user}} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<StyleguideExample @title="suggested-topics">
|
||||
<SuggestedTopics @topic={{dummy.topic}} />
|
||||
<SuggestedTopics @topic={{this.dummy.topic}} />
|
||||
</StyleguideExample>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div class="profile-image"></div>
|
||||
<div class="details">
|
||||
<div class="primary">
|
||||
{{bound-avatar dummy.user "huge"}}
|
||||
{{bound-avatar this.dummy.user "huge"}}
|
||||
<section class="controls">
|
||||
<ul>
|
||||
<li>
|
||||
@@ -13,15 +13,15 @@
|
||||
{{i18n "user.private_message"}}
|
||||
</a>
|
||||
</li>
|
||||
<li><a href={{dummy.user.adminPath}} class="btn">{{d-icon "wrench"}}{{i18n "admin.user.show_admin_profile"}}</a></li>
|
||||
<li><a href={{this.dummy.user.adminPath}} class="btn">{{d-icon "wrench"}}{{i18n "admin.user.show_admin_profile"}}</a></li>
|
||||
<li><a href="#" class="btn">{{d-icon "angle-double-down"}}{{i18n "user.expand_profile"}}</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<div class="primary-textual">
|
||||
<h1 class="username">{{dummy.user.username}} {{d-icon "shield-alt"}}</h1>
|
||||
<h2 class="full-name">{{dummy.user.name}}</h2>
|
||||
<h3>{{dummy.user.title}}</h3>
|
||||
<h1 class="username">{{this.dummy.user.username}} {{d-icon "shield-alt"}}</h1>
|
||||
<h2 class="full-name">{{this.dummy.user.name}}</h2>
|
||||
<h3>{{this.dummy.user.title}}</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div style="clear: both"></div>
|
||||
@@ -32,11 +32,11 @@
|
||||
|
||||
<StyleguideExample @title=".user-main .about.collapsed-info.has-background">
|
||||
<DSection @class="user-main">
|
||||
<section class="collapsed-info about has-background" style={{dummy.user.profileBackground}}>
|
||||
<section class="collapsed-info about has-background" style={{this.dummy.user.profileBackground}}>
|
||||
<div class="profile-image"></div>
|
||||
<div class="details">
|
||||
<div class="primary">
|
||||
{{bound-avatar dummy.user "huge"}}
|
||||
{{bound-avatar this.dummy.user "huge"}}
|
||||
<section class="controls">
|
||||
<ul>
|
||||
<li>
|
||||
@@ -45,15 +45,15 @@
|
||||
{{i18n "user.private_message"}}
|
||||
</a>
|
||||
</li>
|
||||
<li><a href={{dummy.user.adminPath}} class="btn">{{d-icon "wrench"}}{{i18n "admin.user.show_admin_profile"}}</a></li>
|
||||
<li><a href={{this.dummy.user.adminPath}} class="btn">{{d-icon "wrench"}}{{i18n "admin.user.show_admin_profile"}}</a></li>
|
||||
<li><a href="#" class="btn">{{d-icon "angle-double-down"}}{{i18n "user.expand_profile"}}</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<div class="primary-textual">
|
||||
<h1 class="username">{{dummy.user.username}} {{d-icon "shield-alt"}}</h1>
|
||||
<h2 class="full-name">{{dummy.user.name}}</h2>
|
||||
<h3>{{dummy.user.title}}</h3>
|
||||
<h1 class="username">{{this.dummy.user.username}} {{d-icon "shield-alt"}}</h1>
|
||||
<h2 class="full-name">{{this.dummy.user.name}}</h2>
|
||||
<h3>{{this.dummy.user.title}}</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div style="clear: both"></div>
|
||||
@@ -67,25 +67,25 @@
|
||||
<section class="about no-background">
|
||||
|
||||
<div class="staff-counters">
|
||||
<div><span class="helpful-flags">{{dummy.user.number_of_flags_given}}</span> {{i18n "user.staff_counters.flags_given"}}</div>
|
||||
<div><span class="helpful-flags">{{this.dummy.user.number_of_flags_given}}</span> {{i18n "user.staff_counters.flags_given"}}</div>
|
||||
<div>
|
||||
<a href="#">
|
||||
<span class="flagged-posts">{{dummy.user.number_of_flagged_posts}}</span> {{i18n "user.staff_counters.flagged_posts"}}
|
||||
<span class="flagged-posts">{{this.dummy.user.number_of_flagged_posts}}</span> {{i18n "user.staff_counters.flagged_posts"}}
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#">
|
||||
<span class="deleted-posts">{{dummy.user.number_of_deleted_posts}}</span> {{i18n "user.staff_counters.deleted_posts"}}
|
||||
<span class="deleted-posts">{{this.dummy.user.number_of_deleted_posts}}</span> {{i18n "user.staff_counters.deleted_posts"}}
|
||||
</a>
|
||||
</div>
|
||||
<div><span class="suspensions">{{dummy.user.number_of_suspensions}}</span> {{i18n "user.staff_counters.suspensions"}}</div>
|
||||
<div><span class="warnings-received">{{dummy.user.warnings_received_count}}</span> {{i18n "user.staff_counters.warnings_received"}}</div>
|
||||
<div><span class="suspensions">{{this.dummy.user.number_of_suspensions}}</span> {{i18n "user.staff_counters.suspensions"}}</div>
|
||||
<div><span class="warnings-received">{{this.dummy.user.warnings_received_count}}</span> {{i18n "user.staff_counters.warnings_received"}}</div>
|
||||
</div>
|
||||
|
||||
<div class="profile-image"></div>
|
||||
<div class="details">
|
||||
<div class="primary">
|
||||
{{bound-avatar dummy.user "huge"}}
|
||||
{{bound-avatar this.dummy.user "huge"}}
|
||||
<section class="controls">
|
||||
<ul>
|
||||
<li>
|
||||
@@ -94,31 +94,31 @@
|
||||
{{i18n "user.private_message"}}
|
||||
</a>
|
||||
</li>
|
||||
<li><a href={{dummy.user.adminPath}} class="btn">{{d-icon "wrench"}}{{i18n "admin.user.show_admin_profile"}}</a></li>
|
||||
<li><a href={{this.dummy.user.adminPath}} class="btn">{{d-icon "wrench"}}{{i18n "admin.user.show_admin_profile"}}</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<div class="primary-textual">
|
||||
<h1 class="username">{{dummy.user.username}} {{d-icon "shield-alt"}}</h1>
|
||||
<h2 class="full-name">{{dummy.user.name}}</h2>
|
||||
<h3>{{dummy.user.title}}</h3>
|
||||
<h1 class="username">{{this.dummy.user.username}} {{d-icon "shield-alt"}}</h1>
|
||||
<h2 class="full-name">{{this.dummy.user.name}}</h2>
|
||||
<h3>{{this.dummy.user.title}}</h3>
|
||||
<h3>
|
||||
{{d-icon "map-marker-alt"}} {{dummy.user.location}}
|
||||
{{d-icon "map-marker-alt"}} {{this.dummy.user.location}}
|
||||
{{d-icon "globe"}}
|
||||
<a href={{dummy.user.website}} rel="nofollow noopener noreferrer" target="_blank">{{dummy.user.website_name}}</a>
|
||||
<a href={{this.dummy.user.website}} rel="nofollow noopener noreferrer" target="_blank">{{this.dummy.user.website_name}}</a>
|
||||
</h3>
|
||||
|
||||
<div class="bio">
|
||||
<div class="suspended">
|
||||
{{d-icon "ban"}}
|
||||
<b>{{i18n "user.suspended_notice" date=dummy.user.suspendedTillDate}}</b><br>
|
||||
<b>{{i18n "user.suspended_reason"}}</b> {{dummy.user.suspend_reason}}
|
||||
<b>{{i18n "user.suspended_notice" date=this.dummy.user.suspendedTillDate}}</b><br>
|
||||
<b>{{i18n "user.suspended_reason"}}</b> {{this.dummy.user.suspend_reason}}
|
||||
</div>
|
||||
{{html-safe dummy.user.bio_cooked}}
|
||||
{{html-safe this.dummy.user.bio_cooked}}
|
||||
</div>
|
||||
|
||||
<div class="public-user-fields">
|
||||
{{#each dummy.user.publicUserFields as |uf|}}
|
||||
{{#each this.dummy.user.publicUserFields as |uf|}}
|
||||
{{#if uf.value}}
|
||||
<div class="public-user-field {{uf.field.dasherized_name}}">
|
||||
<span class="user-field-name">{{uf.field.name}}</span>:
|
||||
@@ -134,19 +134,19 @@
|
||||
|
||||
<div class="secondary">
|
||||
<dl>
|
||||
<dt>{{i18n "user.created"}}</dt><dd>{{bound-date dummy.user.created_at}}</dd>
|
||||
<dt>{{i18n "user.last_posted"}}</dt><dd>{{bound-date dummy.user.last_posted_at}}</dd>
|
||||
<dt>{{i18n "user.last_seen"}}</dt><dd>{{bound-date dummy.user.last_seen_at}}</dd>
|
||||
<dt>{{i18n "views"}}</dt><dd>{{dummy.user.profile_view_count}}</dd>
|
||||
<dt class="invited-by">{{i18n "user.invited_by"}}</dt><dd class="invited-by"><a href="#">{{dummy.user.invited_by.username}}</a></dd>
|
||||
<dt class="trust-level">{{i18n "user.trust_level"}}</dt><dd class="trust-level">{{dummy.user.trustLevel.name}}</dd>
|
||||
<dt>{{i18n "user.created"}}</dt><dd>{{bound-date this.dummy.user.created_at}}</dd>
|
||||
<dt>{{i18n "user.last_posted"}}</dt><dd>{{bound-date this.dummy.user.last_posted_at}}</dd>
|
||||
<dt>{{i18n "user.last_seen"}}</dt><dd>{{bound-date this.dummy.user.last_seen_at}}</dd>
|
||||
<dt>{{i18n "views"}}</dt><dd>{{this.dummy.user.profile_view_count}}</dd>
|
||||
<dt class="invited-by">{{i18n "user.invited_by"}}</dt><dd class="invited-by"><a href="#">{{this.dummy.user.invited_by.username}}</a></dd>
|
||||
<dt class="trust-level">{{i18n "user.trust_level"}}</dt><dd class="trust-level">{{this.dummy.user.trustLevel.name}}</dd>
|
||||
<dt>{{i18n "user.email.title"}}</dt>
|
||||
<dd title={{dummy.user.email}}>
|
||||
<dd title={{this.dummy.user.email}}>
|
||||
<DButton @icon="far-envelope" @label="admin.users.check_email.text" @class="btn-primary" />
|
||||
</dd>
|
||||
<dt class="groups">{{i18n "groups.title" count=dummy.user.displayGroups.length}}</dt>
|
||||
<dt class="groups">{{i18n "groups.title" count=this.dummy.user.displayGroups.length}}</dt>
|
||||
<dd class="groups">
|
||||
{{#each dummy.user.displayGroups as |group|}}
|
||||
{{#each this.dummy.user.displayGroups as |group|}}
|
||||
<span><a href="#" class="group-link">{{group.name}}</a></span>
|
||||
{{/each}}
|
||||
</dd>
|
||||
@@ -159,27 +159,27 @@
|
||||
|
||||
<StyleguideExample @title=".user-main .about.has-background">
|
||||
<DSection @class="user-main">
|
||||
<section class="about has-background" style={{dummy.user.profileBackground}}>
|
||||
<section class="about has-background" style={{this.dummy.user.profileBackground}}>
|
||||
<div class="staff-counters">
|
||||
<div><span class="helpful-flags">{{dummy.user.number_of_flags_given}}</span> {{i18n "user.staff_counters.flags_given"}}</div>
|
||||
<div><span class="helpful-flags">{{this.dummy.user.number_of_flags_given}}</span> {{i18n "user.staff_counters.flags_given"}}</div>
|
||||
<div>
|
||||
<a href="#">
|
||||
<span class="flagged-posts">{{dummy.user.number_of_flagged_posts}}</span> {{i18n "user.staff_counters.flagged_posts"}}
|
||||
<span class="flagged-posts">{{this.dummy.user.number_of_flagged_posts}}</span> {{i18n "user.staff_counters.flagged_posts"}}
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#">
|
||||
<span class="deleted-posts">{{dummy.user.number_of_deleted_posts}}</span> {{i18n "user.staff_counters.deleted_posts"}}
|
||||
<span class="deleted-posts">{{this.dummy.user.number_of_deleted_posts}}</span> {{i18n "user.staff_counters.deleted_posts"}}
|
||||
</a>
|
||||
</div>
|
||||
<div><span class="suspensions">{{dummy.user.number_of_suspensions}}</span> {{i18n "user.staff_counters.suspensions"}}</div>
|
||||
<div><span class="warnings-received">{{dummy.user.warnings_received_count}}</span> {{i18n "user.staff_counters.warnings_received"}}</div>
|
||||
<div><span class="suspensions">{{this.dummy.user.number_of_suspensions}}</span> {{i18n "user.staff_counters.suspensions"}}</div>
|
||||
<div><span class="warnings-received">{{this.dummy.user.warnings_received_count}}</span> {{i18n "user.staff_counters.warnings_received"}}</div>
|
||||
</div>
|
||||
|
||||
<div class="profile-image"></div>
|
||||
<div class="details">
|
||||
<div class="primary">
|
||||
{{bound-avatar dummy.user "huge"}}
|
||||
{{bound-avatar this.dummy.user "huge"}}
|
||||
<section class="controls">
|
||||
<ul>
|
||||
<li>
|
||||
@@ -188,31 +188,31 @@
|
||||
{{i18n "user.private_message"}}
|
||||
</a>
|
||||
</li>
|
||||
<li><a href={{dummy.user.adminPath}} class="btn">{{d-icon "wrench"}}{{i18n "admin.user.show_admin_profile"}}</a></li>
|
||||
<li><a href={{this.dummy.user.adminPath}} class="btn">{{d-icon "wrench"}}{{i18n "admin.user.show_admin_profile"}}</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<div class="primary-textual">
|
||||
<h1 class="username">{{dummy.user.username}} {{d-icon "shield-alt"}}</h1>
|
||||
<h2 class="full-name">{{dummy.user.name}}</h2>
|
||||
<h3>{{dummy.user.title}}</h3>
|
||||
<h1 class="username">{{this.dummy.user.username}} {{d-icon "shield-alt"}}</h1>
|
||||
<h2 class="full-name">{{this.dummy.user.name}}</h2>
|
||||
<h3>{{this.dummy.user.title}}</h3>
|
||||
<h3>
|
||||
{{d-icon "map-marker-alt"}} {{dummy.user.location}}
|
||||
{{d-icon "map-marker-alt"}} {{this.dummy.user.location}}
|
||||
{{d-icon "globe"}}
|
||||
<a href={{dummy.user.website}} rel="nofollow noopener noreferrer" target="_blank">{{dummy.user.website_name}}</a>
|
||||
<a href={{this.dummy.user.website}} rel="nofollow noopener noreferrer" target="_blank">{{this.dummy.user.website_name}}</a>
|
||||
</h3>
|
||||
|
||||
<div class="bio">
|
||||
<div class="suspended">
|
||||
{{d-icon "ban"}}
|
||||
<b>{{i18n "user.suspended_notice" date=dummy.user.suspendedTillDate}}</b><br>
|
||||
<b>{{i18n "user.suspended_reason"}}</b> {{dummy.user.suspend_reason}}
|
||||
<b>{{i18n "user.suspended_notice" date=this.dummy.user.suspendedTillDate}}</b><br>
|
||||
<b>{{i18n "user.suspended_reason"}}</b> {{this.dummy.user.suspend_reason}}
|
||||
</div>
|
||||
{{html-safe dummy.user.bio_cooked}}
|
||||
{{html-safe this.dummy.user.bio_cooked}}
|
||||
</div>
|
||||
|
||||
<div class="public-user-fields">
|
||||
{{#each dummy.user.publicUserFields as |uf|}}
|
||||
{{#each this.dummy.user.publicUserFields as |uf|}}
|
||||
{{#if uf.value}}
|
||||
<div class="public-user-field {{uf.field.dasherized_name}}">
|
||||
<span class="user-field-name">{{uf.field.name}}</span>:
|
||||
@@ -229,19 +229,19 @@
|
||||
|
||||
<div class="secondary">
|
||||
<dl>
|
||||
<dt>{{i18n "user.created"}}</dt><dd>{{bound-date dummy.user.created_at}}</dd>
|
||||
<dt>{{i18n "user.last_posted"}}</dt><dd>{{bound-date dummy.user.last_posted_at}}</dd>
|
||||
<dt>{{i18n "user.last_seen"}}</dt><dd>{{bound-date dummy.user.last_seen_at}}</dd>
|
||||
<dt>{{i18n "views"}}</dt><dd>{{dummy.user.profile_view_count}}</dd>
|
||||
<dt class="invited-by">{{i18n "user.invited_by"}}</dt><dd class="invited-by"><a href="#">{{dummy.user.invited_by.username}}</a></dd>
|
||||
<dt class="trust-level">{{i18n "user.trust_level"}}</dt><dd class="trust-level">{{dummy.user.trustLevel.name}}</dd>
|
||||
<dt>{{i18n "user.created"}}</dt><dd>{{bound-date this.dummy.user.created_at}}</dd>
|
||||
<dt>{{i18n "user.last_posted"}}</dt><dd>{{bound-date this.dummy.user.last_posted_at}}</dd>
|
||||
<dt>{{i18n "user.last_seen"}}</dt><dd>{{bound-date this.dummy.user.last_seen_at}}</dd>
|
||||
<dt>{{i18n "views"}}</dt><dd>{{this.dummy.user.profile_view_count}}</dd>
|
||||
<dt class="invited-by">{{i18n "user.invited_by"}}</dt><dd class="invited-by"><a href="#">{{this.dummy.user.invited_by.username}}</a></dd>
|
||||
<dt class="trust-level">{{i18n "user.trust_level"}}</dt><dd class="trust-level">{{this.dummy.user.trustLevel.name}}</dd>
|
||||
<dt>{{i18n "user.email.title"}}</dt>
|
||||
<dd title={{dummy.user.email}}>
|
||||
<dd title={{this.dummy.user.email}}>
|
||||
<DButton @icon="far-envelope" @label="admin.users.check_email.text" @class="btn-primary" />
|
||||
</dd>
|
||||
<dt class="groups">{{i18n "groups.title" count=dummy.user.displayGroups.length}}</dt>
|
||||
<dt class="groups">{{i18n "groups.title" count=this.dummy.user.displayGroups.length}}</dt>
|
||||
<dd class="groups">
|
||||
{{#each dummy.user.displayGroups as |group|}}
|
||||
{{#each this.dummy.user.displayGroups as |group|}}
|
||||
<span><a href="#" class="group-link">{{group.name}}</a></span>
|
||||
{{/each}}
|
||||
</dd>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<StyleguideSection @section={{section}}>
|
||||
{{#if note}}
|
||||
<StyleguideSection @section={{this.section}}>
|
||||
{{#if this.note}}
|
||||
<div class="styleguide-note">
|
||||
{{component (concat "notes/" note)}}
|
||||
{{component (concat "notes/" this.note)}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user