File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed
DjangoPlugin/tracdjangoplugin Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -131,23 +131,18 @@ class CustomSubNavigationBar(Component):
131
131
132
132
def get_active_navigation_item (self , req ):
133
133
stage = req .args .get ("stage" )
134
- has_patch = req .args .get ("has_patch" )
135
- needs_better_patch = req .args .get ("needs_better_patch" )
136
- needs_docs = req .args .get ("needs_docs" )
137
- needs_tests = req .args .get ("needs_tests" )
138
134
139
135
if stage == "Unreviewed" :
140
136
return "unreviewed"
141
137
if stage == "Ready for checkin" :
142
138
return "ready_for_checkin"
143
- if stage == "Accepted" and has_patch == "0" :
144
- return "needs_patch"
145
- if (stage == "Accepted" and has_patch == "1" and needs_better_patch == "0"
146
- and needs_docs == "0" and needs_tests == "0"
147
- ):
148
- return "needs_pr_review"
149
- if stage == "Accepted" and has_patch == "1" :
150
- return "waiting_on_author"
139
+ if stage == "Accepted" :
140
+ if req .query_string == self .queues [1 ]["params" ]:
141
+ return "needs_patch"
142
+ elif req .query_string == self .queues [2 ]["params" ]:
143
+ return "needs_pr_review"
144
+ elif req .query_string == self .queues [3 ]["params" ]:
145
+ return "waiting_on_author"
151
146
152
147
return ""
153
148
You can’t perform that action at this time.
0 commit comments