Browse Source

Highlight WIP state in change view

To help reviewers notice WIP changes (which can't merge) highlight
that status.

Change-Id: If1a8cb0d6d8f3b29981ac58d6d5900898847e286
changes/15/783315/1
James E. Blair 4 months ago
parent
commit
363114eb7a
  1. 1
      gertty/palette.py
  2. 2
      gertty/view/change.py

1
gertty/palette.py

@ -80,6 +80,7 @@ DEFAULT_PALETTE={
'check-SCHEDULED': ['dark magenta', '', ''],
'check-RUNNING': ['dark magenta', ''],
'check-NOT_RELEVANT': ['dark gray', ''],
'state-wip': ['yellow', ''],
# project list
'unreviewed-project': ['white', ''],
'subscribed-project': ['default', ''],

2
gertty/view/change.py

@ -747,7 +747,7 @@ class ChangeView(urwid.WidgetWrap):
self.hashtags_label.set_text(('change-data', hashtag_buttons or u''))
self.created_label.set_text(('change-data', str(self.app.time(change.created))))
self.updated_label.set_text(('change-data', str(self.app.time(change.updated))))
stat = change.wip and 'WIP' or change.status
stat = change.wip and ('state-wip', 'WIP') or change.status
self.status_label.set_text(('change-data', stat))
self.permalink_url = urlparse.urljoin(self.app.config.url, str(change.number))
self.permalink_label.text.set_text(('change-data', self.permalink_url))

Loading…
Cancel
Save