diff options
author | Justin Nuß <nuss.justin@gmail.com> | 2014-07-23 21:15:47 +0200 |
---|---|---|
committer | Justin Nuß <nuss.justin@gmail.com> | 2014-07-23 21:15:47 +0200 |
commit | 4617bef8954deeef5bd2ba36d84aba3b05a4dd83 (patch) | |
tree | a3583597828726617cfcf0b4d945e7bf6fb3471c /templates/repo/issue/view.tmpl | |
parent | 6e9f1c52b18f112eecd5c72e295cfea1809f07fa (diff) | |
download | gitea-4617bef8954deeef5bd2ba36d84aba3b05a4dd83.tar.gz gitea-4617bef8954deeef5bd2ba36d84aba3b05a4dd83.zip |
WIP: Allow attachments for comments
Diffstat (limited to 'templates/repo/issue/view.tmpl')
-rw-r--r-- | templates/repo/issue/view.tmpl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/repo/issue/view.tmpl b/templates/repo/issue/view.tmpl index d95fba40d8..246055e183 100644 --- a/templates/repo/issue/view.tmpl +++ b/templates/repo/issue/view.tmpl @@ -62,6 +62,11 @@ <div class="panel-body markdown"> {{str2html .Content}} </div> + <div class="attachments"> + {{range .Attachments}} + <a class="attachment" href="{{.IssueId}}/attachment/{{.Id}}">{{.Name}}</a> + {{end}} + </div> </div> </div> {{else if eq .Type 1}} @@ -103,8 +108,14 @@ <div class="tab-pane issue-preview-content" id="issue-preview">Loading...</div> </div> </div> + <div> + <div id="attached"></div> + </div> <div class="text-right"> <div class="form-group"> + <input type="hidden" name="attachments" value="" /> + <button data-accept="{{AllowedTypes}}" class="btn-default btn attachment-add" id="attachments-button">Add Attachments...</button> + {{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}} |