Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Hierarchy HTML template only emits <ul> if there are subclasses avail…

…able for given class.
  • Loading branch information...
commit b808277e9fe8e24e538d63751306ac569aea3b74 1 parent 68bf01b
@tomaz authored
View
1  Generating/GBHTMLTemplateVariablesProvider.m
@@ -415,6 +415,7 @@ - (NSArray *)arrayFromHierarchyLevel:(NSDictionary *)level {
NSMutableDictionary *classData = [NSMutableDictionary dictionary];
[classData setObject:name forKey:@"name"];
[classData setObject:subclasses forKey:@"classes"];
+ [classData setObject:[subclasses count] > 0 ? [GRYes yes] : [GRNo no] forKey:@"hasClasses"];
[result addObject:classData];
}];
return result;
View
2  Templates/html/hierarchy-template.html
@@ -54,9 +54,11 @@ <h2 class="index-title">{{strings/hierarchyPage/categoriesTitle}}</h2>
</html>
Section Classes
+{{#hasClasses}}
<ul>
{{#classes}}
<li>{{name}}{{>Classes}}</li>
{{/classes}}
</ul>
+{{/hasClasses}}
EndSection
Please sign in to comment.
Something went wrong with that request. Please try again.