##// END OF EJS Templates
show: use filter() function to strip "tip" tag...
Yuya Nishihara -
r38469:b45c353e default
parent child Browse files
Show More
@@ -15,8 +15,11 b" cset_shortnode = '{labelcset(shortest(no"
15 # Treat branch and tags specially so we don't display "default" or "tip"
15 # Treat branch and tags specially so we don't display "default" or "tip"
16 cset_namespace = '{ifeq(namespace, "branches", names_branches, ifeq(namespace, "tags", names_tags, names_others))}'
16 cset_namespace = '{ifeq(namespace, "branches", names_branches, ifeq(namespace, "tags", names_tags, names_others))}'
17 names_branches = '{ifeq(branch, "default", "", " ({label('log.{colorname}', branch)})")}'
17 names_branches = '{ifeq(branch, "default", "", " ({label('log.{colorname}', branch)})")}'
18 names_tags = '{if(stringify(names % "{ifeq(name, 'tip', '', name)}"),
18 names_tags = '{if(filter_tags(names),
19 " ({label('log.{colorname}', join(names % "{ifeq(name, 'tip', '', name)}", ' '))})")}'
19 " ({label('log.{colorname}', join(filter_tags(names), ' '))})")}'
20 names_others = '{if(names, " ({label('log.{colorname}', join(names, ' '))})")}'
20 names_others = '{if(names, " ({label('log.{colorname}', join(names, ' '))})")}'
21
21
22 cset_shortdesc = '{label("log.description", desc|firstline)}'
22 cset_shortdesc = '{label("log.description", desc|firstline)}'
23
24 [templatealias]
25 filter_tags(names) = filter(names, ifeq(name, 'tip', '', name))
General Comments 0
You need to be logged in to leave comments. Login now