... | ... |
@@ -45,8 +45,7 @@ |
45 | 45 |
|
46 | 46 |
<div class="container"> |
47 | 47 |
<div style="margin-bottom:20px;"> |
48 |
- %= include '/include/branch_select', display => 'files'; |
|
49 |
- %= include '/include/page_path', type => 'blob', Path => $file; |
|
48 |
+ %= include '/include/branch_select', display => 'blob', Path => $file; |
|
50 | 49 |
</div> |
51 | 50 |
|
52 | 51 |
<div class="border-gray" style="margin-bottom:20px"> |
... | ... |
@@ -9,10 +9,10 @@ |
9 | 9 |
my $logined = $api->logined; |
10 | 10 |
|
11 | 11 |
my $type |
12 |
- = $display eq 'tree' || $display eq 'tree_top' || $display eq 'files' |
|
12 |
+ = $display eq 'tree' || $display eq 'tree_top' || $display eq 'blob' || $display eq 'files' |
|
13 | 13 |
? 'tree' : 'commits'; |
14 | 14 |
|
15 |
- my $dir = stash('dir'); |
|
15 |
+ my $path = stash('Path'); |
|
16 | 16 |
%> |
17 | 17 |
|
18 | 18 |
%= javascript begin |
... | ... |
@@ -117,8 +117,8 @@ |
117 | 117 |
<input id="rep_url" type="text" style="width:550px;border-radius:0;padding:3px 7px;border-top-right-radius:3px;border-bottom-right-radius:3px"> |
118 | 118 |
</div> |
119 | 119 |
</div> |
120 |
- % } elsif ($display eq 'tree') { |
|
121 |
- %= include '/include/page_path', Path => $dir; |
|
120 |
+ % } elsif ($display eq 'tree' || $display eq 'blob') { |
|
121 |
+ %= include '/include/page_path', Path => $path; |
|
122 | 122 |
% } |
123 | 123 |
</div> |
124 | 124 |
|
... | ... |
@@ -204,7 +204,7 @@ |
204 | 204 |
|
205 | 205 |
<div style="margin-bottom:5px;"> |
206 | 206 |
% my $display = defined $dir && length $dir ? 'tree' : 'tree_top'; |
207 |
- %= include '/include/branch_select', display => $display, dir => $dir; |
|
207 |
+ %= include '/include/branch_select', display => $display, Path => $dir; |
|
208 | 208 |
</div> |
209 | 209 |
|
210 | 210 |
<div style="margin-bottom:30px"> |