2015-03-21 07:24:59 -06:00
|
|
|
{{template "base/head_old" .}}
|
2014-03-25 04:27:29 -06:00
|
|
|
{{template "base/navbar" .}}
|
|
|
|
{{template "repo/nav" .}}
|
|
|
|
{{template "repo/toolbar" .}}
|
2014-03-25 04:44:37 -06:00
|
|
|
<div id="body" class="container">
|
2014-03-25 07:14:05 -06:00
|
|
|
<div id="issue">
|
2014-07-24 07:19:59 -06:00
|
|
|
<form class="form" action="{{.RepoLink}}/issues/new" method="post" id="issue-create-form" enctype="multipart/form-data">
|
2014-03-25 10:12:27 -06:00
|
|
|
{{.CsrfTokenHtml}}
|
2014-04-10 16:09:57 -06:00
|
|
|
{{template "base/alert" .}}
|
2014-03-25 07:14:05 -06:00
|
|
|
<div class="col-md-1">
|
2014-03-25 10:12:27 -06:00
|
|
|
<img class="avatar" src="{{.SignedUser.AvatarLink}}" alt=""/>
|
2014-03-25 07:14:05 -06:00
|
|
|
</div>
|
|
|
|
<div class="col-md-8 panel panel-default">
|
|
|
|
<div class="form-group panel-body">
|
2015-07-31 14:12:33 -06:00
|
|
|
<input class="form-control input-lg" type="text" name="title" required="required" placeholder="Title" value="{{.title}}" autofocus />
|
2014-03-25 07:14:05 -06:00
|
|
|
</div>
|
2014-05-08 07:01:47 -06:00
|
|
|
<div class="form-group panel-body">
|
2014-07-04 14:48:36 -06:00
|
|
|
{{if .IsRepositoryOwner}}
|
2014-05-08 07:01:47 -06:00
|
|
|
<span><strong id="assigned" data-no-assigned="No one">No one</strong> will be assigned</span>
|
2014-05-08 10:24:11 -06:00
|
|
|
<input type="hidden" name="assigneeid" value="0" id="assignee"/>
|
2014-05-08 07:01:47 -06:00
|
|
|
<div style="display: inline-block;position: relative">
|
|
|
|
<button type="button" class="dropdown-toggle btn btn-default btn-sm" data-toggle="dropdown">
|
|
|
|
<i class="fa fa-group"></i>
|
|
|
|
<span class="caret"></span>
|
|
|
|
</button>
|
|
|
|
<div class="dropdown-menu assignee">
|
|
|
|
<ul class="list-unstyled">
|
|
|
|
<li data-uid="0" class="clear-assignee hidden"><i class="fa fa-times-circle-o"></i> Clear assignee</li>
|
2014-05-08 10:24:11 -06:00
|
|
|
{{range .Collaborators}}
|
|
|
|
<li data-uid="{{.Id}}"><img src="{{.AvatarLink}}"><strong>{{.Name}}</strong> {{.FullName}}</li>
|
|
|
|
{{end}}
|
2014-05-08 07:01:47 -06:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-05-14 08:01:20 -06:00
|
|
|
<span><strong id="milestone" data-no-milestone="No milestone">No milestone</strong></span>
|
|
|
|
<input type="hidden" name="milestoneid" value="0" id="milestone-id"/>
|
|
|
|
<div style="display: inline-block;position: relative">
|
|
|
|
<button type="button" class="dropdown-toggle btn btn-default btn-sm" data-toggle="dropdown">
|
|
|
|
<i class="fa fa-check-square-o"></i>
|
|
|
|
<span class="caret"></span>
|
|
|
|
</button>
|
|
|
|
<div class="dropdown-menu milestone">
|
|
|
|
<ul class="list-unstyled">
|
|
|
|
<li data-id="0" class="clear-milestone milestone-item hidden"><i class="fa fa-times-circle-o"></i> Clear milestone </li>
|
|
|
|
<li class="milestone-list">
|
|
|
|
<ul class="nav nav-tabs" data-init="tabs">
|
|
|
|
<li class="active"><a href="#milestone-open" data-toggle="tab">Open</a></li>
|
|
|
|
<li><a href="#milestone-close" data-toggle="tab">Closed</a></li>
|
|
|
|
</ul>
|
|
|
|
<div class="tab-content">
|
|
|
|
<div class="tab-pane active" id="milestone-open">
|
2014-05-14 09:14:51 -06:00
|
|
|
{{if not .OpenMilestones}}
|
2014-05-14 08:01:20 -06:00
|
|
|
<p class="milestone-item">Nothing to show</p>
|
2014-05-14 09:14:51 -06:00
|
|
|
{{else}}
|
2014-05-14 08:01:20 -06:00
|
|
|
<ul class="list-unstyled">
|
2014-05-14 09:14:51 -06:00
|
|
|
{{range .OpenMilestones}}
|
|
|
|
<li class="milestone-item" data-id="{{.Id}}">
|
|
|
|
<p><strong>{{.Name}}</strong></p>
|
|
|
|
<!-- <p>due to 3 days later</p> -->
|
2014-05-14 08:01:20 -06:00
|
|
|
</li>
|
2014-05-14 09:14:51 -06:00
|
|
|
{{end}}
|
2014-05-14 08:01:20 -06:00
|
|
|
</ul>
|
2014-05-14 09:14:51 -06:00
|
|
|
{{end}}
|
2014-05-14 08:01:20 -06:00
|
|
|
</div>
|
2014-05-14 09:14:51 -06:00
|
|
|
|
2014-05-14 08:01:20 -06:00
|
|
|
<div class="tab-pane" id="milestone-close">
|
2014-05-14 09:14:51 -06:00
|
|
|
{{if not .ClosedMilestones}}
|
|
|
|
<p class="milestone-item">Nothing to show</p>
|
|
|
|
{{else}}
|
2014-05-14 08:01:20 -06:00
|
|
|
<ul class="list-unstyled">
|
2014-05-14 09:14:51 -06:00
|
|
|
{{range .ClosedMilestones}}
|
|
|
|
<li class="milestone-item" data-id="{{.Id}}">
|
|
|
|
<p><strong>{{.Name}}</strong></p>
|
2014-10-11 00:43:21 -06:00
|
|
|
<p>Closed {{TimeSince .ClosedDate $.Lang}}</p>
|
2014-05-14 08:01:20 -06:00
|
|
|
</li>
|
2014-05-14 09:14:51 -06:00
|
|
|
{{end}}
|
2014-05-14 08:01:20 -06:00
|
|
|
</ul>
|
2014-05-14 09:14:51 -06:00
|
|
|
{{end}}
|
2014-05-14 08:01:20 -06:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-05-08 07:01:47 -06:00
|
|
|
</div>
|
2014-07-04 14:48:36 -06:00
|
|
|
{{end}}
|
2014-03-25 07:14:05 -06:00
|
|
|
<div class="form-group panel-body">
|
|
|
|
<div class="md-help pull-right"><!-- todo help link -->
|
2014-03-29 08:01:52 -06:00
|
|
|
Content with <a href="https://help.github.com/articles/markdown-basics">Markdown</a>
|
2014-03-25 07:14:05 -06:00
|
|
|
</div>
|
|
|
|
<ul class="nav nav-tabs" data-init="tabs">
|
2014-03-29 07:16:06 -06:00
|
|
|
<li class="active issue-write"><a href="#issue-textarea" data-toggle="tab">Write</a></li>
|
2014-05-05 11:08:01 -06:00
|
|
|
<li class="issue-preview"><a href="#issue-preview" data-toggle="tab" data-ajax="/api/v1/markdown" data-ajax-name="issue-preview" data-ajax-context="{{.RepoLink}}" data-ajax-method="post" data-preview="#issue-preview">Preview</a></li>
|
2014-03-25 07:14:05 -06:00
|
|
|
</ul>
|
|
|
|
<div class="tab-content">
|
|
|
|
<div class="tab-pane" id="issue-textarea">
|
|
|
|
<div class="form-group">
|
2014-07-25 03:13:42 -06:00
|
|
|
<div id="submit-error" class="text-danger"></div>
|
2014-05-05 11:08:01 -06:00
|
|
|
<textarea class="form-control" name="content" id="issue-content" rows="10" placeholder="Write some content" data-ajax-rel="issue-preview" data-ajax-val="val" data-ajax-field="text">{{.content}}</textarea>
|
2014-03-25 07:14:05 -06:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-03-29 07:16:06 -06:00
|
|
|
<div class="tab-pane issue-preview-content" id="issue-preview">loading...</div>
|
2014-03-25 07:14:05 -06:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-07-24 07:51:40 -06:00
|
|
|
{{if .AttachmentsEnabled}}
|
2014-07-24 07:19:59 -06:00
|
|
|
<div id="attached">
|
2014-08-30 07:12:53 -06:00
|
|
|
<div id="attached-list">
|
|
|
|
<b>Attachments:</b>
|
2014-07-25 02:47:37 -06:00
|
|
|
</div>
|
2014-07-23 13:24:24 -06:00
|
|
|
</div>
|
2014-07-24 07:51:40 -06:00
|
|
|
{{end}}
|
2014-03-25 07:14:05 -06:00
|
|
|
<div class="text-right panel-body">
|
|
|
|
<div class="form-group">
|
2014-07-24 07:51:40 -06:00
|
|
|
{{if .AttachmentsEnabled}}
|
2014-07-24 07:19:59 -06:00
|
|
|
<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>
|
2014-07-24 07:51:40 -06:00
|
|
|
{{end}}
|
2014-03-25 07:14:05 -06:00
|
|
|
<input type="hidden" value="id" name="repo-id"/>
|
|
|
|
<button class="btn-success btn">Create new issue</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
2014-03-25 04:27:29 -06:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-03-21 07:24:59 -06:00
|
|
|
{{template "base/footer_old" .}}
|