From 607d8b7970b3bfc007030f978fcee00623cda743 Mon Sep 17 00:00:00 2001 From: Valeriy Sizov Date: Wed, 17 Oct 2012 15:09:16 +0300 Subject: [PATCH] Wiki Style Fixing --- app/assets/stylesheets/main.scss | 6 ++++++ app/assets/stylesheets/sections/wiki.scss | 3 +++ app/views/wikis/show.html.haml | 7 +++---- 3 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 app/assets/stylesheets/sections/wiki.scss diff --git a/app/assets/stylesheets/main.scss b/app/assets/stylesheets/main.scss index c821c3c1..83ca0495 100644 --- a/app/assets/stylesheets/main.scss +++ b/app/assets/stylesheets/main.scss @@ -189,3 +189,9 @@ $hover: #D9EDF7; * */ @import "sections/editor.scss"; + +/** + * Wiki styles + * + */ +@import "sections/wiki.scss"; diff --git a/app/assets/stylesheets/sections/wiki.scss b/app/assets/stylesheets/sections/wiki.scss new file mode 100644 index 00000000..40f31490 --- /dev/null +++ b/app/assets/stylesheets/sections/wiki.scss @@ -0,0 +1,3 @@ +.wiki{ + padding: 5px; +} diff --git a/app/views/wikis/show.html.haml b/app/views/wikis/show.html.haml index 579ea1b3..fe85ba23 100644 --- a/app/views/wikis/show.html.haml +++ b/app/views/wikis/show.html.haml @@ -10,10 +10,9 @@ %i.icon-edit Edit %br -.file_holder - .file_content.wiki - = preserve do - = markdown @wiki.content +.file_content.wiki + = preserve do + = markdown @wiki.content %p.time Last edited by #{@wiki.user.name}, #{time_ago_in_words @wiki.created_at} ago - if can? current_user, :admin_wiki, @project