Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
website
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Ask
website
Commits
0c0c0e5b
Commit
0c0c0e5b
authored
Aug 25, 2012
by
Giuseppe Terrasi
Browse files
Options
Browse Files
Download
Plain Diff
update 00-FIXME
parents
0715316a
65811676
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
00-FIXME
00-FIXME
+2
-0
forum/templatetags/extra_tags.py
forum/templatetags/extra_tags.py
+3
-3
No files found.
00-FIXME
View file @
0c0c0e5b
...
...
@@ -57,6 +57,8 @@ FIXME: proporre cambiamento upstream come da lp:~giuseppeterrasi/ubuntu-it-ask/l
= forum/templatetags/extra_tags.py =
FIXME: proporre cambiamento upstream come da lp:~giuseppeterrasi/ubuntu-it-ask/l18ned
Revert parziale con modifica 64 ramo dev, attraverso questo merge [1]
[1] https://code.launchpad.net/~giuseppeterrasi/ubuntu-it-ask/revert-extra-tag/+merge/121304
= forum_modules/pgfulltext =
...
...
forum/templatetags/extra_tags.py
View file @
0c0c0e5b
...
...
@@ -167,11 +167,11 @@ def diff_date(date, limen=2):
elif
days
==
1
:
return
_
(
'yesterday'
)
elif
minutes
>=
60
:
return
ungettext
(
"%(hr)d hour ago"
,
"%(hr)d hours ago"
,
hours
)
%
{
'hr'
:
hours
}
return
ungettext
(
'%(hr)d '
+
_
(
"hour ago"
),
'%(hr)d '
+
_
(
"hours ago"
)
,
hours
)
%
{
'hr'
:
hours
}
elif
diff
.
seconds
>=
60
:
return
ungettext
(
"%(min)d min ago"
,
"%(min)d mins ago"
,
minutes
)
%
{
'min'
:
minutes
}
return
ungettext
(
'%(min)d '
+
_
(
"min ago"
),
'%(min)d '
+
_
(
"mins ago"
)
,
minutes
)
%
{
'min'
:
minutes
}
else
:
return
ungettext
(
"%(sec)d sec ago"
,
"%(sec)d secs ago"
,
diff
.
seconds
)
%
{
'sec'
:
diff
.
seconds
}
return
ungettext
(
'%(sec)d '
+
_
(
"sec ago"
),
'%(sec)d '
+
_
(
"secs ago"
)
,
diff
.
seconds
)
%
{
'sec'
:
diff
.
seconds
}
@
register
.
simple_tag
def
media
(
url
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment