File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -162,6 +162,7 @@ type Repository struct {
162
162
BaseRepo * Repository `xorm:"-"`
163
163
IsTemplate bool `xorm:"INDEX NOT NULL DEFAULT false"`
164
164
TemplateID int64 `xorm:"INDEX"`
165
+ // the size of git repository directory itself, not include lfs/package/attachment size
165
166
Size int64 `xorm:"NOT NULL DEFAULT 0"`
166
167
LFSSize int64 `xorm:"NOT NULL DEFAULT 0"`
167
168
CodeIndexerStatus * RepoIndexerStatus `xorm:"-"`
Original file line number Diff line number Diff line change 16
16
<label for="repo_name">{{.locale.Tr "repo.repo_name"}}</label>
17
17
<input id="repo_name" name="repo_name" value="{{.Repository.Name}}" data-repo-name="{{.Repository.Name}}" autofocus required>
18
18
</div>
19
- <div class="inline field" {{ if not (eq .Repository.LFSSize 0)}}title ="git: {{FileSize .Repository.Size}}, lfs: {{FileSize .Repository.LFSSize}}"{{end}}>
19
+ <div class="inline field{{if not (eq .Repository.LFSSize 0)}} tooltip{{end}}"{{ if not (eq .Repository.LFSSize 0)}} data-content ="git: {{FileSize .Repository.Size}}, lfs: {{FileSize .Repository.LFSSize}}"{{end}}>
20
20
<label>{{.locale.Tr "repo.repo_size"}}</label>
21
21
<span>{{FileSize (Add .Repository.Size .Repository.LFSSize)}}</span>
22
22
</div>
Original file line number Diff line number Diff line change 15
15
</div>
16
16
{{end}}
17
17
<div class="item">
18
- <span class="ui" {{ if not (eq .Repository.LFSSize 0)}}title ="git: {{FileSize .Repository.Size}}, lfs: {{FileSize .Repository.LFSSize}}"{{end}}>
18
+ <span class="ui{{if not (eq .Repository.LFSSize 0)}} tooltip{{end}}"{{ if not (eq .Repository.LFSSize 0)}} data-content ="git: {{FileSize .Repository.Size}}, lfs: {{FileSize .Repository.LFSSize}}"{{end}}>
19
19
{{svg "octicon-database"}}
20
20
<b>{{FileSize (Add .Repository.Size .Repository.LFSSize)}}</b>
21
21
</span>
You can’t perform that action at this time.
0 commit comments