Sha256: 789fa8cfea07caa329a09d28c9dc17f173199e4e5af42497d364288d8509f837

Contents?: true

Size: 1.45 KB

Versions: 6

Compression:

Stored size: 1.45 KB

Contents

%section
  = to_markup 'title_and_breadcrumb', {title: title, nav: nav}

  - recent_groups.each do |recent|
    %h3= I18n.t('pictures.recents.' + recent[:group_type])
    %ul.groups
      - recent[:groups].each do |group|
        %li{ title: group['title'] }
          %a{ onclick: 'openImagesGallery("' + gallery_url(recent[:group_type], group['id']) + '");' }
            %figure
              %div{ style: 'background-image: url("api/group/' + recent[:group_type] + '?' + recent[:group_type] + '=' + group['id'] + '")' }
              %figcaption
                = group['title']
                - if group['brief']
                  %br
                  %em= group['brief']
    - unless recent[:see_more_url].empty?
      %p.see_more
        %a{ href: recent[:see_more_url] }= I18n.t('pictures.see_more')

  - all_groups.each do |section|
    %h3= I18n.t('pictures.browse_by.' + section[:group_type])
    %ul.groups.wide
      - section[:groups].each do |group|
        %li{ title: group['title'] }
          %a{ href: section[:url_prefix] + '&' + section[:group_type] + '=' + group['id'] }
            %figure
              %div{ style: 'background-image: url("api/group/' + section[:group_type] + '?' + section[:group_type] + '=' + group['id'] + '")' }
              %figcaption
                = group['title']
                - if group['brief']
                  %br
                  %em= group['brief']

- unless recent_groups.empty?
  = to_markup 'pictures_photoswipe'

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
intranet-pictures-1.0.6 lib/intranet/resources/haml/pictures_home.haml
intranet-pictures-1.0.5 lib/intranet/resources/haml/pictures_home.haml
intranet-pictures-1.0.4 lib/intranet/resources/haml/pictures_home.haml
intranet-pictures-1.0.3 lib/intranet/resources/haml/pictures_home.haml
intranet-pictures-1.0.1 lib/intranet/resources/haml/pictures_home.haml
intranet-pictures-1.0.0 lib/intranet/resources/haml/pictures_home.haml