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:
tim madden 2012-04-13 17:33:39 -05:00
parent 343a4a5846
commit d27ffb6ce0
5 changed files with 89 additions and 32 deletions

View file

@ -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", "&laquo; 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} &raquo;")
html << '<li class="next">'
html << link_to_project_mobile(@next_project, "6", "#{project_name}")
html << '</li>'
end
html << '</ul>'
html
end