174 Commits

Author SHA1 Message Date
Kovid Goyal
1e123e35cf
manual formatting 2020-12-24 09:58:26 +05:30
Charles Haley
da52fa1655 Template language: add function connected_device_uuid 2020-12-22 14:44:17 +00:00
Charles Haley
dff123fc0f Template/formatter enhancements:
1) Added a 'for' statement
2) Added the ability for a developer to pass a dict of extra information to a template.
2020-12-19 09:46:41 +00:00
Charles Haley
38055729c8 Fix bug 1900316: Rewrite example in documentation for translations. 2020-10-18 12:27:31 +01:00
Kovid Goyal
8849f5adec
String changes 2020-10-17 13:45:23 +05:30
Charles Haley
794ed146af Minor cleanups of the template documentation 2020-10-16 08:42:01 +01:00
Kovid Goyal
ebf3937628
... 2020-10-16 07:34:00 +05:30
Charles Haley
3b096ca3ff Updates and cleanups of the template documentation.
I don't know if I got the formatting right. In particular I moved the function reference to the end, which I hope doesn't break anything.
2020-10-15 18:55:04 +01:00
Charles Haley
47de6e084d Enhancement: add 'elif' to the formatter if expression 2020-10-12 12:08:23 +01:00
Kovid Goyal
216c5a3629
String changes 2020-10-08 09:58:26 +05:30
Kovid Goyal
2395bc85a8
String changes 2020-10-03 18:36:12 +05:30
Kovid Goyal
bc34075d05
String changes 2020-10-03 15:26:32 +05:30
Kovid Goyal
2d9ac6aa54
Basic cleanups for the python template function merge 2020-10-03 09:18:18 +05:30
Charles Haley
1c56c41b80 Fix the manual 2020-10-02 08:11:51 +01:00
Charles Haley
f839ac96e3 Stored templates 2020-10-01 09:41:18 +01:00
Charles Haley
40a77e05d8 ... 2020-09-28 14:19:09 +01:00
Charles Haley
d4798a11e5 Update the manual 2020-09-28 13:59:24 +01:00
Charles Haley
951f1199c8 Add a new formatter function 'connected_device_name' 2020-09-21 22:25:13 +01:00
Kovid Goyal
d0d0bdd998
Fix warnings from sphinx and gettext 2020-09-20 09:15:50 +05:30
Charles Haley
fb9a388c08 Unreported bug: the V4 template language treated None values as zero. These changes make the new processor do the same thing. Also update the documentation, 2020-09-14 00:59:38 +01:00
Charles Haley
7086be4fe2 Update template documentation 2020-09-06 13:07:15 +01:00
Charles Haley
6e4dada20c Enhancement: add some math functions to the template language: ceiling, floor, fractional_part, mod, and round. 2020-07-31 12:57:13 +01:00
Charles Haley
7cd342f3a2 Enhancement 1885943: Ignore articles when sorting custom columns. Implemented by a new formatter function, swap_around_articles(), that applies title_sort to each item in the list. 2020-07-02 11:48:59 +01:00
Charles Haley
6aa5a51e3b Fix some incorrectly indented sections in the manual by changing some tabs to spaces. 2020-06-25 09:44:26 +01:00
Kovid Goyal
9ba6848530
Remove version spec from python docs links 2020-06-21 14:07:42 +05:30
Charles Haley
222599e870 Add a new template function "rating_to_stars" 2020-06-20 17:12:26 +01:00
Kovid Goyal
19f5c9080b
String changes 2020-06-13 22:50:32 +05:30
Charles Haley
2fc75178d8 Fix for bug #1873106: when bools are not tristate, undefined values don't show emblems/icons as if the value is false. The user must edit and save the rule to see the fix. Changing the tristate preference may require editing the rule to ensure that behavior is correct.
Add a new formatter function to test yes/no columns against a set of conditions, improving the performance of rules containing such conditions.
2020-04-18 18:42:02 +01:00
Kovid Goyal
0c923d9a4f
Fix some escaping issues in the template sections of the manual 2018-09-16 18:10:15 +05:30
Kovid Goyal
557b26f5da
... 2018-01-29 10:09:56 +05:30
Kasijjuf
9841332214 Fix redundant initialism 2017-07-12 19:44:35 -05:00
Charles Haley
bfdf9207cb 1) Make the formatter function in_list work like str_in_list, taking a variable number of arguments
2) Documentation improvements
2017-07-10 09:41:52 +02:00
Charles Haley
7aa8e250b6 Improvement to str_in_list template function. Allow a variable number of tests, drastically improving performance in cases where searching a list must return different values depending on what is found. 2017-07-09 21:02:52 +02:00
Charles Haley
e644758833
Update documentation for format_number 2017-05-21 13:39:39 +05:30
Kovid Goyal
a43d44c6af String changes 2017-04-26 08:53:38 +05:30
Kovid Goyal
1c5eeeae83 String changes 2017-04-26 08:16:39 +05:30
Kovid Goyal
6615ee1305 String changes 2017-04-24 13:15:06 +05:30
Kovid Goyal
cac4365022 String changes 2017-04-23 21:44:20 +05:30
Kovid Goyal
6250435cd9 String changes 2017-04-23 20:24:31 +05:30
Kovid Goyal
30aac83fa8 String changes 2017-04-22 20:26:40 +05:30
Kovid Goyal
40684801db String changes 2017-04-22 11:02:28 +05:30
Charles Haley
4ef1c42505 Remove a stray single quote. 2016-09-12 20:38:04 +02:00
Charles Haley
5f5b2d9b78 Fix example for using composite columns and lookup to switch paths in a save template by adding the # to the lookup name 2016-09-12 20:32:41 +02:00
Kovid Goyal
83548b11b4 ... 2016-04-29 20:06:16 +05:30
Kovid Goyal
d363628887 ... 2016-04-17 22:15:24 +05:30
Kovid Goyal
604b6b36c7 ... 2016-04-17 21:51:58 +05:30
Kovid Goyal
d41e6ca3b1 ... 2016-04-17 21:51:00 +05:30
Kovid Goyal
c73eb12895 ... 2016-04-17 18:51:53 +05:30
Kovid Goyal
d38c80852d ... 2016-04-17 18:30:44 +05:30
Kovid Goyal
6a5de3a8fe ... 2016-04-17 18:03:09 +05:30