Commit fc3b7d8b by Adam Palay

light refactoring

parent f5e95e49
...@@ -47,11 +47,12 @@ define(['jquery', 'underscore', 'gettext', 'js/views/baseview', 'common/js/compo ...@@ -47,11 +47,12 @@ define(['jquery', 'underscore', 'gettext', 'js/views/baseview', 'common/js/compo
}, },
render: function() { render: function() {
if (this.model.get('number_children') > 3) {
this.renderNudge();
} else {
this.renderNormal(); this.renderNormal();
} // if (this.model.get('number_children') > 3) {
// this.renderNudge();
// } else {
// this.renderNormal();
// }
}, },
showComponentTemplates: function(event) { showComponentTemplates: function(event) {
......
<div class="new-component"> <div class="new-component">
<h5><%= gettext("Add New Component") %></h5> <h5><%= gettext("Add New Component") %></h5>
<p>There are <%= numberChildren %> components in this unit!</p> <p>There are <%= numberChildren %> components in this unit!</p>
<% if (numberChildren < 4) { %>
<ul class="new-component-type"> <ul class="new-component-type">
</ul> </ul>
<% } %>
</div> </div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment