2023-07-09 21:42:31 +03:00
<div role="main" aria-label=" {{ .Title }} " class="page-content user notification" id="notification_div" data-sequence-number=" {{ .SequenceNumber }} ">
2020-04-24 06:57:38 +03:00
<div class="ui container">
2023-05-25 05:31:26 +03:00
{{ $ notificationUnreadCount : = call .NotificationUnreadCount }}
2024-04-07 18:45:36 +03:00
<div class="tw-flex tw-items-center tw-justify-between tw-mb-[--page-spacing]">
2023-05-25 05:31:26 +03:00
<div class="small-menu-items ui compact tiny menu">
<a class=" {{ if eq .Status 1 }} active {{ end }} item" href=" {{ AppSubUrl }} /notifications?q=unread">
2023-09-25 11:56:50 +03:00
{{ ctx .Locale .Tr "notification.unread" }}
2024-03-24 21:23:38 +03:00
<div class="notifications-unread-count ui label {{ if not $ notificationUnreadCount }} tw-hidden {{ end }} "> {{ $ notificationUnreadCount }} </div>
2023-05-25 05:31:26 +03:00
</a>
<a class=" {{ if eq .Status 2 }} active {{ end }} item" href=" {{ AppSubUrl }} /notifications?q=read">
2023-09-25 11:56:50 +03:00
{{ ctx .Locale .Tr "notification.read" }}
2023-05-25 05:31:26 +03:00
</a>
</div>
2021-04-11 06:46:37 +03:00
{{ if and ( eq .Status 1 ) }}
2023-06-14 21:17:58 +03:00
<form action=" {{ AppSubUrl }} /notifications/purge" method="post">
2021-04-11 06:46:37 +03:00
{{ $ .CsrfTokenHtml }}
2024-03-24 21:23:38 +03:00
<div class=" {{ if not $ notificationUnreadCount }} tw-hidden {{ end }} ">
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
2024-03-24 19:42:49 +03:00
<button class="ui mini button primary tw-mr-0" title=" {{ ctx .Locale .Tr "notification.mark_all_as_read" }} ">
2021-04-11 06:46:37 +03:00
{{ svg "octicon-checklist" }}
</button>
</div>
</form>
{{ end }}
</div>
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
2024-03-24 19:42:49 +03:00
<div class="tw-p-0">
2023-05-25 05:31:26 +03:00
<div id="notification_table">
2023-12-05 00:48:42 +03:00
{{ if not .Notifications }}
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
2024-03-24 19:42:49 +03:00
<div class="tw-flex tw-items-center tw-flex-col tw-p-4">
{{ svg "octicon-inbox" 5 6 "tw-mb-4" }}
2023-05-25 05:31:26 +03:00
{{ if eq .Status 1 }}
2023-09-25 11:56:50 +03:00
{{ ctx .Locale .Tr "notification.no_unread" }}
2023-05-25 05:31:26 +03:00
{{ else }}
2023-09-25 11:56:50 +03:00
{{ ctx .Locale .Tr "notification.no_read" }}
2023-05-25 05:31:26 +03:00
{{ end }}
</div>
{{ else }}
{{ range $ notification : = .Notifications }}
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
2024-03-24 19:42:49 +03:00
<div class="notifications-item tw-flex tw-items-center tw-flex-wrap tw-gap-2 tw-p-2" id="notification_ {{ .ID }} " data-status=" {{ .Status }} ">
<div class="notifications-icon tw-ml-2 tw-mr-1 tw-self-start tw-mt-1">
2023-05-25 05:31:26 +03:00
{{ if .Issue }}
{{ template "shared/issueicon" .Issue }}
{{ else }}
{{ svg "octicon-repo" 1 6 "text grey" }}
{{ end }}
</div>
2024-03-22 16:45:10 +03:00
<a class="notifications-link tw-flex tw-flex-1 tw-flex-col silenced" href=" {{ .Link ctx }} ">
2024-06-04 09:10:04 +03:00
<div class="notifications-top-row tw-text-13 tw-break-anywhere">
2023-06-06 18:17:56 +03:00
{{ .Repository .FullName }} {{ if .Issue }} <span class="text light-3"># {{ .Issue .Index }} </span> {{ end }}
2021-04-11 06:46:37 +03:00
{{ if eq .Status 3 }}
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
2024-03-24 19:42:49 +03:00
{{ svg "octicon-pin" 1 3 "text blue tw-mt-0.5 tw-ml-1" }}
2021-04-11 06:46:37 +03:00
{{ end }}
2023-05-25 05:31:26 +03:00
</div>
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
2024-03-24 19:42:49 +03:00
<div class="notifications-bottom-row tw-text-16 tw-py-0.5">
2024-06-04 09:10:04 +03:00
<span class="issue-title tw-break-anywhere">
2023-05-25 05:31:26 +03:00
{{ if .Issue }}
2024-12-04 04:39:33 +03:00
{{ .Issue .Title | ctx .RenderUtils .RenderIssueSimpleTitle }}
2021-04-11 06:46:37 +03:00
{{ else }}
2023-05-25 05:31:26 +03:00
{{ .Repository .FullName }}
2021-04-11 06:46:37 +03:00
{{ end }}
2023-05-25 05:31:26 +03:00
</span>
</div>
</a>
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
2024-03-24 19:42:49 +03:00
<div class="notifications-updated tw-items-center tw-mr-2">
2023-06-06 18:17:56 +03:00
{{ if .Issue }}
2024-11-04 14:30:00 +03:00
{{ DateUtils .TimeSince .Issue .UpdatedUnix }}
2023-06-06 18:17:56 +03:00
{{ else }}
2024-11-04 14:30:00 +03:00
{{ DateUtils .TimeSince .UpdatedUnix }}
2023-06-06 18:17:56 +03:00
{{ end }}
2023-05-25 05:31:26 +03:00
</div>
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
2024-03-24 19:42:49 +03:00
<div class="notifications-buttons tw-items-center tw-justify-end tw-gap-1 tw-px-1">
2023-05-25 05:31:26 +03:00
{{ if ne .Status 3 }}
2023-06-14 21:17:58 +03:00
<form action=" {{ AppSubUrl }} /notifications/status" method="post">
2023-05-25 05:31:26 +03:00
{{ $ .CsrfTokenHtml }}
<input type="hidden" name="notification_id" value=" {{ .ID }} ">
<input type="hidden" name="status" value="pinned">
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
2024-03-24 19:42:49 +03:00
<button class="btn interact-bg tw-p-2" title=" {{ ctx .Locale .Tr "notification.pin" }} "
2023-05-25 05:31:26 +03:00
data-url=" {{ AppSubUrl }} /notifications/status"
data-status="pinned"
data-page=" {{ $ .Page .Paginater .Current }} "
data-notification-id=" {{ .ID }} "
data-q=" {{ $ .Keyword }} ">
{{ svg "octicon-pin" }}
</button>
</form>
{{ end }}
{{ if or ( eq .Status 1 ) ( eq .Status 3 ) }}
2023-06-14 21:17:58 +03:00
<form action=" {{ AppSubUrl }} /notifications/status" method="post">
2023-05-25 05:31:26 +03:00
{{ $ .CsrfTokenHtml }}
<input type="hidden" name="notification_id" value=" {{ .ID }} ">
<input type="hidden" name="status" value="read">
<input type="hidden" name="page" value=" {{ $ .Page .Paginater .Current }} ">
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
2024-03-24 19:42:49 +03:00
<button class="btn interact-bg tw-p-2" title=" {{ ctx .Locale .Tr "notification.mark_as_read" }} "
2023-05-25 05:31:26 +03:00
data-url=" {{ AppSubUrl }} /notifications/status"
data-status="read"
data-page=" {{ $ .Page .Paginater .Current }} "
data-notification-id=" {{ .ID }} "
data-q=" {{ $ .Keyword }} ">
{{ svg "octicon-check" }}
</button>
</form>
{{ else if eq .Status 2 }}
2023-06-14 21:17:58 +03:00
<form action=" {{ AppSubUrl }} /notifications/status" method="post">
2023-05-25 05:31:26 +03:00
{{ $ .CsrfTokenHtml }}
<input type="hidden" name="notification_id" value=" {{ .ID }} ">
<input type="hidden" name="status" value="unread">
<input type="hidden" name="page" value=" {{ $ .Page .Paginater .Current }} ">
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
2024-03-24 19:42:49 +03:00
<button class="btn interact-bg tw-p-2" title=" {{ ctx .Locale .Tr "notification.mark_as_unread" }} "
2023-05-25 05:31:26 +03:00
data-url=" {{ AppSubUrl }} /notifications/status"
data-status="unread"
data-page=" {{ $ .Page .Paginater .Current }} "
data-notification-id=" {{ .ID }} "
data-q=" {{ $ .Keyword }} ">
{{ svg "octicon-bell" }}
</button>
</form>
{{ end }}
</div>
</div>
{{ end }}
{{ end }}
</div>
2021-04-11 06:46:37 +03:00
</div>
{{ template "base/paginate" . }}
</div>
2020-04-24 06:57:38 +03:00
</div>