Allow lists of trackingid footers

Gerrit allows for multiple footers in a single trackingid. If a
footers list is provided, iterate through all its entries; if not
though, we should continue supporting the old footer string
as a fallback.

Change-Id: I99e16246e81b7ebc50e96054a2e3790aed0089bc
This commit is contained in:
Jeremy Stanley 2017-06-05 18:06:02 +00:00
parent 76454dd134
commit 4af0bfe7d4
1 changed files with 6 additions and 0 deletions

View File

@ -148,7 +148,13 @@
<% @trackingids.each do |trackingid| -%>
[trackingid "<%= trackingid['name'] %>"]
match = "<%= trackingid['match'] %>"
<% if trackingid['footers'] -%>
<% trackingid['footers'].each do |footer_value| -%>
footer = "<%= footer_value %>"
<% end -%>
<% else -%>
footer = "<%= trackingid['footer'] %>"
<% end -%>
system = "<%= trackingid['system'] %>"
<% end -%>
[theme]