|
|
|
@ -41,12 +41,12 @@ |
|
|
|
|
</div> |
|
|
|
|
<ul class="nav nav-tabs" data-init="tabs"> |
|
|
|
|
<li class="release-write active"><a href="#release-textarea" data-toggle="tab">Write</a></li> |
|
|
|
|
<li class="release-preview"><a href="#release-preview" data-toggle="tab" data-ajax="/api/v1/markdown?repo=repo_id&release=new" data-ajax-name="release-preview" data-ajax-method="post" data-preview="#release-preview">Preview</a></li> |
|
|
|
|
<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> |
|
|
|
|
</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="content">{{.content}}</textarea> |
|
|
|
|
<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> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="tab-pane release-preview-content" id="release-preview">loading...</div> |
|
|
|
|