Render Group and Project descriptions with our Markdown pipeline

This commit is contained in:
Robert Speicher 2015-05-28 17:56:52 -04:00
parent d85a7437a5
commit 2a5c963b7c
3 changed files with 8 additions and 6 deletions

View File

@ -48,14 +48,16 @@
}
.project-home-desc {
color: $gray;
float: left;
font-size: 16px;
line-height: 1.3;
margin-right: 250px;
}
.project-home-desc {
float: left;
color: $gray;
// Render Markdown-generated HTML inline for this block
p {
display: inline;
}
}
}

View File

@ -11,7 +11,7 @@
@#{@group.path}
- if @group.description.present?
.description
= escaped_autolink(@group.description)
= markdown(@group.description)
%hr
= render 'shared/show_aside'

View File

@ -5,7 +5,7 @@
.project-home-row.project-home-row-top
.project-home-desc
- if @project.description.present?
= escaped_autolink(@project.description)
= markdown(@project.description)
- if can?(current_user, :admin_project, @project)
–
= link_to 'Edit', edit_namespace_project_path