diff --git a/templates/db_cols.html b/templates/db_cols.html index bc51805..e08e364 100644 --- a/templates/db_cols.html +++ b/templates/db_cols.html @@ -74,7 +74,7 @@ - +
diff --git a/ui.go b/ui.go index a145c63..0585edd 100644 --- a/ui.go +++ b/ui.go @@ -160,12 +160,22 @@ func (x *ui) dbCols(w http.ResponseWriter, r *http.Request) { Query string }) - names, err := datastore.ListCollections(conf.Name) + allNames, err := datastore.ListCollections(conf.Name) if err != nil { renderErr(w, r, err) return } + // we remove the "system" collection + var names []string + for _, name := range allNames { + if strings.HasPrefix(name, "sb_") { + continue + } + + names = append(names, name) + } + if len(names) == 0 { render(w, r, "db_cols.html", data, nil) return