... | ... |
@@ -428,6 +428,7 @@ sub description { |
428 | 428 |
} |
429 | 429 |
else { |
430 | 430 |
# Read description |
431 |
+ return unless -f $file; |
|
431 | 432 |
my $description = $self->_slurp($file) || ''; |
432 | 433 |
return $description; |
433 | 434 |
} |
... | ... |
@@ -205,6 +205,7 @@ |
205 | 205 |
<div >Description</div> |
206 | 206 |
<div> |
207 | 207 |
% my $description = $git->description($user, $project); |
208 |
+ % $description = '' unless defined $description; |
|
208 | 209 |
%= text_field 'description' => $description, class => 'span8', style => 'margin-top:9px'; |
209 | 210 |
<a class="btn" href="#description">Save</a> |
210 | 211 |
</div> |
... | ... |
@@ -61,7 +61,7 @@ |
61 | 61 |
<td class="muted"> |
62 | 62 |
% if ($rep->{none}) { |
63 | 63 |
<span style="color:red">Repository not exists</span> |
64 |
- <a class="btn btn-mini">Delete</a> |
|
64 |
+ <a href="<%= "/$user/$rep->{name}/settings" %>" class="btn btn-mini">Settings</a> |
|
65 | 65 |
% } else { |
66 | 66 |
<%= $age ? "last updated $age" : 'new repository' %> |
67 | 67 |
% } |