Browse Source

Add number of changes to the change list view

This commit adds number of changes to the change list view. We have
similar value in the project list view but not in the change list view.

Change-Id: I5409c4d0cd6ec84d181274d113f97e835d673ddf
changes/91/391991/1
Masayuki Igawa 5 years ago
committed by Masayuki Igawa
parent
commit
473bd972c1
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      gertty/view/change_list.py

+ 4
- 2
gertty/view/change_list.py View File

@ -345,9 +345,11 @@ class ChangeListView(urwid.WidgetWrap, mywid.Searchable):
change_list = session.getChanges(self.query, self.unreviewed,
sort_by=self.sort_by)
if self.unreviewed:
self.title = u'Unreviewed changes in %s' % self.query_desc
self.title = (u'Unreviewed %d changes in %s' %
(len(change_list), self.query_desc))
else:
self.title = u'All changes in %s' % self.query_desc
self.title = (u'All %d changes in %s' %
(len(change_list), self.query_desc))
self.short_title = self.query_desc
if '/' in self.short_title and ' ' not in self.short_title:
i = self.short_title.rfind('/')


Loading…
Cancel
Save