mirror of
https://github.com/pd4d10/git-touch.git
synced 2026-05-22 15:21:11 -05:00
fix(gl): project commits
This commit is contained in:
@@ -114,13 +114,14 @@ class GlProjectScreen extends StatelessWidget {
|
||||
TableView(
|
||||
hasIcon: true,
|
||||
items: [
|
||||
if (p.statistics != null)
|
||||
TableViewItem(
|
||||
leftIconData: Octicons.code,
|
||||
text: Text(langs.keys.isEmpty ? 'Code' : langs.keys.first),
|
||||
rightWidget: Text(filesize(p.statistics.repositorySize)),
|
||||
url: '/gitlab/projects/$id/tree/${p.defaultBranch}',
|
||||
),
|
||||
TableViewItem(
|
||||
leftIconData: Octicons.code,
|
||||
text: Text(langs.keys.isEmpty ? 'Code' : langs.keys.first),
|
||||
rightWidget: p.statistics == null
|
||||
? null
|
||||
: Text(filesize(p.statistics.repositorySize)),
|
||||
url: '/gitlab/projects/$id/tree/${p.defaultBranch}',
|
||||
),
|
||||
if (p.issuesEnabled)
|
||||
TableViewItem(
|
||||
leftIconData: Octicons.issue_opened,
|
||||
@@ -134,13 +135,14 @@ class GlProjectScreen extends StatelessWidget {
|
||||
text: Text('Merge requests'),
|
||||
url: '/gitlab/projects/$id/merge_requests?prefix=$prefix',
|
||||
),
|
||||
if (p.statistics != null)
|
||||
TableViewItem(
|
||||
leftIconData: Octicons.history,
|
||||
text: Text('Commits'),
|
||||
rightWidget: Text(p.statistics.commitCount.toString()),
|
||||
url: '/gitlab/projects/$id/commits?prefix=$prefix',
|
||||
),
|
||||
TableViewItem(
|
||||
leftIconData: Octicons.history,
|
||||
text: Text('Commits'),
|
||||
rightWidget: p.statistics == null
|
||||
? null
|
||||
: Text(p.statistics.commitCount.toString()),
|
||||
url: '/gitlab/projects/$id/commits?prefix=$prefix',
|
||||
),
|
||||
],
|
||||
),
|
||||
CommonStyle.verticalGap,
|
||||
|
||||
Reference in New Issue
Block a user