diff options
author | randx <dmitriy.zaporozhets@gmail.com> | 2012-10-16 10:48:55 +0400 |
---|---|---|
committer | randx <dmitriy.zaporozhets@gmail.com> | 2012-10-16 10:48:55 +0400 |
commit | 76e1ca64301d52fb25b0a0e8cb9d513ba7d33c46 (patch) | |
tree | f2b12b59b6a13403a160412755b7733e410a1171 /app/views | |
parent | 453b2ae68b1f127de1deeb745950132542eac667 (diff) |
tree.readme method added
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/tree/_tree.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/tree/_tree.html.haml b/app/views/tree/_tree.html.haml index 71192109b8f..02ae3d90c40 100644 --- a/app/views/tree/_tree.html.haml +++ b/app/views/tree/_tree.html.haml @@ -32,8 +32,8 @@ = render_tree(tree.contents) - - if readme = tree.contents.find { |c| c.is_a?(Grit::Blob) and c.name =~ /^readme/i } - = render "tree/readme", readme: readme + - if tree.readme + = render "tree/readme", readme: tree.readme - unless tree.is_blob? :javascript |