Skip to content

Commit 727d7a0

Browse files
committed
Merge remote-tracking branch 'giteaofficial/main'
* giteaofficial/main: Github style following followers (#19482) alpine 3.16 (go-gitea#19797)
2 parents 83ef23e + 35d0358 commit 727d7a0

File tree

3 files changed

+5
-16
lines changed

3 files changed

+5
-16
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#Build stage
2-
FROM golang:1.18-alpine3.15 AS build-env
2+
FROM golang:1.18-alpine3.16 AS build-env
33

44
ARG GOPROXY
55
ENV GOPROXY ${GOPROXY:-direct}
@@ -23,7 +23,7 @@ RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
2323
# Begin env-to-ini build
2424
RUN go build contrib/environment-to-ini/environment-to-ini.go
2525

26-
FROM alpine:3.15
26+
FROM alpine:3.16
2727
LABEL maintainer="[email protected]"
2828

2929
EXPOSE 22 3000

Dockerfile.rootless

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#Build stage
2-
FROM golang:1.18-alpine3.15 AS build-env
2+
FROM golang:1.18-alpine3.16 AS build-env
33

44
ARG GOPROXY
55
ENV GOPROXY ${GOPROXY:-direct}
@@ -23,7 +23,7 @@ RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
2323
# Begin env-to-ini build
2424
RUN go build contrib/environment-to-ini/environment-to-ini.go
2525

26-
FROM alpine:3.15
26+
FROM alpine:3.16
2727
LABEL maintainer="[email protected]"
2828

2929
EXPOSE 2222 3000

templates/user/profile.tmpl

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
{{if .Owner.FullName}}<span class="header text center">{{.Owner.FullName}}</span>{{end}}
1818
<span class="username text center">{{.Owner.Name}}</span>
1919
<a href="{{.Owner.HomeLink}}.rss"><i class="ui grey icon tooltip ml-3" data-content="{{.i18n.Tr "rss_feed"}}" data-position="bottom center">{{svg "octicon-rss" 18}}</i></a>
20+
<a class="muted" href="{{.Owner.HomeLink}}?tab=followers">{{svg "octicon-person" 18 "mr-2"}}{{.Owner.NumFollowers}} {{.i18n.Tr "user.followers"}}</a> · <a class="muted" href="{{.Owner.HomeLink}}?tab=following">{{.Owner.NumFollowing}} {{.i18n.Tr "user.following"}}</a>
2021
</div>
2122
<div class="extra content word-break">
2223
<ul>
@@ -108,18 +109,6 @@
108109
{{svg "octicon-eye"}} {{.i18n.Tr "user.watched"}}
109110
</a>
110111
{{end}}
111-
<a class='{{if eq .TabName "following"}}active{{end}} item' href="{{.Owner.HomeLink}}?tab=following">
112-
{{svg "octicon-person"}} {{.i18n.Tr "user.following"}}
113-
{{if .Owner.NumFollowing}}
114-
<div class="ui primary label">{{.Owner.NumFollowing}}</div>
115-
{{end}}
116-
</a>
117-
<a class='{{if eq .TabName "followers"}}active{{end}} item' href="{{.Owner.HomeLink}}?tab=followers">
118-
{{svg "octicon-person"}} {{.i18n.Tr "user.followers"}}
119-
{{if .Owner.NumFollowers}}
120-
<div class="ui primary label">{{.Owner.NumFollowers}}</div>
121-
{{end}}
122-
</a>
123112
</div>
124113

125114
{{if eq .TabName "activity"}}

0 commit comments

Comments
 (0)