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.

76 lines
4.3 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  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="issue">
  7. <div id="issue-id" class="issue-whole">
  8. <div class="issue-head clearfix">
  9. <div class="number pull-right">#{{.Issue.Index}}</div>
  10. <a class="author pull-left" href="/user/{{.Issue.Poster.Name}}"><img class="avatar" src="{{.Issue.Poster.AvatarLink}}" alt="" width="30"/></a>
  11. <h1 class="title pull-left">{{.Issue.Name}}</h1>
  12. <p class="info pull-left">
  13. <span class="status label label-{{if .Issue.IsClosed}}danger{{else}}success{{end}}">{{if .Issue.IsClosed}}Closed{{else}}Open{{end}}</span>
  14. <a href="/user/{{.Issue.Poster.Name}}" class="author"><strong>{{.Issue.Poster.Name}}</strong></a> opened this issue
  15. <span class="time">{{TimeSince .Issue.Created}}</span> · {{.Issue.NumComments}} comments
  16. </p>
  17. </div>
  18. <div class="issue-main">
  19. <div class="panel panel-default issue-content">
  20. <div class="panel-body markdown">
  21. <p>{{.Issue.Content}}</p>
  22. </div>
  23. </div>
  24. {{range .Comments}}
  25. <div class="issue-child">
  26. <a class="user pull-left" href="/user/{{.Poster.Name}}"><img class="avatar" src="{{.Poster.AvatarLink}}" alt=""/></a>
  27. <div class="issue-content panel panel-default">
  28. <div class="panel-heading">
  29. <a href="/user/{{.Poster.Name}}" class="user">{{.Poster.Name}}</a> commented <span class="time">{{TimeSince .Created}}</span>
  30. </div>
  31. <div class="panel-body markdown">
  32. <p>{{.Content}}</p>
  33. </div>
  34. </div>
  35. </div>
  36. {{end}}
  37. <hr class="issue-line"/>
  38. <div class="issue-child issue-reply">
  39. <a class="user pull-left" href="/user/{{.SignedUser.Name}}"><img class="avatar" src="{{.SignedUser.AvatarLink}}" alt=""/></a>
  40. <form class="panel panel-default issue-content" action="/{{.RepositoryLink}}/comment/new" method="post">
  41. {{.CsrfTokenHtml}}
  42. <div class="panel-body">
  43. <div class="form-group">
  44. <div class="md-help pull-right"><!-- todo help link -->
  45. Content with <a href="#">Markdown</a>
  46. </div>
  47. <ul class="nav nav-tabs" data-init="tabs">
  48. <li class="active"><a href="#issue-textarea" data-toggle="tab">Write</a></li>
  49. <li><a href="#issue-preview" data-toggle="tab">Preview</a></li>
  50. </ul>
  51. <div class="tab-content">
  52. <div class="tab-pane" id="issue-textarea">
  53. <div class="form-group">
  54. <input type="hidden" value="{{.Issue.Index}}" name="issueIndex"/>
  55. <textarea class="form-control" name="content" id="issue-content" rows="10" placeholder="Write some content">{{.content}}</textarea>
  56. </div>
  57. </div>
  58. <div class="tab-pane" id="issue-preview">preview</div>
  59. </div>
  60. </div>
  61. <div class="text-right">
  62. <div class="form-group">
  63. <input type="hidden" value="id" name="repo-id"/>
  64. <button class="btn-success btn">Comment</button>
  65. </div>
  66. </div>
  67. </div>
  68. </form>
  69. </div>
  70. </div><!--
  71. <div class="col-md-3">
  72. label assignment milestone dashboard
  73. </div>-->
  74. </div>
  75. </div>
  76. </div>
  77. {{template "base/footer" .}}