Sha256: b0b0bdd3b8dba91844e2b8f2dd63b74ca78eb4ce0ab69c9b32e15aae2a7367ab

Contents?: true

Size: 1.51 KB

Versions: 3

Compression:

Stored size: 1.51 KB

Contents

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

  - recent_groups.each do |recent|
    %h3= I18n.t('pictures.recents.' + recent[:group_key])
    %ul.groups
      - recent[:groups].each do |group_name|
        %li{ title: group_name }
          %a{ onclick: 'openImagesGallery("' + gallery_url(recent[:group_key], group_name) + '");' }
            %figure
              %div{ style: 'background-image: url("api/group_thumbnail?' + recent[:group_key] + '=' + group_name + '")' }
              %figcaption
                = group_name
                - group_brief = api_group_brief({ recent[:group_key] => group_name })
                - unless group_brief.empty?
                  %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_key])
    %ul.groups.wide
      - section[:groups].each do |group_name|
        %li{ title: group_name }
          %a{ href: section[:url_prefix] + '&' + section[:group_key] + '=' + group_name }
            %figure
              %div{ style: 'background-image: url("api/group_thumbnail?' + section[:group_key] + '=' + group_name + '")' }
              %figcaption
                = group_name
                - group_brief = api_group_brief({ section[:group_key] => group_name })
                - unless group_brief.empty?
                  %br
                  %em= group_brief

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
intranet-pictures-2.2.0 lib/intranet/resources/haml/pictures_home.haml
intranet-pictures-2.1.0 lib/intranet/resources/haml/pictures_home.haml
intranet-pictures-2.0.0 lib/intranet/resources/haml/pictures_home.haml