Show More
@@ -213,16 +213,16 b' common_filters = {' | |||
|
213 | 213 | "date": lambda x: util.datestr(x), |
|
214 | 214 | "domain": domain, |
|
215 | 215 | "escape": lambda x: cgi.escape(x, True), |
|
216 |
"firstline": |
|
|
216 | "firstline": lambda x: x.splitlines(1)[0].rstrip('\r\n'), | |
|
217 | 217 | "isodate": isodate, |
|
218 | 218 | "obfuscate": obfuscate, |
|
219 |
"permissions": |
|
|
219 | "permissions": lambda x: x and "-rwxr-xr-x" or "-rw-r--r--", | |
|
220 | 220 | "person": person, |
|
221 | 221 | "rfc822date": lambda x: util.datestr(x, "%a, %d %b %Y %H:%M:%S"), |
|
222 |
"short": |
|
|
222 | "short": lambda x: x[:12], | |
|
223 | 223 | "strip": lambda x: x.strip(), |
|
224 | "urlescape": urllib.quote, | |
|
225 | "user": util.shortuser, | |
|
224 | "urlescape": lambda x: urllib.quote(x), | |
|
225 | "user": lambda x: util.shortuser(x), | |
|
226 | 226 | } |
|
227 | 227 | |
|
228 | 228 | def templatepath(name=None): |
General Comments 0
You need to be logged in to leave comments.
Login now