Wiki Style Fixing

This commit is contained in:
Valeriy Sizov 2012-10-17 15:09:16 +03:00
parent 7166739086
commit 607d8b7970
3 changed files with 12 additions and 4 deletions
app
assets/stylesheets
views/wikis

View file

@ -189,3 +189,9 @@ $hover: #D9EDF7;
* *
*/ */
@import "sections/editor.scss"; @import "sections/editor.scss";
/**
* Wiki styles
*
*/
@import "sections/wiki.scss";

View file

@ -0,0 +1,3 @@
.wiki{
padding: 5px;
}

View file

@ -10,10 +10,9 @@
%i.icon-edit %i.icon-edit
Edit Edit
%br %br
.file_holder .file_content.wiki
.file_content.wiki = preserve do
= preserve do = markdown @wiki.content
= markdown @wiki.content
%p.time Last edited by #{@wiki.user.name}, #{time_ago_in_words @wiki.created_at} ago %p.time Last edited by #{@wiki.user.name}, #{time_ago_in_words @wiki.created_at} ago
- if can? current_user, :admin_wiki, @project - if can? current_user, :admin_wiki, @project