summaryrefslogtreecommitdiffstats
path: root/templates/repo/release
diff options
context:
space:
mode:
Diffstat (limited to 'templates/repo/release')
-rw-r--r--templates/repo/release/list.tmpl1
-rw-r--r--templates/repo/release/new.tmpl16
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