... | ... |
@@ -46,7 +46,7 @@ |
46 | 46 |
%= include '/include/code_menu', display => 'commits'; |
47 | 47 |
|
48 | 48 |
<div style="margin-top:20px;margin-bottom:15px"> |
49 |
- % if (defined $file) { |
|
49 |
+ % if (defined $file && length $file) { |
|
50 | 50 |
%= include '/include/page_path', type => 'blob', Path => $file, operation => 'commits', prefix => 'History for'; |
51 | 51 |
% } else { |
52 | 52 |
<div style="font-size:18px"> |
... | ... |
@@ -117,6 +117,7 @@ note 'Commits page'; |
117 | 117 |
{ |
118 | 118 |
# Page access |
119 | 119 |
$t->get_ok("/$user/$project/commits/master"); |
120 |
+ $t->content_like(qr/Commit History/); |
|
120 | 121 |
|
121 | 122 |
# Commit date time |
122 | 123 |
$t->content_like(qr/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/); |
... | ... |
@@ -133,6 +134,7 @@ note 'History page'; |
133 | 134 |
{ |
134 | 135 |
# Page access |
135 | 136 |
$t->get_ok("/$user/$project/commits/b1/README"); |
137 |
+ $t->content_like(qr/History for/); |
|
136 | 138 |
|
137 | 139 |
# Content |
138 | 140 |
$t->content_like(qr/first commit/); |