fix #1256 by changing the layout of the context view to match the project view

This commit is contained in:
Reinier Balt 2012-03-21 18:09:20 +01:00
parent f9232a7e9d
commit dea8734498
9 changed files with 57 additions and 63 deletions

View file

@ -58,6 +58,15 @@ module ProjectsHelper
)
end
def link_to_edit_project (project, descriptor = sanitize(project.name))
link_to(descriptor,
url_for({:controller => 'projects', :action => 'edit', :id => project.id}),
{
:id => "link_edit_#{dom_id(project)}",
:class => "project_edit_settings icon"
})
end
def summary(project)
project_description = ''
project_description += sanitize(markdown( project.description )) unless project.description.blank?