ggdgsdbsdbbb / templates / pulls.html
71 lines · 66 sloc · 3.01 KB · 07e2e6537964e8d39306e45dc3c97db128162ea2
Raw
1<!DOCTYPE html>
2<html>
3 <head>
4 @include 'layout/head.html'
5 </head>
6 <body>
7 @include 'layout/header.html'
8
9 <div class="content">
10 @include 'layout/repo_menu.html'
11
12 <div class="issues-header">
13 <h1 class="issues-header__title">%pr_pull_requests</h1>
14 <div class="issues-header__actions">
15 @if repo.milestones_enabled()
16 <a class="issues-header__milestones" href="/@repo.user_name/@repo.name/milestones">%milestones</a>
17 @end
18 @if ctx.logged_in
19 <a class="issues-header__new" href='/@repo.user_name/@repo.name/compare'>%pr_new</a>
20 @end
21 </div>
22 </div>
23
24 <div class="pr-tabs">
25 <a class="@tab_open_class" href="/@repo.user_name/@repo.name/pulls/open">%pr_tab_open</a>
26 <a class="@tab_merged_class" href="/@repo.user_name/@repo.name/pulls/merged">%pr_tab_merged</a>
27 <a class="@tab_closed_class" href="/@repo.user_name/@repo.name/pulls/closed">%pr_tab_closed</a>
28 </div>
29
30 @if prs_with_users.len == 0
31 <div class="issues-empty">%pr_none</div>
32 @else
33 <ul class="issue-list">
34 @for pwu in prs_with_users
35 <li class="issue-row">
36 <svg class="issue-row__icon" viewBox="0 0 16 16" aria-hidden="true">
37 <path fill="#1f883d" d="M1.5 3.25a2.25 2.25 0 1 1 3 2.122v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.25 2.25 0 0 1 1.5 3.25Zm5.677-.177L9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM3.75 2.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0 9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm8.25.75a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Z"/>
38 </svg>
39 <div class="issue-row__body">
40 <div class="issue-row__heading">
41 <a class="issue-row__title" href="/@repo.user_name/@repo.name/pull/@pwu.pr.id">@{pwu.pr.formatted_title()}</a>
42 @if pwu.pr.is_open()
43 <span class="pr-status-badge pr-status--open">%pr_status_open</span>
44 @else if pwu.pr.is_merged()
45 <span class="pr-status-badge pr-status--merged">%pr_status_merged</span>
46 @else
47 <span class="pr-status-badge pr-status--closed">%pr_status_closed</span>
48 @end
49 </div>
50 <div class="issue-row__meta">
51 <span>#@pwu.pr.id</span>
52 <span>@pwu.pr.head_branch → @pwu.pr.base_branch</span>
53 <span>%pr_opened @pwu.pr.relative_time() %pr_by</span>
54 <a class="issue-row__author" href="/@pwu.user.username">@pwu.user.username</a>
55 </div>
56 </div>
57 @if pwu.pr.comments_count > 0
58 <a class="issue-row__comments" href="/@repo.user_name/@repo.name/pull/@pwu.pr.id" title="%pr_comments_title">
59 <svg viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="M1 2.75A1.75 1.75 0 0 1 2.75 1h10.5A1.75 1.75 0 0 1 15 2.75v8.5A1.75 1.75 0 0 1 13.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H2.75A1.75 1.75 0 0 1 1 11.25Z"/></svg>
60 @pwu.pr.comments_count
61 </a>
62 @end
63 </li>
64 @end
65 </ul>
66 @end
67 </div>
68
69 @include 'layout/footer.html'
70 </body>
71</html>
72