Skip to content

Commit a5fb15e

Browse files
committed
fix lint
Signed-off-by: a1012112796 <[email protected]>
1 parent 1dfd604 commit a5fb15e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

models/repo/repo.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,12 @@ type Repository struct {
157157
Units []*RepoUnit `xorm:"-"`
158158
PrimaryLanguage *LanguageStat `xorm:"-"`
159159

160-
IsFork bool `xorm:"INDEX NOT NULL DEFAULT false"`
161-
ForkID int64 `xorm:"INDEX"`
162-
BaseRepo *Repository `xorm:"-"`
163-
IsTemplate bool `xorm:"INDEX NOT NULL DEFAULT false"`
164-
TemplateID int64 `xorm:"INDEX"`
165-
// the size of git repository directory itself, not include lfs/package/attachment size
160+
IsFork bool `xorm:"INDEX NOT NULL DEFAULT false"`
161+
ForkID int64 `xorm:"INDEX"`
162+
BaseRepo *Repository `xorm:"-"`
163+
IsTemplate bool `xorm:"INDEX NOT NULL DEFAULT false"`
164+
TemplateID int64 `xorm:"INDEX"`
165+
// the size of git repository directory itself, not include lfs/package/attachment size
166166
Size int64 `xorm:"NOT NULL DEFAULT 0"`
167167
LFSSize int64 `xorm:"NOT NULL DEFAULT 0"`
168168
CodeIndexerStatus *RepoIndexerStatus `xorm:"-"`

templates/user/settings/repos.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<span class="icon">{{svg "octicon-repo"}}</span>
2828
{{end}}
2929
<a class="name" href="{{$repo.Link}}">{{$repo.OwnerName}}/{{$repo.Name}}</a>
30-
<span {{if not (eq $repo.LFSSize 0)}}title="git: {{FileSize $repo.Size}}, lfs: {{FileSize $repo.LFSSize}}"{{end}}>
30+
<span class="ui{{if not (eq $repo.LFSSize 0)}} tooltip{{end}}"{{if not (eq $repo.LFSSize 0)}} data-content="git: {{FileSize $repo.Size}}, lfs: {{FileSize $repo.LFSSize}}"{{end}}>
3131
{{FileSize (Add $repo.Size $repo.LFSSize)}}
3232
</span>
3333
{{if $repo.IsFork}}

0 commit comments

Comments
 (0)