Code

Opened 4 years ago

Closed 3 years ago

#12771 closed Uncategorized (fixed)

Humanize with natural time

Reported by: phinpho Owned by: djansoft
Component: contrib.humanize Version:
Severity: Normal Keywords:
Cc: jezdez Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX:

Description

I create a new template function like naturalday but working with time, and I called it naturaltime.

Attachments (3)

humanize+naturaltime.diff (2.1 KB) - added by phinpho 4 years ago.
patch for templatetag naturaltime
bug_12771.diff (4.0 KB) - added by djansoft 4 years ago.
Fixed bug in patch and adding tests.
patch_with_docs.diff (5.3 KB) - added by xtrqt 3 years ago.
Added documentation.

Download all attachments as: .zip

Change History (13)

Changed 4 years ago by phinpho

patch for templatetag naturaltime

comment:1 Changed 4 years ago by Alex

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 4 years ago by kmtracey

  • Needs documentation set
  • Needs tests set

comment:3 Changed 4 years ago by jezdez

  • Cc jezdez added

comment:4 Changed 4 years ago by anonymous

  • Owner changed from nobody to anonymous
  • Status changed from new to assigned

comment:5 Changed 4 years ago by anonymous

  • Owner changed from anonymous to djansoft
  • Status changed from assigned to new

Changed 4 years ago by djansoft

Fixed bug in patch and adding tests.

comment:6 Changed 4 years ago by djansoft

  • Needs tests unset

comment:7 Changed 4 years ago by russellm

  • milestone 1.2 deleted
  • Version 1.1 deleted

Changed 3 years ago by xtrqt

Added documentation.

comment:8 Changed 3 years ago by xtrqt

  • Needs documentation unset
  • Triage Stage changed from Accepted to Ready for checkin

comment:9 Changed 3 years ago by jezdez

  • Component changed from Template system to contrib.humanize
  • Easy pickings unset
  • Severity set to Normal
  • Type set to Uncategorized

comment:10 Changed 3 years ago by jezdez

  • Resolution set to fixed
  • Status changed from new to closed

In [16071]:

Fixed #12771 -- Added naturaltime filter to humanize contrib app. Thanks, phinpho, djansoft and xtrqt.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.