WIP: Allow attachments for issues, not only comments

This commit is contained in:
Justin Nuß
2014-07-23 21:24:24 +02:00
parent 4617bef895
commit 34304e6a0c
5 changed files with 34 additions and 3 deletions

View File

@ -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>

View File

@ -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}}