mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
fix #1256 by changing the layout of the context view to match the project view
This commit is contained in:
parent
f9232a7e9d
commit
dea8734498
9 changed files with 57 additions and 63 deletions
|
|
@ -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?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue