|
|
@ -64,9 +64,16 @@ |
|
|
|
<a class="ui blue basic button" href="{{.RepoLink}}/releases"> |
|
|
|
<a class="ui blue basic button" href="{{.RepoLink}}/releases"> |
|
|
|
{{.i18n.Tr "repo.release.cancel"}} |
|
|
|
{{.i18n.Tr "repo.release.cancel"}} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
<button class="ui green button"> |
|
|
|
{{if .IsDraft}} |
|
|
|
{{.i18n.Tr "repo.release.edit_release"}} |
|
|
|
<input class="ui grey button" type="submit" name="draft" value="{{.i18n.Tr "repo.release.save_draft"}}"/> |
|
|
|
</button> |
|
|
|
<button class="ui green button"> |
|
|
|
|
|
|
|
{{.i18n.Tr "repo.release.publish"}} |
|
|
|
|
|
|
|
</button> |
|
|
|
|
|
|
|
{{else}} |
|
|
|
|
|
|
|
<button class="ui green button"> |
|
|
|
|
|
|
|
{{.i18n.Tr "repo.release.edit_release"}} |
|
|
|
|
|
|
|
</button> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
<a class="ui red button delete-button" data-url="{{$.RepoLink}}/releases/delete" data-id="{{.ID}}"> |
|
|
|
<a class="ui red button delete-button" data-url="{{$.RepoLink}}/releases/delete" data-id="{{.ID}}"> |
|
|
|
{{$.i18n.Tr "repo.release.delete_release"}} |
|
|
|
{{$.i18n.Tr "repo.release.delete_release"}} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|