request.thread.tpl.html

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{{template "prelude.tpl.html" .}}
<title>{{.Repo}} Change Request - {{.Title}} - Senary</title>
</head>
<body>
    <header class="container-fluid">
        {{ template "header.tpl.html" .}}
    </header>
<main class="container-fluid repomain">

{{template "repomenu.tpl.html" .}}
<div>
    <section>
    <a href="/repos/{{.Repo}}/requests/new?type=issue"><button>New Issue</button></a>
    <a href="/repos/{{.Repo}}/requests/new?type=patch"><button>Submit Patch</button></a>
    </section>

<section>


  <article>
    <header>
 <h4>{{.Title}}</h4> <small> 
  

  {{if eq .User.IsMaintainer true}} 
  {{if ne .Issue.PatchRef "" }}
  {{if .Issue.PatchInfo.CanBeApplied }}
  <footer>
   <div role="group">
     <form class="shrink" method="post" action="/repos/{{.Repo}}/apply/{{.Issue.ID}}/{{.Issue.PatchRef}}/">
        <button data-tooltip="Apply Patch"  >Apply Patch</button>
      </form>
    </div>
  </footer>
  {{end}}
  {{end}}
  {{end}}

  {{range .Warnings}}
  {{if eq .Level 0 }}
  <mark class="warning">{{.Message}}</mark>{{else}}<mark class="info">{{.Message}}</mark> {{end}}{{end}}</small>
      
</header>
  
{{range .Elements}}
    {{.}}
{{end}}



<form method="post" action="/repos/{{.Repo}}/requests/new?type=reply">
     <fieldset role="group">
        <input
        name="replyto"
        hidden
        value="{{.ID}}"
      />
      <label>
        Reply
        <textarea
          name="description"
          placeholder="Add to this Change Request"
        ></textarea>
      </label>
    </fieldset>
    <input
      type="submit"
      value="Reply"
    />
  </form>
</article>

</section>
</div>
</main>

<footer>
</footer>
 
</body>
</html>