... | ... |
@@ -412,7 +412,10 @@ sub startup { |
412 | 412 |
|
413 | 413 |
# Home |
414 | 414 |
$r->get('/' => sub { shift->render_maybe('/tree') }); |
415 |
- |
|
415 |
+ |
|
416 |
+ # Issue |
|
417 |
+ $r->get('/issues' => sub { shift->render_maybe('/issues') })->to(tab => 'issues'); |
|
418 |
+ |
|
416 | 419 |
# Pull requests |
417 | 420 |
$r->get('/pulls' => sub { shift->render_maybe('/pulls') })->to(tab => 'pulls'); |
418 | 421 |
|
... | ... |
@@ -121,6 +121,12 @@ |
121 | 121 |
Code |
122 | 122 |
</a> |
123 | 123 |
</li> |
124 |
+ <li class="<%= $tab eq 'issues' ? 'active' : '' %>"> |
|
125 |
+ <a href="<%= url_for("/$user_id/$project_id/issues") %>"> |
|
126 |
+ <i class="icon-tasks"></i> |
|
127 |
+ Issue |
|
128 |
+ </a> |
|
129 |
+ </li> |
|
124 | 130 |
<li class="<%= $tab eq 'pulls' ? 'active' : '' %>"> |
125 | 131 |
<a href="<%= url_for("/$user_id/$project_id/pulls") %>"> |
126 | 132 |
<i class="icon-retweet"></i> |
... | ... |
@@ -0,0 +1,20 @@ |
1 |
+<% |
|
2 |
+ # API |
|
3 |
+ my $api = gitprep_api; |
|
4 |
+ |
|
5 |
+ # Parameters |
|
6 |
+ my $user_id = param('user'); |
|
7 |
+ my $project_id = param('project'); |
|
8 |
+ |
|
9 |
+ |
|
10 |
+%> |
|
11 |
+ |
|
12 |
+% layout 'common', title => "Pull Requests Tags \x{30fb} $user_id/$project_id"; |
|
13 |
+ |
|
14 |
+ %= include '/include/header'; |
|
15 |
+ |
|
16 |
+ <div class="container"> |
|
17 |
+ <h1>Issues</h1> |
|
18 |
+ </div> |
|
19 |
+ |
|
20 |
+ %= include '/include/footer'; |