* fix some ui bug about draft release
- should not show draft release in tag list because
it will't create real tag
- still show draft release without tag and commit message
for draft release instead of 404 error
- remove tag load for attachement links because it's useless
Signed-off-by: a1012112796 <1012112796@qq.com>
* add test code
* fix test
That's because has added a new release in relaese test database.
* fix dropdown link for draft release
<div class="item tag {{ifeq$release.TagName.}}selected{{end}}" data-url="{{$.root.RepoLink}}/compare/{{EscapePound.}}...{{if$release.TagName}}{{EscapePound$release.TagName}}{{else}}{{EscapePound$release.Sha1}}{{end}}">{{.}}</div>
<div class="item tag {{ifeq$release.TagName.}}selected{{end}}" data-url="{{$.root.RepoLink}}/compare/{{EscapePound.}}...{{if$release.IsDraft}}{{EscapePound$release.Target}}{{else}}}{{if$release.TagName}}{{EscapePound$release.TagName}}{{else}}{{EscapePound$release.Sha1}}{{end}}{{end}}">{{.}}</div>
{{else}}
<div class="item tag {{ifeq$.root.BranchName.}}selected{{end}}" data-url="{{$.root.RepoLink}}/{{if$.root.PageIsCommits}}commits{{else}}src{{end}}/tag/{{EscapePound.}}{{if$.root.TreePath}}/{{EscapePound$.root.TreePath}}{{end}}">{{.}}</div>