Replace private="true" with visibility="private" in .soy files private="true" has never done very much unfortunately. There is an alternate way to mark templates as private by setting 'visibility="private"' which does get enforced both by the soy compiler and by custom per-language strategies in the various backends. Change-Id: Ie85ab67742ad429ab4cff954868b5a17aa14a07d
diff --git a/gitiles-servlet/src/main/resources/com/google/gitiles/templates/ObjectDetail.soy b/gitiles-servlet/src/main/resources/com/google/gitiles/templates/ObjectDetail.soy index a740370..38b5735 100644 --- a/gitiles-servlet/src/main/resources/com/google/gitiles/templates/ObjectDetail.soy +++ b/gitiles-servlet/src/main/resources/com/google/gitiles/templates/ObjectDetail.soy
@@ -324,7 +324,7 @@ * @param name name. * @param email email. */ -{template .person_ private="true"} +{template .person_ visibility="private"} {$name}{if $email} <{$email}>{/if} {/template} @@ -336,7 +336,7 @@ * text: raw text of the part. * url: optional URL that should be linked to from the part. */ -{template .message_ private="true"} +{template .message_ visibility="private"} <pre class="{$className}"> {foreach $part in $message} {if $part.url}<a href="{$part.url}">{$part.text}</a>{else}{$part.text}{/if}
diff --git a/gitiles-servlet/src/main/resources/com/google/gitiles/templates/RepositoryIndex.soy b/gitiles-servlet/src/main/resources/com/google/gitiles/templates/RepositoryIndex.soy index 3ab7d5b..78f5b79 100644 --- a/gitiles-servlet/src/main/resources/com/google/gitiles/templates/RepositoryIndex.soy +++ b/gitiles-servlet/src/main/resources/com/google/gitiles/templates/RepositoryIndex.soy
@@ -101,7 +101,7 @@ * @param? branches list of branch objects with url and name keys. * @param? moreBranchesUrl URL to show more branches, if necessary. */ -{template .branches_ private="true"} +{template .branches_ visibility="private"} {if length($branches)} {call .refList} {param type: 'Branches' /} @@ -119,7 +119,7 @@ * @param? tags list of branch objects with url and name keys. * @param? moreTagsUrl URL to show more tags, if necessary. */ -{template .tags_ private="true"} +{template .tags_ visibility="private"} {if length($tags)} {call .refList} {param type: 'Tags' /}