<% my $api = gitprep_api; %>

GitPrep

% if ((url_for->path->parts->[0] || '') ne '_search') {
<%= text_field 'q', style => 'display:inline-block', placeholder => 'Search' %>
% }
% if ($api->logined) {
% my $user = session('user') || ''; "><%= $user %>
% unless ($user eq 'admin') { ">Create a new repo ">Account Settings % } % my $url = url_with->to_abs; ">Sign out
% } else {
Sign in
% }