-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommunity-queue.component.html
More file actions
44 lines (40 loc) · 2.06 KB
/
Copy pathcommunity-queue.component.html
File metadata and controls
44 lines (40 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<span class="issue-box {{pinned ? 'pinned' : ''}}">
<app-count-box
[link]="'https://community.software.sil.org/c/keyman'"
[title]="'Open Topics'"
[unfixedCount]="countOfNewPosts()"
[count]="$safeNavigationMigration(queue?.length)"
[label]="'Open Topics'"
[class]="hasNewTopics() ? 'has-error' : hasNewPosts() ? 'has-warning' : 'is-empty'"></app-count-box>
<div class="issue-list-container gravity-{{gravityX}} gravity-{{gravityY}}" #wrapper>
<div class="issue-list">
<div class="summary">
<span class="pin" (click)="pin()">📌</span>
<span><app-clipboard [text]="getQueueTopics()" title="Copy list of topics to clipboard"></app-clipboard></span>
<span>
<span class="summary-label">Open Community Topics</span><span>{{queue?.length}}</span>
</span>
<div class='clear'></div>
</div>
<ul>
@for (topic of queue; track topic) {
<li>
<span class="label">
<a class="author" target="_blank" title="{{topic.last_post?.username}}"
href="https://community.software.sil.org/t/{{topic.slug}}/{{topic.id}}/{{topic.highest_post_number}}">
<img class="avatar-22" src="https://community.software.sil.org{{topic.last_post.avatar_template.replace('{size}', '22')}}" />
</a>
{{hasNewPost(topic) ? '': '✔'}}
<a class="issue" target="_blank" title="{{topic.title}}"
href="https://community.software.sil.org/t/{{topic.slug}}/{{topic.id}}/{{topic.highest_post_number}}"><b>{{topic.id}}</b> {{topic.title}}</a>
<span class="issue-label" [style]="!isNewTopic(topic) ? 'background: #f0f0f0' : 'background: #f08080'" title="Created">{{topic.created_at | date: "medium"}}</span>
@if (!isNewTopic(topic)) {
<span class="issue-label" style="background: #c0cfcf" title="Last Update">{{topic.last_posted_at | date: "medium"}}</span>
}
</span>
</li>
}
</ul>
</div>
</div>
</span>