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.

33 lines
1.2 KiB

  1. {{template "base/head" .}}
  2. <div class="repository wiki new">
  3. {{template "repo/header" .}}
  4. <div class="ui container">
  5. {{template "base/alert" .}}
  6. <div class="ui header">
  7. {{.i18n.Tr "repo.wiki.new_page"}}
  8. {{if .PageIsWikiEdit}}
  9. <div class="ui right">
  10. <a class="ui green small button" href="{{.RepoLink}}/wiki/_new">{{.i18n.Tr "repo.wiki.new_page_button"}}</a>
  11. </div>
  12. {{end}}
  13. </div>
  14. <form class="ui form" action="{{.Link}}" method="post">
  15. {{.CsrfTokenHtml}}
  16. <div class="field {{if .Err_Title}}error{{end}}">
  17. <input name="title" value="{{.title}}" autofocus required>
  18. </div>
  19. <div class="field">
  20. <textarea class="js-quick-submit" id="edit_area" name="content" data-id="wiki-{{.title}}" data-url="{{AppSubUrl}}/api/v1/markdown" data-context="{{.RepoLink}}/wiki" required>{{if .PageIsWikiEdit}}{{.content}}{{else}}{{.i18n.Tr "repo.wiki.welcome"}}{{end}}</textarea>
  21. </div>
  22. <div class="field">
  23. <input name="message" placeholder="{{.i18n.Tr "repo.wiki.default_commit_message"}}">
  24. </div>
  25. <div class="text right">
  26. <button class="ui green button">
  27. {{.i18n.Tr "repo.wiki.save_page"}}
  28. </button>
  29. </div>
  30. </form>
  31. </div>
  32. </div>
  33. {{template "base/footer" .}}