DEV: Fix template linting issues
This commit is contained in:
parent
0f2475708e
commit
b560cf1002
|
|
@ -10,8 +10,8 @@
|
|||
<input type="checkbox" class="bulk-select">
|
||||
</td>
|
||||
{{/if}}
|
||||
<td class='main-link clearfix' colspan="1">
|
||||
<span class='link-top-line'>
|
||||
<td class="main-link clearfix" colspan="1">
|
||||
<span class="link-top-line">
|
||||
{{~raw "topic-status" topic=topic}}
|
||||
{{~#if isPrivateMessage}}
|
||||
{{~d-icon "envelope" class="private-message-icon"}}
|
||||
|
|
@ -48,8 +48,10 @@
|
|||
{{raw "list/activity-column" topic=topic class="num" tagName="td"}}
|
||||
|
||||
<td>
|
||||
{{assign-actions-dropdown topic=topic
|
||||
user=username
|
||||
unassign=unassign
|
||||
reassign=reassign}}
|
||||
{{assign-actions-dropdown
|
||||
topic=topic
|
||||
user=username
|
||||
unassign=unassign
|
||||
reassign=reassign
|
||||
}}
|
||||
</td>
|
||||
|
|
|
|||
|
|
@ -11,26 +11,29 @@
|
|||
ascending=ascending
|
||||
sortable=sortable
|
||||
listTitle=listTitle
|
||||
bulkSelectEnabled=bulkSelectEnabled}}
|
||||
bulkSelectEnabled=bulkSelectEnabled
|
||||
}}
|
||||
</thead>
|
||||
{{/unless}}
|
||||
|
||||
<tbody>
|
||||
{{#each filteredTopics as |topic|}}
|
||||
{{assigned-topic-list-item topic=topic
|
||||
bulkSelectEnabled=bulkSelectEnabled
|
||||
showTopicPostBadges=showTopicPostBadges
|
||||
hideCategory=hideCategory
|
||||
showPosters=showPosters
|
||||
showLikes=showLikes
|
||||
showOpLikes=showOpLikes
|
||||
expandGloballyPinned=expandGloballyPinned
|
||||
expandAllPinned=expandAllPinned
|
||||
lastVisitedTopic=lastVisitedTopic
|
||||
selected=selected
|
||||
tagsForUser=tagsForUser
|
||||
unassign=unassign
|
||||
reassign=reassign}}
|
||||
{{assigned-topic-list-item
|
||||
topic=topic
|
||||
bulkSelectEnabled=bulkSelectEnabled
|
||||
showTopicPostBadges=showTopicPostBadges
|
||||
hideCategory=hideCategory
|
||||
showPosters=showPosters
|
||||
showLikes=showLikes
|
||||
showOpLikes=showOpLikes
|
||||
expandGloballyPinned=expandGloballyPinned
|
||||
expandAllPinned=expandAllPinned
|
||||
lastVisitedTopic=lastVisitedTopic
|
||||
selected=selected
|
||||
tagsForUser=tagsForUser
|
||||
unassign=unassign
|
||||
reassign=reassign
|
||||
}}
|
||||
|
||||
{{raw "list/visited-line" lastVisitedTopic=lastVisitedTopic topic=topic}}
|
||||
{{/each}}
|
||||
|
|
|
|||
|
|
@ -1,30 +1,30 @@
|
|||
{{#conditional-loading-spinner condition=loading}}
|
||||
{{#if hasIncoming}}
|
||||
<div class="show-mores">
|
||||
<div class="alert alert-info clickable" {{action showInserted}}>
|
||||
<a tabindex="0" href="" {{action showInserted}}>
|
||||
{{count-i18n key="topic_count_" suffix="latest" count=incomingCount}}
|
||||
</a>
|
||||
</div>
|
||||
<a href class="alert alert-info clickable" {{action showInserted}}>
|
||||
{{count-i18n key="topic_count_" suffix="latest" count=incomingCount}}
|
||||
</a>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if topics}}
|
||||
{{assigned-topic-list showPosters=showPosters
|
||||
hideCategory=hideCategory
|
||||
topics=topics
|
||||
expandExcerpts=expandExcerpts
|
||||
bulkSelectEnabled=bulkSelectEnabled
|
||||
canBulkSelect=canBulkSelect
|
||||
selected=selected
|
||||
skipHeader=skipHeader
|
||||
tagsForUser=tagsForUser
|
||||
changeSort=changeSort
|
||||
toggleBulkSelect=toggleBulkSelect
|
||||
unassign=unassign
|
||||
reassign=reassign
|
||||
onScroll=onScroll
|
||||
scrollOnLoad=scrollOnLoad}}
|
||||
{{assigned-topic-list
|
||||
showPosters=showPosters
|
||||
hideCategory=hideCategory
|
||||
topics=topics
|
||||
expandExcerpts=expandExcerpts
|
||||
bulkSelectEnabled=bulkSelectEnabled
|
||||
canBulkSelect=canBulkSelect
|
||||
selected=selected
|
||||
skipHeader=skipHeader
|
||||
tagsForUser=tagsForUser
|
||||
changeSort=changeSort
|
||||
toggleBulkSelect=toggleBulkSelect
|
||||
unassign=unassign
|
||||
reassign=reassign
|
||||
onScroll=onScroll
|
||||
scrollOnLoad=scrollOnLoad
|
||||
}}
|
||||
{{else}}
|
||||
{{#unless loadingMore}}
|
||||
<div class="alert alert-info">
|
||||
|
|
|
|||
|
|
@ -5,13 +5,16 @@
|
|||
class="btn-small unassign"
|
||||
action=(action "unassign")
|
||||
disabled=unassigning
|
||||
title="discourse_assign.unassign.help"}}
|
||||
title="discourse_assign.unassign.help"
|
||||
}}
|
||||
{{/assigned-to}}
|
||||
{{else}}
|
||||
{{d-button class="btn-small assign"
|
||||
{{d-button
|
||||
class="btn-small assign"
|
||||
icon="user-plus"
|
||||
action=(action "claim")
|
||||
disabled=claiming
|
||||
label="discourse_assign.claim.title"
|
||||
title="discourse_assign.claim.help"}}
|
||||
title="discourse_assign.claim.help"
|
||||
}}
|
||||
{{/if}}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,12 @@
|
|||
<div class="topic-search-div">
|
||||
<div class="form-horizontal bookmark-search-form">
|
||||
{{input
|
||||
class="no-blur"
|
||||
value=searchTerm
|
||||
placeholder=(i18n "discourse_assign.topic_search_placeholder")
|
||||
input=(action "onChangeFilter" value="target.value")
|
||||
autocomplete="discourse"}}
|
||||
class="no-blur"
|
||||
value=searchTerm
|
||||
placeholder=(i18n "discourse_assign.topic_search_placeholder")
|
||||
input=(action "onChangeFilter" value="target.value")
|
||||
autocomplete="discourse"
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
{{#load-more class="paginated-topics-list" selector=".paginated-topics-list .topic-list tr" action=(action "loadMore")}}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,8 @@
|
|||
assignmentCount=group.assignment_count
|
||||
search=search
|
||||
ascending=ascending
|
||||
order=order}}
|
||||
order=order
|
||||
}}
|
||||
{{#each members as |member|}}
|
||||
{{group-assigned-filter
|
||||
show-avatar=true
|
||||
|
|
@ -27,7 +28,8 @@
|
|||
routeType=route_type
|
||||
search=search
|
||||
ascending=ascending
|
||||
order=order}}
|
||||
order=order
|
||||
}}
|
||||
{{/each}}
|
||||
{{conditional-loading-spinner condition=loading}}
|
||||
{{/load-more}}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
<div class="topic-excerpt">
|
||||
{{html-safe topic.excerpt}}
|
||||
{{#if topic.excerptTruncated}}
|
||||
{{#unless topic.canClearPin}}<a href={{unbound topic.url}}>{{i18n "read_more"}}</a>{{/unless}}
|
||||
{{#unless topic.canClearPin}}<a href={{topic.url}}>{{i18n "read_more"}}</a>{{/unless}}
|
||||
{{/if}}
|
||||
{{#if topic.canClearPin}}
|
||||
<a href {{action "clearPin" topic}} title={{i18n "topic.clear_pin.help"}}>{{i18n "topic.clear_pin.title"}}</a>
|
||||
|
|
@ -33,7 +33,7 @@
|
|||
{{discourse-tags topic mode="list" tagsForUser=tagsForUser}}
|
||||
<div class="pull-right">
|
||||
{{raw "list/activity-column" topic=topic tagName="div" class="num activity last"}}
|
||||
<a href={{topic.lastPostUrl}} title="{{i18n 'last_post'}}: {{html-safe raw-date topic.bumped_at}}">{{topic.last_poster_username}}</a>
|
||||
<a href={{topic.lastPostUrl}} title="{{i18n "last_post"}}: {{html-safe raw-date topic.bumped_at}}">{{topic.last_poster_username}}</a>
|
||||
</div>
|
||||
{{#unless hideCategory}}
|
||||
<div class="category">
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
{{#conditional-loading-spinner condition=loading}}
|
||||
{{#if hasIncoming}}
|
||||
<div class="show-mores">
|
||||
<div class="alert alert-info clickable" {{action showInserted}}>
|
||||
<a href class="alert alert-info clickable" {{action showInserted}}>
|
||||
{{count-i18n key="topic_count_" suffix="latest" count=incomingCount}}
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
}}
|
||||
<div class="assign-suggestions">
|
||||
{{#each assignSuggestions as |user|}}
|
||||
<a {{action "assignUser" user}}>
|
||||
<a href {{action "assignUser" user}}>
|
||||
{{avatar user imageSize="small"}}
|
||||
</a>
|
||||
{{/each}}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,12 @@
|
|||
<div class="topic-search-div">
|
||||
<div class="form-horizontal bookmark-search-form">
|
||||
{{input
|
||||
class="no-blur"
|
||||
value=searchTerm
|
||||
placeholder=(i18n "discourse_assign.topic_search_placeholder")
|
||||
input=(action "onChangeFilter" value="target.value")
|
||||
autocomplete="discourse"}}
|
||||
class="no-blur"
|
||||
value=searchTerm
|
||||
placeholder=(i18n "discourse_assign.topic_search_placeholder")
|
||||
input=(action "onChangeFilter" value="target.value")
|
||||
autocomplete="discourse"
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue