summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJustin Nuß <justin.nuss@hmmh.de>2014-07-24 15:51:40 +0200
committerJustin Nuß <justin.nuss@hmmh.de>2014-07-24 15:51:40 +0200
commit4d702eb345d36888b9cace32ba51ac79e9a260f8 (patch)
tree76dac7e89f25120e9fe6359494c7db325564c9ae /templates
parent9df99681fbcb5a809d2821c3861c8655f885af7a (diff)
downloadgitea-4d702eb345d36888b9cace32ba51ac79e9a260f8.tar.gz
gitea-4d702eb345d36888b9cace32ba51ac79e9a260f8.zip
Allow disabling uploads
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/issue/create.tmpl4
-rw-r--r--templates/repo/issue/view.tmpl4
2 files changed, 8 insertions, 0 deletions
diff --git a/templates/repo/issue/create.tmpl b/templates/repo/issue/create.tmpl
index 0d72123b81..7705841708 100644
--- a/templates/repo/issue/create.tmpl
+++ b/templates/repo/issue/create.tmpl
@@ -101,13 +101,17 @@
<div class="tab-pane issue-preview-content" id="issue-preview">loading...</div>
</div>
</div>
+ {{if .AttachmentsEnabled}}
<div id="attached">
<div id="attached-list"></div>
</div>
+ {{end}}
<div class="text-right panel-body">
<div class="form-group">
+ {{if .AttachmentsEnabled}}
<input type="file" accept="{{.AllowedTypes}}" style="display: none;" id="attachments-input" name="attachments" multiple />
<button class="btn-default btn attachment-add" id="attachments-button">Select Attachments...</button>
+ {{end}}
<input type="hidden" value="id" name="repo-id"/>
<button class="btn-success btn">Create new issue</button>
</div>
diff --git a/templates/repo/issue/view.tmpl b/templates/repo/issue/view.tmpl
index dd200e8016..570698975b 100644
--- a/templates/repo/issue/view.tmpl
+++ b/templates/repo/issue/view.tmpl
@@ -137,13 +137,17 @@
<div class="tab-pane issue-preview-content" id="issue-preview">Loading...</div>
</div>
</div>
+ {{if .AttachmentsEnabled}}
<div id="attached">
<div id="attached-list"></div>
</div>
+ {{end}}
<div class="text-right">
<div class="form-group">
+ {{if .AttachmentsEnabled}}
<input type="file" accept="{{.AllowedTypes}}" style="display: none;" id="attachments-input" name="attachments" multiple />
<button class="btn-default btn attachment-add" id="attachments-button">Select Attachments...</button>
+ {{end}}
{{if .IsIssueOwner}}{{if .Issue.IsClosed}}
<input type="submit" class="btn-default btn issue-open" id="issue-open-btn" data-origin="Reopen" data-text="Reopen & Comment" name="change_status" value="Reopen"/>{{else}}
<input type="submit" class="btn-default btn issue-close" id="issue-close-btn" data-origin="Close" data-text="Close & Comment" name="change_status" value="Close"/>{{end}}{{end}}&nbsp;&nbsp;