parent
01ba771783
commit
bc8721fb6c
File diff suppressed because one or more lines are too long
@ -1,70 +1,59 @@ |
|||||||
{{template "base/head" .}} |
{{template "ng/base/head" .}} |
||||||
{{template "base/navbar" .}} |
{{template "ng/base/header" .}} |
||||||
{{template "repo/nav" .}} |
<div id="repo-wrapper"> |
||||||
{{template "repo/toolbar" .}} |
{{template "repo/header" .}} |
||||||
<div id="body" class="container"> |
<div id="repo-content" class="clear container"> |
||||||
|
<div id="repo-main" class="left grid-5-6"> |
||||||
|
{{template "ng/base/alert" .}} |
||||||
<div id="release"> |
<div id="release"> |
||||||
<h4 id="release-head">Edit Release</h4> |
<h4 id="release-head">{{.i18n.Tr "repo.release.edit_release"}}</h4> |
||||||
{{template "base/alert" .}} |
<form class="form" id="release-new-form" action="{{.RepoLink}}/releases/edit/{{.Release.TagName}}" method="post"> |
||||||
<form id="release-new-form" action="{{.RepoLink}}/releases/edit/{{.Release.TagName}}" method="post" class="form form-inline"> |
|
||||||
{{.CsrfTokenHtml}} |
{{.CsrfTokenHtml}} |
||||||
<div class="form-group"> |
<div class="field"> |
||||||
<b>{{.Release.TagName}}</b> |
<b>{{.Release.TagName}}</b> |
||||||
<span class="target-at">@</span> |
<span class="target-at">@</span> |
||||||
<div class="btn-group" id="release-new-target-select"> |
<strong>{{.Repository.DefaultBranch}}</strong> |
||||||
<button type="button" class="btn btn-default"><i class="fa fa-code-fork fa-lg fa-m"></i> |
|
||||||
<span class="target-text">Target : </span> |
|
||||||
<strong id="release-new-target-name"> {{.Release.Target}}</strong> |
|
||||||
</button> |
|
||||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> |
|
||||||
<span class="caret"></span> |
|
||||||
</button> |
|
||||||
<div class="dropdown-menu clone-group-btn" id="release-new-target-branch-list"> |
|
||||||
<ul class="list-group"> |
|
||||||
{{range .Branches}} |
|
||||||
<li class="list-group-item"> |
|
||||||
<a href="#" rel="{{.}}"><i class="fa fa-code-fork"></i>{{.}}</a> |
|
||||||
</li> |
|
||||||
{{end}} |
|
||||||
</ul> |
|
||||||
</div> |
</div> |
||||||
<input id="tag-target" type="hidden" name="tag_target" value="{{.Release.Target}}"/> |
<div class="field"> |
||||||
|
<input class="ipt ipt-large ipt-radius grid-4-5" id="release-new-title" name="title" placeholder="{{.i18n.Tr "repo.release.release_title"}}" value="{{.Release.Title}}" required> |
||||||
</div> |
</div> |
||||||
<p class="help-block">Choose an existing tag, or create a new tag on publish</p> |
<br> |
||||||
</div> |
<div class="field grid-4-5"> |
||||||
<div class="form-group" style="display: block"> |
|
||||||
<input class="form-control input-lg" id="release-new-title" name="title" type="text" placeholder="release title" value="{{.Release.Title}}" /> |
|
||||||
</div> |
|
||||||
<div class="form-group col-md-8" style="display: block" id="release-new-content-div"> |
|
||||||
<div class="md-help pull-right"> |
<div class="md-help pull-right"> |
||||||
Content with <a href="https://help.github.com/articles/markdown-basics">Markdown</a> |
{{.i18n.Tr "repo.release.content_with_md" "https://help.github.com/articles/markdown-basics" | Str2html}} |
||||||
</div> |
</div> |
||||||
<ul class="nav nav-tabs" data-init="tabs"> |
<div class="clear"> |
||||||
<li class="release-write active"><a href="#release-textarea" data-toggle="tab">Write</a></li> |
<ul class="tab-nav list-unstyled"> |
||||||
<li class="release-preview"><a href="#release-preview" data-toggle="tab" data-ajax="/api/v1/markdown" data-ajax-name="release-preview" data-ajax-context="{{.RepoLink}}" data-ajax-method="post" data-preview="#release-preview">Preview</a></li> |
<li class="js-tab-nav js-tab-nav-show left" data-tab-target="#release-textarea"> |
||||||
|
<button class="btn btn-medium btn-gray btn-left-radius">{{.i18n.Tr "repo.release.write"}}</button> |
||||||
|
</li> |
||||||
|
<li class="js-tab-nav left markdown-preview" id="release-preview-btn" data-tab-target="#release-preview" data-ajax="/api/v1/markdown" data-ajax-name="release-preview" data-ajax-context="{{.RepoLink}}" data-ajax-method="post" data-preview="#release-preview"> |
||||||
|
<button class="btn btn-medium btn-gray btn-right-radius">{{.i18n.Tr "repo.release.preview"}}</button> |
||||||
|
</li> |
||||||
</ul> |
</ul> |
||||||
<div class="tab-content"> |
|
||||||
<div class="tab-pane active" id="release-textarea"> |
|
||||||
<div class="form-group"> |
|
||||||
<textarea class="form-control" name="content" id="release-new-content" rows="10" placeholder="Write some content" data-ajax-rel="release-preview" data-ajax-val="val" data-ajax-field="text">{{.Release.Note}}</textarea> |
|
||||||
</div> |
</div> |
||||||
</div> |
<div id="release-textarea"> |
||||||
<div class="tab-pane release-preview-content" id="release-preview">loading...</div> |
<div class="form-group"> |
||||||
|
<textarea class="ipt ipt-large ipt-radius" name="content" id="release-new-content" rows="10" placeholder="{{.i18n.Tr "repo.release.content_placeholder"}}" data-ajax-rel="release-preview" data-ajax-val="val" data-ajax-field="text" required>{{.Release.Note}}</textarea> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="markdown hide" id="release-preview">{{.i18n.Tr "repo.release.loading"}}...</div> |
||||||
|
<br> |
||||||
|
<hr> |
||||||
|
<div class="text-right"> |
||||||
|
<input class="ipt-chk" name="prerelease" type="checkbox" {{if .Release.IsPrerelease}}checked{{end}}/> |
||||||
|
<span><strong>{{.i18n.Tr "repo.release.prerelease_desc"}}</strong></span> |
||||||
|
<p>{{.i18n.Tr "repo.release.prerelease_helper"}}</p> |
||||||
|
<button class="btn btn-large btn-green btn-radius">Publish release</button> |
||||||
|
{{if .Release.IsDraft}} |
||||||
|
<input class="btn btn-large btn-gary btn-radius" type="submit" name="draft" value="{{.i18n.Tr "repo.release.save_draft"}}"/> |
||||||
|
{{end}} |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
<div class="text-right form-group col-md-8" style="display: block"> |
</form> |
||||||
<hr/> |
|
||||||
<label for="release-new-pre-release"> |
|
||||||
<input id="release-new-pre-release" type="checkbox" name="prerelease" {{if .Release.IsPrerelease}}checked{{end}}/> |
|
||||||
<strong>This is a pre-release</strong> |
|
||||||
</label> |
|
||||||
<p class="help-block">We’ll point out that this release is identified as non-production ready.</p> |
|
||||||
</div> |
</div> |
||||||
<div class="text-right form-group col-md-8" style="display: block"> |
|
||||||
<button class="btn-success btn">Publish release</button> |
|
||||||
<input class="btn btn-default" type="submit" name="draft" value="Save draft"/> |
|
||||||
</div> |
</div> |
||||||
</form> |
{{template "repo/sidebar" .}} |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
{{template "base/footer" .}} |
{{template "ng/base/footer" .}} |
@ -1,70 +1,68 @@ |
|||||||
{{template "base/head" .}} |
{{template "ng/base/head" .}} |
||||||
{{template "base/navbar" .}} |
{{template "ng/base/header" .}} |
||||||
{{template "repo/nav" .}} |
<div id="repo-wrapper"> |
||||||
{{template "repo/toolbar" .}} |
{{template "repo/header" .}} |
||||||
<div id="body" class="container"> |
<div id="repo-content" class="clear container"> |
||||||
|
<div id="repo-main" class="left grid-5-6"> |
||||||
|
{{template "ng/base/alert" .}} |
||||||
<div id="release"> |
<div id="release"> |
||||||
<h4 id="release-head">New Release</h4> |
<h4 id="release-head">{{.i18n.Tr "repo.release.new_release"}}</h4> |
||||||
{{template "base/alert" .}} |
<form class="form" id="release-new-form" action="{{.RepoLink}}/releases/new" method="post"> |
||||||
<form id="release-new-form" action="{{.RepoLink}}/releases/new" method="post" class="form form-inline"> |
|
||||||
{{.CsrfTokenHtml}} |
{{.CsrfTokenHtml}} |
||||||
<div class="form-group"> |
<div class="field"> |
||||||
<input id="tag-name" name="tag_name" type="text" class="form-control" placeholder="tag name" value="{{.tag_name}}" /> |
<input class="ipt ipt-large ipt-radius" name="tag_name" value="{{.tag_name}}" placeholder="{{.i18n.Tr "repo.release.tag_name"}}" required> |
||||||
<span class="target-at">@</span> |
<span class="target-at">@</span> |
||||||
<div class="btn-group" id="release-new-target-select"> |
<div class="inline-block drop"> |
||||||
<button type="button" class="btn btn-default"><i class="fa fa-code-fork fa-lg fa-m"></i> |
<button class="btn btn-gray btn-medium btn-radius drop-bottom"> |
||||||
<span class="target-text">Target : </span> |
<i class="octicon octicon-git-branch"></i> {{.i18n.Tr "repo.release.target"}} : |
||||||
<strong id="release-new-target-name"> {{.Repository.DefaultBranch}}</strong> |
<strong id="repo-branch-current">{{.Repository.DefaultBranch}}</strong> |
||||||
</button> |
|
||||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> |
|
||||||
<span class="caret"></span> |
|
||||||
</button> |
</button> |
||||||
<div class="dropdown-menu clone-group-btn" id="release-new-target-branch-list"> |
<ul class="drop-down menu menu-vertical menu-radius switching-list" id="release-new-target-branch-list"> |
||||||
<ul class="list-group"> |
|
||||||
{{range .Branches}} |
{{range .Branches}} |
||||||
<li class="list-group-item"> |
<li {{if eq . $.tag_target}}class="checked"{{end}}><a><i class="octicon octicon-check"></i>{{.}}</a></li> |
||||||
<a href="#" rel="{{.}}"><i class="fa fa-code-fork"></i>{{.}}</a> |
|
||||||
</li> |
|
||||||
{{end}} |
{{end}} |
||||||
</ul> |
</ul> |
||||||
</div> |
</div> |
||||||
<input id="tag-target" type="hidden" name="tag_target" value="{{.Repository.DefaultBranch}}"/> |
<input id="tag-target" type="hidden" name="tag_target" value="{{.tag_target}}"/> |
||||||
</div> |
</div> |
||||||
<p class="help-block">Choose an existing tag, or create a new tag on publish</p> |
<p class="help">{{.i18n.Tr "repo.release.tag_helper"}}</p> |
||||||
|
<div class="field"> |
||||||
|
<input class="ipt ipt-large ipt-radius grid-4-5" id="release-new-title" name="title" placeholder="{{.i18n.Tr "repo.release.release_title"}}" value="{{.title}}" required> |
||||||
</div> |
</div> |
||||||
<div class="form-group" style="display: block"> |
<br> |
||||||
<input class="form-control input-lg" id="release-new-title" name="title" type="text" placeholder="release title" value="{{.title}}" /> |
<div class="field grid-4-5"> |
||||||
</div> |
|
||||||
<div class="form-group col-md-8" style="display: block" id="release-new-content-div"> |
|
||||||
<div class="md-help pull-right"> |
<div class="md-help pull-right"> |
||||||
Content with <a href="https://help.github.com/articles/markdown-basics">Markdown</a> |
{{.i18n.Tr "repo.release.content_with_md" "https://help.github.com/articles/markdown-basics" | Str2html}} |
||||||
</div> |
</div> |
||||||
<ul class="nav nav-tabs" data-init="tabs"> |
<div class="clear"> |
||||||
<li class="release-write active"><a href="#release-textarea" data-toggle="tab">Write</a></li> |
<ul class="tab-nav list-unstyled"> |
||||||
<li class="release-preview"><a href="#release-preview" data-toggle="tab" data-ajax="/api/v1/markdown" data-ajax-name="release-preview" data-ajax-context="{{.RepoLink}}" data-ajax-method="post" data-preview="#release-preview">Preview</a></li> |
<li class="js-tab-nav js-tab-nav-show left" data-tab-target="#release-textarea"> |
||||||
|
<button class="btn btn-medium btn-gray btn-left-radius">{{.i18n.Tr "repo.release.write"}}</button> |
||||||
|
</li> |
||||||
|
<li class="js-tab-nav left markdown-preview" id="release-preview-btn" data-tab-target="#release-preview" data-ajax="/api/v1/markdown" data-ajax-name="release-preview" data-ajax-context="{{.RepoLink}}" data-ajax-method="post" data-preview="#release-preview"> |
||||||
|
<button class="btn btn-medium btn-gray btn-right-radius">{{.i18n.Tr "repo.release.preview"}}</button> |
||||||
|
</li> |
||||||
</ul> |
</ul> |
||||||
<div class="tab-content"> |
</div> |
||||||
<div class="tab-pane active" id="release-textarea"> |
<div id="release-textarea"> |
||||||
<div class="form-group"> |
<div class="form-group"> |
||||||
<textarea class="form-control" name="content" id="release-new-content" rows="10" placeholder="Write some content" data-ajax-rel="release-preview" data-ajax-val="val" data-ajax-field="text">{{.content}}</textarea> |
<textarea class="ipt ipt-large ipt-radius" name="content" id="release-new-content" rows="10" placeholder="{{.i18n.Tr "repo.release.content_placeholder"}}" data-ajax-rel="release-preview" data-ajax-val="val" data-ajax-field="text" required>{{.content}}</textarea> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
<div class="tab-pane release-preview-content" id="release-preview">loading...</div> |
<div class="markdown hide" id="release-preview">{{.i18n.Tr "repo.release.loading"}}...</div> |
||||||
|
<hr> |
||||||
|
<div class="text-right"> |
||||||
|
<input class="ipt-chk" name="prerelease" type="checkbox" {{if .prerelease}}checked{{end}}/> |
||||||
|
<span><strong>{{.i18n.Tr "repo.release.prerelease_desc"}}</strong></span> |
||||||
|
<p>{{.i18n.Tr "repo.release.prerelease_helper"}}</p> |
||||||
|
<button class="btn btn-large btn-green btn-radius">{{.i18n.Tr "repo.release.publish"}}</button> |
||||||
|
<input class="btn btn-large btn-gary btn-radius" type="submit" name="draft" value="{{.i18n.Tr "repo.release.save_draft"}}"/> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
<div class="text-right form-group col-md-8" style="display: block"> |
</form> |
||||||
<hr/> |
|
||||||
<label for="release-new-pre-release"> |
|
||||||
<input id="release-new-pre-release" type="checkbox" name="prerelease" {{if .prerelease}}checked{{end}}/> |
|
||||||
<strong>This is a pre-release</strong> |
|
||||||
</label> |
|
||||||
<p class="help-block">We’ll point out that this release is identified as non-production ready.</p> |
|
||||||
</div> |
</div> |
||||||
<div class="text-right form-group col-md-8" style="display: block"> |
|
||||||
<button class="btn-success btn">Publish release</button> |
|
||||||
<input class="btn btn-default" type="submit" name="draft" value="Save draft"/> |
|
||||||
</div> |
</div> |
||||||
</form> |
{{template "repo/sidebar" .}} |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
{{template "base/footer" .}} |
{{template "ng/base/footer" .}} |
Loading…
Reference in new issue