mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
mobile tuning
change to make nav links even and consistent looking to make text bigger for fat fingers change to project nav adding images for arrows
This commit is contained in:
parent
343a4a5846
commit
d27ffb6ce0
5 changed files with 89 additions and 32 deletions
|
|
@ -32,16 +32,20 @@ module ProjectsHelper
|
|||
end
|
||||
|
||||
def project_next_prev_mobile
|
||||
html = ''
|
||||
html = '<ul class="next-prev-project">'
|
||||
unless @previous_project.nil?
|
||||
project_name = truncate(@previous_project.name, :length => 40, :omission => "...")
|
||||
html << link_to_project_mobile(@previous_project, "5", "« 5-#{project_name}")
|
||||
html << '<li class="prev">'
|
||||
html << link_to_project_mobile(@previous_project, "5", "#{project_name}")
|
||||
html << '</li>'
|
||||
end
|
||||
html << ' | ' if @previous_project && @next_project
|
||||
unless @next_project.nil?
|
||||
project_name = truncate(@next_project.name, :length => 40, :omission => "...")
|
||||
html << link_to_project_mobile(@next_project, "6", "6-#{project_name} »")
|
||||
html << '<li class="next">'
|
||||
html << link_to_project_mobile(@next_project, "6", "#{project_name}")
|
||||
html << '</li>'
|
||||
end
|
||||
html << '</ul>'
|
||||
html
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue