Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: Info.plist.tmpl

Issue 6003662790852608: Add label for ToolbarItems in Safari during build (Closed)
Patch Set: Created Jan. 15, 2014, 3:23 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {%- macro str_or_real(value) -%} 1 {%- macro str_or_real(value) -%}
2 {%- if value is number -%} 2 {%- if value is number -%}
3 <real>{{ value }}</real> 3 <real>{{ value }}</real>
4 {%- else -%} 4 {%- else -%}
5 <string>{{ value }}</string> 5 <string>{{ value }}</string>
6 {%- endif -%} 6 {%- endif -%}
7 {%- endmacro -%} 7 {%- endmacro -%}
8 8
9 <?xml version="1.0" encoding="UTF-8"?> 9 <?xml version="1.0" encoding="UTF-8"?>
10 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/ PropertyList-1.0.dtd"> 10 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/ PropertyList-1.0.dtd">
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 {%- endfor %} 65 {%- endfor %}
66 </array> 66 </array>
67 {%- endif %} 67 {%- endif %}
68 {%- if toolbarItems %} 68 {%- if toolbarItems %}
69 <key>Toolbar Items</key> 69 <key>Toolbar Items</key>
70 <array> 70 <array>
71 {%- for identifier, props in toolbarItems.iteritems() %} 71 {%- for identifier, props in toolbarItems.iteritems() %}
72 <dict> 72 <dict>
73 <key>Identifier</key> 73 <key>Identifier</key>
74 <string>{{ identifier }}</string> 74 <string>{{ identifier }}</string>
75 <key>Label</key>
76 <string>{{ name }}</string>
75 {%- for key, value in props.iteritems() %} 77 {%- for key, value in props.iteritems() %}
76 <key>{{ key }}</key> 78 <key>{{ key }}</key>
77 {{ str_or_real(value) }} 79 {{ str_or_real(value) }}
78 {%- endfor %} 80 {%- endfor %}
79 </dict> 81 </dict>
80 {%- endfor %} 82 {%- endfor %}
81 </array> 83 </array>
82 {%- endif %} 84 {%- endif %}
83 </dict> 85 </dict>
84 {%- if startScripts or endScripts %} 86 {%- if startScripts or endScripts %}
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 <string> 152 <string>
151 {%- if not releaseBuild -%} 153 {%- if not releaseBuild -%}
152 https://adblockplus.org/devbuilds/{{ basename }}/updates.plist 154 https://adblockplus.org/devbuilds/{{ basename }}/updates.plist
153 {%- else -%} 155 {%- else -%}
154 {{ updateURL }} 156 {{ updateURL }}
155 {%- endif -%} 157 {%- endif -%}
156 </string> 158 </string>
157 {%- endif %} 159 {%- endif %}
158 </dict> 160 </dict>
159 </plist> 161 </plist>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld