diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-04-28 17:57:17 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-04-28 19:37:19 +0300 |
commit | 0be3187a56603e26b677d31880be0dc21072f687 (patch) | |
tree | 3f2763bfed60f9fe09468303d6a23468f578c7a9 /app/views/projects/_wiki.html.haml | |
parent | 31b87b8cab2c2daebb99657046e5d121b48499ad (diff) |
Pull preserve into render helpers
Diffstat (limited to 'app/views/projects/_wiki.html.haml')
-rw-r--r-- | app/views/projects/_wiki.html.haml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/projects/_wiki.html.haml b/app/views/projects/_wiki.html.haml index 41d42740f61..2bab22e125d 100644 --- a/app/views/projects/_wiki.html.haml +++ b/app/views/projects/_wiki.html.haml @@ -2,8 +2,7 @@ %div{ class: container_class } .wiki-holder.prepend-top-default.append-bottom-default .wiki - = preserve do - = render_wiki_content(@wiki_home) + = render_wiki_content(@wiki_home) - else - can_create_wiki = can?(current_user, :create_wiki, @project) .project-home-empty{ class: [('row-content-block' if can_create_wiki), ('content-block' unless can_create_wiki)] } |