You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
3.9 KiB

  1. {{template "base/head" .}}
  2. {{template "base/navbar" .}}
  3. {{template "repo/nav" .}}
  4. {{template "repo/toolbar" .}}
  5. <div id="body" class="container">
  6. <div id="release">
  7. <h4 id="release-head">New Release</h4>
  8. <form id="release-new-form" action="" class="form form-inline">
  9. <div class="form-group">
  10. <input id="release-tag-name" type="text" class="form-control" placeholder="tag name"/>
  11. <span class="target-at">@</span>
  12. <div class="btn-group" id="release-new-target-select">
  13. <button type="button" class="btn btn-default"><i class="fa fa-code-fork fa-lg fa-m"></i>
  14. <span class="target-text">Target : </span>
  15. <strong id="release-new-target-name"> master</strong>
  16. </button>
  17. <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
  18. <span class="caret"></span>
  19. </button>
  20. <div class="dropdown-menu clone-group-btn" id="release-new-target-branch-list">
  21. <ul class="list-group">
  22. <li class="list-group-item">
  23. <a href="#" rel="master"><i class="fa fa-code-fork"></i>master</a>
  24. </li>
  25. </ul>
  26. </div>
  27. </div>
  28. <p class="help-block">Choose an existing tag without release notes</p>
  29. </div>
  30. <div class="form-group" style="display: block">
  31. <input class="form-control input-lg" id="release-new-title" name="title" type="text" placeholder="release title"/>
  32. </div>
  33. <div class="form-group col-md-8" style="display: block" id="release-new-content-div">
  34. <div class="md-help pull-right">
  35. Content with <a href="https://help.github.com/articles/markdown-basics">Markdown</a>
  36. </div>
  37. <ul class="nav nav-tabs" data-init="tabs">
  38. <li class="release-write active"><a href="#release-textarea" data-toggle="tab">Write</a></li>
  39. <li class="release-preview"><a href="#release-preview" data-toggle="tab" data-ajax="/api/v1/markdown?repo=repo_id&amp;release=new" data-ajax-name="release-preview" data-ajax-method="post" data-preview="#release-preview">Preview</a></li>
  40. </ul>
  41. <div class="tab-content">
  42. <div class="tab-pane active" id="release-textarea">
  43. <div class="form-group">
  44. <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"></textarea>
  45. </div>
  46. </div>
  47. <div class="tab-pane release-preview-content" id="release-preview">loading...</div>
  48. </div>
  49. </div>
  50. <div class="text-right form-group col-md-8" style="display: block">
  51. <hr/>
  52. <label for="release-new-pre-release">
  53. <input id="release-new-pre-release" type="checkbox" name="is-pre-release" value="true"/>
  54. <strong>This is a pre-release</strong>
  55. </label>
  56. <p class="help-block">We’ll point out that this release is identified as non-production ready.</p>
  57. </div>
  58. <div class="text-right form-group col-md-8" style="display: block">
  59. <input type="hidden" value="id" name="repo-id">
  60. <button class="btn-success btn">Publish release</button>
  61. <input class="btn btn-default" type="submit" name="is-draft" value="Save Draft"/>
  62. </div>
  63. </form>
  64. </div>
  65. </div>
  66. {{template "base/footer" .}}