Closed
Bug 781851
Opened 12 years ago
Closed 11 years ago
[shipping] clean up Milestone.status and redirect shortcut use
Categories
(Webtools Graveyard :: Elmo, defect, P5)
Tracking
(Not tracked)
RESOLVED
FIXED
3.1
People
(Reporter: peterbe, Assigned: peterbe)
References
Details
Attachments
(1 file)
7.75 KB,
patch
|
Pike
:
review+
|
Details | Diff | Splinter Review |
The views code in shipping uses http.HttpRedirect() instead of the redirect() shortcut. Instead of things like status=Milestone.OPEN it does things like status=1.
Assignee | ||
Comment 1•12 years ago
|
||
Note-to-self: This might also mean changing some templates where the numbers are used. Instead, do something like this:: return render('template', {"Milestone": Milestone, ...}) So you can do this in the templates:: {% if something.status == Milestone.OPEN %} instead of {% if something.status == 1 %} milestone.html, index.html, about-milestone.html, etc.
Assignee: nobody → peterbe
Assignee | ||
Comment 2•12 years ago
|
||
Pro tip from Pike:: find apps/shipping/templates/shipping/ -type f|xargs grep \\.status
Priority: -- → P5
Assignee | ||
Comment 3•11 years ago
|
||
Attachment #700030 -
Flags: review?(l10n)
Updated•11 years ago
|
Attachment #700030 -
Flags: review?(l10n) → review+
Comment 4•11 years ago
|
||
Commit pushed to develop at https://github.com/mozilla/elmo https://github.com/mozilla/elmo/commit/2ab662861f236030cb68e9b2c8b18024fb363023 bug 781851 - milestone status use, r=Pike
Assignee | ||
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Target Milestone: --- → 3.1
Updated•4 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•