forked from hackorum-dev/hackorum
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_commitfest_icon.html.slim
More file actions
34 lines (33 loc) · 1.89 KB
/
_commitfest_icon.html.slim
File metadata and controls
34 lines (33 loc) · 1.89 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
- committed = summary[:committed]
- icon_class = commitfest_icon_class(summary)
- ci_label = commitfest_ci_label(summary)
- reviewers = summary[:reviewers] || []
- tags = summary[:tags] || []
- tooltip_label = summary[:status].presence ? "Commitfest status: #{summary[:status]}" : "Commitfest patch"
div class="topic-icon commitfest-icon#{committed ? ' commitfest-committed' : ''}" title=tooltip_label data-controller="hover-popover" data-hover-popover-delay-value="200" data-action="mouseenter->hover-popover#show mouseleave->hover-popover#scheduleHide"
i.fa-solid class=icon_class
.topic-icon-hover data-hover-popover-target="popover" data-action="mouseenter->hover-popover#show mouseleave->hover-popover#scheduleHide"
.commitfest-hover
.commitfest-hover-title
= link_to summary[:commitfest_name], "https://commitfest.postgresql.org/#{summary[:commitfest_external_id]}/", target: "_blank", rel: "noopener"
span.commitfest-hover-status = summary[:status].presence || "Unknown"
.commitfest-hover-row
span.commitfest-hover-label Patch
span.commitfest-hover-value
= link_to "##{summary[:patch_external_id]}", "https://commitfest.postgresql.org/patch/#{summary[:patch_external_id]}/", target: "_blank", rel: "noopener"
- if tags.any?
.commitfest-hover-row
span.commitfest-hover-label Tags
span.commitfest-hover-value = tags.join(", ")
- if ci_label.present?
.commitfest-hover-row
span.commitfest-hover-label CI
span.commitfest-hover-value = ci_label
- if reviewers.any?
.commitfest-hover-row
span.commitfest-hover-label Reviewers
span.commitfest-hover-value = reviewers.join(", ")
- if committed && summary[:committer].present?
.commitfest-hover-row
span.commitfest-hover-label Committer
span.commitfest-hover-value = summary[:committer]