Skip to content

Commit 78df776

Browse files
committed
fix: Details page editing time value adjustment
1 parent bca8273 commit 78df776

File tree

6 files changed

+6
-80
lines changed

6 files changed

+6
-80
lines changed

cmd/wire_gen.go

Lines changed: 2 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/docs.go

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,3 @@
1-
/*
2-
* Licensed to the Apache Software Foundation (ASF) under one
3-
* or more contributor license agreements. See the NOTICE file
4-
* distributed with this work for additional information
5-
* regarding copyright ownership. The ASF licenses this file
6-
* to you under the Apache License, Version 2.0 (the
7-
* "License"); you may not use this file except in compliance
8-
* with the License. You may obtain a copy of the License at
9-
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
11-
*
12-
* Unless required by applicable law or agreed to in writing,
13-
* software distributed under the License is distributed on an
14-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
* KIND, either express or implied. See the License for the
16-
* specific language governing permissions and limitations
17-
* under the License.
18-
*/
19-
201
// Package docs Code generated by swaggo/swag. DO NOT EDIT
212
package docs
223

docs/swagger.yaml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
1-
# Licensed to the Apache Software Foundation (ASF) under one
2-
# or more contributor license agreements. See the NOTICE file
3-
# distributed with this work for additional information
4-
# regarding copyright ownership. The ASF licenses this file
5-
# to you under the Apache License, Version 2.0 (the
6-
# "License"); you may not use this file except in compliance
7-
# with the License. You may obtain a copy of the License at
8-
#
9-
# http://www.apache.org/licenses/LICENSE-2.0
10-
#
11-
# Unless required by applicable law or agreed to in writing,
12-
# software distributed under the License is distributed on an
13-
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14-
# KIND, either express or implied. See the License for the
15-
# specific language governing permissions and limitations
16-
# under the License.
17-
181
basePath: /
192
definitions:
203
constant.NotificationChannelKey:

internal/service/mock/siteinfo_repo_mock.go

Lines changed: 0 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/.env.production

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ ESLINT_NO_DEV_ERRORS=true
33
PUBLIC_URL=/
44
REACT_APP_API_URL=/
55
REACT_APP_BASE_URL=
6+
REACT_APP_API_BASE_URL=

ui/template/question-detail.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ <h1 class="h3 mb-3 text-wrap text-break">
4848
datetime="{{timeFormatISO $.timezone .detail.CreateTime}}"
4949
title="{{translatorTimeFormatLongDate $.language $.timezone .detail.CreateTime}}">{{translator $.language "ui.question_detail.created"}} {{translatorTimeFormat $.language $.timezone .detail.CreateTime}}
5050
</time>
51-
{{if gt .detail.EditTime 0}}
51+
{{if gt .detail.QuestionUpdateTime 0}}
5252
<time class="me-3 link-secondary"
53-
datetime="{{timeFormatISO $.timezone .detail.EditTime}}"
54-
title="{{translatorTimeFormatLongDate $.language $.timezone .detail.EditTime}}">{{translator $.language "ui.question_detail.Edited"}} {{translatorTimeFormat $.language $.timezone .detail.EditTime}}
53+
datetime="{{timeFormatISO $.timezone .detail.QuestionUpdateTime}}"
54+
title="{{translatorTimeFormatLongDate $.language $.timezone .detail.QuestionUpdateTime}}">{{translator $.language "ui.question_detail.Edited"}} {{translatorTimeFormat $.language $.timezone .detail.QuestionUpdateTime}}
5555
</time>
5656
{{end}}
5757
<div class="me-3">{{translator $.language "ui.question_detail.Views"}} {{.detail.ViewCount}}</div>

0 commit comments

Comments
 (0)