diff --git a/core/channel.go b/core/channel.go index 73d5a0a..5633430 100644 --- a/core/channel.go +++ b/core/channel.go @@ -22,6 +22,11 @@ func GetSourcesInChannel(db DB) (map[string][]string, error) { rows, err := db.Query(` select name, source from channels + union + select '' as name, sources.name as source + from sources + left outer join channels on channels.source = sources.name + where channels.name is null order by name, source `) if err != nil { diff --git a/web/html/editChannels.html b/web/html/editChannels.html index ea61926..6e219a9 100644 --- a/web/html/editChannels.html +++ b/web/html/editChannels.html @@ -29,6 +29,7 @@ {{ range $channel, $sources := .ChannelSources }} +{{ if $channel }}
{{ . }} | {{ end }} -
not in a channel
+