plz / templates / projects.html
35 lines · 31 sloc · 864 bytes · e5cf6929b726be8619b74a869c136696dfea4546
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">%projects</h1>
14 @if ctx.logged_in && repo.user_id == ctx.user.id
15 <a class="issues-header__new" href="/@repo.user_name/@repo.name/projects/new">%project_new</a>
16 @end
17 </div>
18
19 @if projects.len == 0
20 <div class="issues-empty">%project_none</div>
21 @else
22 <ul class="project-list">
23 @for p in projects
24 <li class="project-row">
25 <a class="project-row__title" href="/@repo.user_name/@repo.name/projects/@p.id">@{p.formatted_name()}</a>
26 <p class="project-row__desc">@p.description</p>
27 </li>
28 @end
29 </ul>
30 @end
31 </div>
32
33 @include 'layout/footer.html'
34 </body>
35</html>
36