diff options
author | Unknwon <u@gogs.io> | 2015-11-20 02:38:41 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-20 02:38:41 -0500 |
commit | 987dcc5372998adaafb68e00a9a460e955d018e5 (patch) | |
tree | 6f88db3bee30cab2339244c124e6c82324a597a1 /templates/repo/release | |
parent | 9b6c835715ab27aa7a008a51415f38ca2a856cd0 (diff) | |
download | gitea-987dcc5372998adaafb68e00a9a460e955d018e5.tar.gz gitea-987dcc5372998adaafb68e00a9a460e955d018e5.zip |
fix #1383
Diffstat (limited to 'templates/repo/release')
-rw-r--r-- | templates/repo/release/list.tmpl | 1 | ||||
-rw-r--r-- | templates/repo/release/new.tmpl | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl index 8ecf69ae4d..b8a8dff2f2 100644 --- a/templates/repo/release/list.tmpl +++ b/templates/repo/release/list.tmpl @@ -3,6 +3,7 @@ {{template "repo/header" .}} <div class="ui container"> {{template "repo/sidebar" .}} + {{template "base/alert" .}} <h2 class="ui header"> {{.i18n.Tr "repo.release.releases"}} {{if .IsRepositoryAdmin}} diff --git a/templates/repo/release/new.tmpl b/templates/repo/release/new.tmpl index 8514b2c8c4..b966eb6c0b 100644 --- a/templates/repo/release/new.tmpl +++ b/templates/repo/release/new.tmpl @@ -68,6 +68,9 @@ <button class="ui green button"> {{.i18n.Tr "repo.release.edit_release"}} </button> + <a class="ui red button delete-button" data-url="{{$.RepoLink}}/releases/delete" data-id="{{.ID}}"> + {{$.i18n.Tr "repo.release.delete_release"}} + </a> {{else}} <button class="ui green button"> {{.i18n.Tr "repo.release.publish"}} @@ -80,4 +83,17 @@ </form> </div> </div> + +{{if .PageIsEditRelease}} +<div class="ui small basic delete modal"> + <div class="ui icon header"> + <i class="trash icon"></i> + {{.i18n.Tr "repo.release.deletion"}} + </div> + <div class="content"> + <p>{{.i18n.Tr "repo.release.deletion_desc"}}</p> + </div> + {{template "base/delete_modal_actions" .}} +</div> +{{end}} {{template "base/footer" .}}
\ No newline at end of file |