#20709 closed New feature (fixed)
Allow widthratio tag to accept "as" parameter to put result in the template context
Reported by: | Owned by: | jonathanslenders | |
---|---|---|---|
Component: | Template system | Version: | 1.5 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
<div class="bar" style="width:{% widthratio x y 100 %}%">
{% widthratio x y 100 %}%
</div>
Attachments (1)
Change History (12)
comment:1 by , 11 years ago
Summary: | widthratio tag to accept "as" parameter to put result to the template context → Allow widthratio tag to accept "as" parameter to put result in the template context |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 11 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:5 by , 11 years ago
Needs documentation: | set |
---|
Looks good. The addition to AUTHORS should be alphabetized. You also need update the documentation: describe the change in docs/ref/templates/builtins.txt
with a .. versionchanged:: 1.7
directive and also mention it in docs/releases/1.7.txt
comment:7 by , 11 years ago
New patch in attachment and pull requested updated: https://github.com/django/django/pull/1472/files
comment:9 by , 11 years ago
Has patch: | set |
---|---|
Needs documentation: | unset |
Thanks, looks good. FYI, you don't need to attach a patch *and* send a pull request. Also for future reference, please don't mark your own patch as "Ready for checkin". That needs to be done by a different reviewer. Also be sure to set the "Has Patch" and other flags on the ticket so the ticket is in the right state. See the triaging tickets page.
comment:10 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Is it okay, to make widthratio as follows?
I'll do it, it's an easy one.