Yoji SHIDARA
null+****@clear*****
Wed Nov 7 11:45:30 JST 2012
Yoji SHIDARA 2012-11-07 11:45:30 +0900 (Wed, 07 Nov 2012) New Revision: c66989a7584c5e883834a760c822789585b6ba48 https://github.com/groonga/gcs-console/commit/c66989a7584c5e883834a760c822789585b6ba48 Log: Do not output empty table for indexFields Modified files: views/domain-index-fields.jade Modified: views/domain-index-fields.jade (+22 -19) =================================================================== --- views/domain-index-fields.jade 2012-11-07 11:31:56 +0900 (92aa138) +++ views/domain-index-fields.jade 2012-11-07 11:45:30 +0900 (c1ae335) @@ -2,26 +2,29 @@ extends domain block domain-content h2 Index Fields - table.table.table-bordered - tr - th Name - th Type - th Facet - th Result - for indexField in indexFields + if indexFields.length > 0 + table.table.table-bordered tr - th= indexField.Options.IndexFieldName - td= indexField.Options.IndexFieldType - case indexField.Options.IndexFieldType - when 'text' - td= indexField.Options.TextOptions.FacetEnabled - td= indexField.Options.TextOptions.ResultEnabled - when 'literal' - td= indexField.Options.LiteralOptions.FacetEnabled - td= indexField.Options.LiteralOptions.ResultEnabled - default - td - td + th Name + th Type + th Facet + th Result + for indexField in indexFields + tr + th= indexField.Options.IndexFieldName + td= indexField.Options.IndexFieldType + case indexField.Options.IndexFieldType + when 'text' + td= indexField.Options.TextOptions.FacetEnabled + td= indexField.Options.TextOptions.ResultEnabled + when 'literal' + td= indexField.Options.LiteralOptions.FacetEnabled + td= indexField.Options.LiteralOptions.ResultEnabled + default + td + td + else + .alert.alert-warn No IndexField is defined .well form(action="/domain/"+domain.DomainName+"/index_fields", method="POST").form-horizontal -------------- next part -------------- HTML����������������������������... 다운로드