mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
do a big refactor of rendering collections of todos for home page, tag page, project page, context page
This commit is contained in:
parent
f22dfc1f9b
commit
22b371ef8c
20 changed files with 910 additions and 816 deletions
|
|
@ -15,11 +15,13 @@ module ProjectsHelper
|
|||
end
|
||||
|
||||
def project_next_prev
|
||||
html = ""
|
||||
html << link_to_project(@previous_project, "« #{@previous_project.shortened_name}".html_safe) if @previous_project
|
||||
html << " | " if @previous_project && @next_project
|
||||
html << link_to_project(@next_project, "#{@next_project.shortened_name} »".html_safe) if @next_project
|
||||
return html.html_safe
|
||||
content_tag(:div, :id=>"project-next-prev") do
|
||||
html = ""
|
||||
html << link_to_project(@previous_project, "« #{@previous_project.shortened_name}".html_safe) if @previous_project
|
||||
html << " | " if @previous_project && @next_project
|
||||
html << link_to_project(@next_project, "#{@next_project.shortened_name} »".html_safe) if @next_project
|
||||
html.html_safe
|
||||
end
|
||||
end
|
||||
|
||||
def project_next_prev_mobile
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue