get project features to pass

This commit is contained in:
Reinier Balt 2012-05-12 14:48:56 +02:00
parent d432d91cc8
commit 901a5ff0d2
6 changed files with 12 additions and 12 deletions

View file

@ -18,17 +18,17 @@ module ProjectsHelper
end
def project_next_prev
html = ''
unless @previous_project.nil?
html = ""
if @previous_project
project_name = truncate(@previous_project.name, :length => 40, :omission => "...")
html << link_to_project(@previous_project, "&laquo; #{project_name}")
html << link_to_project(@previous_project, "&laquo; #{project_name}".html_safe)
end
html << ' | ' if @previous_project && @next_project
unless @next_project.nil?
html << " | " if @previous_project && @next_project
if @next_project
project_name = truncate(@next_project.name, :length => 40, :omission => "...")
html << link_to_project(@next_project, "#{project_name} &raquo;")
html << link_to_project(@next_project, "#{project_name} &raquo;".html_safe)
end
html
html.html_safe
end
def project_next_prev_mobile