|
|
@ -60,12 +60,20 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<span class="help">{{.i18n.Tr "repo.release.prerelease_helper"}}</span> |
|
|
|
<span class="help">{{.i18n.Tr "repo.release.prerelease_helper"}}</span> |
|
|
|
<div class="field"> |
|
|
|
<div class="field"> |
|
|
|
|
|
|
|
<a class="ui blue basic button" href="{{.RepoLink}}/releases"> |
|
|
|
|
|
|
|
{{.i18n.Tr "repo.release.cancel"}} |
|
|
|
|
|
|
|
</a> |
|
|
|
|
|
|
|
{{/* Release didn't save as draft at first time is not possible to be draft again because the Git tag had been created. */}} |
|
|
|
|
|
|
|
{{if or (not .PageIsEditRelease) .IsDraft}} |
|
|
|
|
|
|
|
<input class="ui grey button" type="submit" name="draft" value="{{.i18n.Tr "repo.release.save_draft"}}"/> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
{{if .PageIsEditRelease}} |
|
|
|
{{if .PageIsEditRelease}} |
|
|
|
<a class="ui blue basic button" href="{{.RepoLink}}/releases"> |
|
|
|
|
|
|
|
{{.i18n.Tr "repo.release.cancel"}} |
|
|
|
|
|
|
|
</a> |
|
|
|
|
|
|
|
<button class="ui green button"> |
|
|
|
<button class="ui green button"> |
|
|
|
{{.i18n.Tr "repo.release.edit_release"}} |
|
|
|
{{if .IsDraft}} |
|
|
|
|
|
|
|
{{.i18n.Tr "repo.release.publish"}} |
|
|
|
|
|
|
|
{{else}} |
|
|
|
|
|
|
|
{{.i18n.Tr "repo.release.edit_release"}} |
|
|
|
|
|
|
|
{{end}} |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
<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"}} |
|
|
@ -74,7 +82,6 @@ |
|
|
|
<button class="ui green button"> |
|
|
|
<button class="ui green button"> |
|
|
|
{{.i18n.Tr "repo.release.publish"}} |
|
|
|
{{.i18n.Tr "repo.release.publish"}} |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
<input class="ui grey button" type="submit" name="draft" value="{{.i18n.Tr "repo.release.save_draft"}}"/> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|