Browse Source

Fixed 404 on clicking tag on front page, removed Meta and Source tag types

master
Gisle Aune 7 years ago
parent
commit
b05f53308e
  1. 2
      model/tag.go
  2. 2
      view/templates/index.tmpl

2
model/tag.go

@ -15,9 +15,7 @@ var TagTypes = []string{
"Character",
"Event",
"Organization",
"Source",
"Series",
"Meta",
}
// Tag describes a tag

2
view/templates/index.tmpl

@ -36,7 +36,7 @@
{{ if $.ActiveTag.ID }}
<ul>
<li class="selected"><a href="/{{$.ActiveTag.Hook}}"><div class="mg-icon">{{$.ActiveTag.Icon}}</div><div class="mg-label">{{$.ActiveTag.Name}}</div></a></li>
<li class="selected"><a href="/{{$.ActiveTag.Type}}/{{$.ActiveTag.Hook}}"><div class="mg-icon">{{$.ActiveTag.Icon}}</div><div class="mg-label">{{$.ActiveTag.Name}}</div></a></li>
</ul>
{{ end }}

Loading…
Cancel
Save