app/helpers/application_helper.rb
# See a breadcrumbs in page of gallery
See a breadcrumbs in page of gallery
See a breadcrumbs in page of gallery
def breadcrumbs
    breadcrumbs = link_to this_webapp.webapp_name, root_path, :class => 'first-breadcrumb'
    unless @breadcrumb.nil?
      breadcrumbs += content_tag(:label, " > ")
      if @breadcrumb.kind_of? Picture
        picture = @breadcrumb
        @breadcrumb = @breadcrumb.gallery
      end
      breadcrumbs += parent_breadcrumbs_gallery(@breadcrumb)
      unless picture.nil?
        breadcrumbs += content_tag(:label, " > ")
        breadcrumbs += content_tag(:label, picture.title, :class => 'end-breadcrumb')
      end
    end
    if @finish_breadcrumb
      breadcrumbs + " > " + @finish_breadcrumb
    else
      breadcrumbs
    end
  end
def breadcrumbs breadcrumbs = link_to this_webapp . webapp_name , root_path , :class => 'first-breadcrumb' unless @breadcrumb . nil? breadcrumbs += content_tag ( :label , " > " ) if @breadcrumb . kind_of? Picture picture = @breadcrumb @breadcrumb = @breadcrumb . gallery end breadcrumbs += parent_breadcrumbs_gallery ( @breadcrumb ) unless picture . nil? breadcrumbs += content_tag ( :label , " > " ) breadcrumbs += content_tag ( :label , picture . title , :class => 'end-breadcrumb' ) end end if @finish_breadcrumb breadcrumbs + " > " + @finish_breadcrumb else breadcrumbs end end
See a breadcrumbs in page of gallery
See a breadcrumbs in page of gallery