mirror of
https://github.com/go-gitea/gitea.git
synced 2025-06-22 05:58:02 +02:00
WIP: Allow attachments for issues, not only comments
This commit is contained in:
@ -101,8 +101,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 panel-body">
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="attachments" value="" />
|
||||
<button data-accept="{{AllowedTypes}}" data-comment-id="0" class="btn-default btn attachment-add" id="attachments-button">Add Attachments...</button>
|
||||
|
||||
<input type="hidden" value="id" name="repo-id"/>
|
||||
<button class="btn-success btn">Create new issue</button>
|
||||
</div>
|
||||
|
@ -46,6 +46,11 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="attachments">
|
||||
{{range .Attachments}}
|
||||
<a class="attachment" href="{{.IssueId}}/attachment/{{.Id}}">{{.Name}}</a>
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{range .Comments}}
|
||||
|
Reference in New Issue
Block a user