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", "Character",
"Event", "Event",
"Organization", "Organization",
"Source",
"Series", "Series",
"Meta",
} }
// Tag describes a tag // Tag describes a tag

2
view/templates/index.tmpl

@ -36,7 +36,7 @@
{{ if $.ActiveTag.ID }} {{ if $.ActiveTag.ID }}
<ul> <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> </ul>
{{ end }} {{ end }}

Loading…
Cancel
Save