login

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>{{$title}}</title>
  <style>
    #nav-bar { float: left; }
    % include view/auth.css
    % include view/table.css
    .private { background-color: #FFFF90; }
  </style>
</head>
<body>
  <div id="nav-bar">home</div>
  % include view/auth.html
  <br>
  % if #$repos == 0 then
  <p><em>no repos found</em></p>
  % else
  <br>
  <table class="center">
    <tr>
      <th>repo</th>
      <th>description</th>
    </tr>
    % for repo in $repos do
    % if $repo.private then
    %   set td_class = 'class="private"'
    % else
    %   set td_class = ''
    % end
    <tr>
      <td {{!$td_class}}><a href="/repo/{{$repo.name}}">{{$repo.name}}</a></td>
      % if #$repo.desc > 0 then
      <td {{!$td_class}}>{{$repo.desc}}</td>
      % else
      <td {{!$td_class}}><em>no description</em></td>
      % end
    </tr>
    % end
  </table>
  % end
</body>
</html>