Skip to content

Commit

Permalink
Merge pull request #2 from rickwargo/add-custom-slot-types-view
Browse files Browse the repository at this point in the history
added view for custom slot types
  • Loading branch information
matt-kruse authored Nov 29, 2016
2 parents 267e38b + 7c08c85 commit 4be7899
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ var appServer = function(config) {
res.set('Content-Type', 'text/plain').send(app.utterances());
}
else {
res.render('test',{"app":app,"schema":app.schema(),"utterances":app.utterances(),"intents":app.intents});
res.render('test',{"app":app,"schema":app.schema(),"customSlotTypes":app.customSlotTypes(),"utterances":app.utterances(),"intents":app.intents});
}
});
}
Expand Down
5 changes: 5 additions & 0 deletions views/test.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,11 @@ e.$validators.maxlength=function(a,c){return 0>f||e.$isEmpty(c)||c.length<=f}}}}
<div id="schema" class="code">{{schema|json}}</div>
</div>

<h2>Custom Slot Types</h2>
<div>
<div id="customSlotTypes" class="code" style="max-height:500px;overflow:auto;"><%=customSlotTypes%></div>
</div>

<h2>Utterances</h2>
<div>
<div id="utterances" class="code" style="max-height:500px;overflow:auto;"><%=utterances%></div>
Expand Down

0 comments on commit 4be7899

Please sign in to comment.