mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-14 00:01:44 -04:00
Compare commits
2 Commits
782c376c8b
...
9dfdfe2389
Author | SHA1 | Date | |
---|---|---|---|
|
9dfdfe2389 | ||
|
4439a68911 |
@ -344,6 +344,9 @@ func NotificationWatching(ctx *context.Context) {
|
||||
page = 1
|
||||
}
|
||||
|
||||
keyword := ctx.FormTrim("q")
|
||||
ctx.Data["Keyword"] = keyword
|
||||
|
||||
var orderBy db.SearchOrderBy
|
||||
ctx.Data["SortType"] = ctx.FormString("sort")
|
||||
switch ctx.FormString("sort") {
|
||||
@ -378,7 +381,7 @@ func NotificationWatching(ctx *context.Context) {
|
||||
Page: page,
|
||||
},
|
||||
Actor: ctx.Doer,
|
||||
Keyword: ctx.FormTrim("q"),
|
||||
Keyword: keyword,
|
||||
OrderBy: orderBy,
|
||||
Private: ctx.IsSigned,
|
||||
WatchedByID: ctx.Doer.ID,
|
||||
|
@ -35,26 +35,26 @@
|
||||
{{$issue := .Issue}}
|
||||
{{$repo := .Repository}}
|
||||
<tr id="notification_{{.ID}}">
|
||||
<td class="collapsing" data-href="{{.Link}}">
|
||||
<td class="collapsing gt-pl-4" data-href="{{.Link}}">
|
||||
{{if eq .Status 3}}
|
||||
<span class="blue">{{svg "octicon-pin"}}</span>
|
||||
{{svg "octicon-pin" 16 "text blue"}}
|
||||
{{else if not $issue}}
|
||||
<span class="gray">{{svg "octicon-repo"}}</span>
|
||||
{{svg "octicon-repo" 16 "text grey"}}
|
||||
{{else if $issue.IsPull}}
|
||||
{{if $issue.IsClosed}}
|
||||
{{if $issue.GetPullRequest.HasMerged}}
|
||||
<span class="purple">{{svg "octicon-git-merge"}}</span>
|
||||
{{svg "octicon-git-merge" 16 "text purple"}}
|
||||
{{else}}
|
||||
<span class="red">{{svg "octicon-git-pull-request"}}</span>
|
||||
{{svg "octicon-git-pull-request" 16 "text red"}}
|
||||
{{end}}
|
||||
{{else}}
|
||||
<span class="green">{{svg "octicon-git-pull-request"}}</span>
|
||||
{{svg "octicon-git-pull-request" 16 "text green"}}
|
||||
{{end}}
|
||||
{{else}}
|
||||
{{if $issue.IsClosed}}
|
||||
<span class="red">{{svg "octicon-issue-closed"}}</span>
|
||||
{{svg "octicon-issue-closed" 16 "text red"}}
|
||||
{{else}}
|
||||
<span class="green">{{svg "octicon-issue-opened"}}</span>
|
||||
{{svg "octicon-issue-opened" 16 "text green"}}
|
||||
{{end}}
|
||||
{{end}}
|
||||
</td>
|
||||
|
@ -85,27 +85,6 @@
|
||||
padding: 8px 15px;
|
||||
}
|
||||
|
||||
.user.notification .svg {
|
||||
float: left;
|
||||
font-size: 2em;
|
||||
}
|
||||
|
||||
.user.notification .svg.green {
|
||||
color: var(--color-green);
|
||||
}
|
||||
|
||||
.user.notification .svg.red {
|
||||
color: var(--color-red);
|
||||
}
|
||||
|
||||
.user.notification .svg.purple {
|
||||
color: var(--color-purple);
|
||||
}
|
||||
|
||||
.user.notification .svg.blue {
|
||||
color: var(--color-blue);
|
||||
}
|
||||
|
||||
.user.notification .content {
|
||||
float: left;
|
||||
margin-left: 7px;
|
||||
@ -170,4 +149,13 @@
|
||||
|
||||
#notification_div .tab.segment {
|
||||
overflow-x: auto;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#notification_div .menu .active.item {
|
||||
background: var(--color-box-body);
|
||||
}
|
||||
|
||||
#notification_table {
|
||||
border: none;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user