Added is_empty to model presented to unit.html
This commit is contained in:
@@ -271,7 +271,8 @@ def edit_unit(request, location):
|
||||
component_templates[template.location.category].append((
|
||||
template.display_name,
|
||||
template.location.url(),
|
||||
'markdown' in template.metadata
|
||||
'markdown' in template.metadata,
|
||||
template.location.name == 'Empty'
|
||||
))
|
||||
|
||||
components = [
|
||||
|
||||
@@ -152,13 +152,16 @@
|
||||
% for type, templates in sorted(component_templates.items()):
|
||||
<div class="new-component-templates new-component-${type}">
|
||||
<ul class="new-component-template">
|
||||
% for name, location, has_markdown in templates:
|
||||
% for name, location, has_markdown, is_empty in templates:
|
||||
<li>
|
||||
<a href="#" data-location="${location}">
|
||||
<span class="name">${name}
|
||||
% if has_markdown:
|
||||
MD
|
||||
% endif
|
||||
% if is_empty:
|
||||
<i>rasa</i>
|
||||
% endif
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user