Sha256: 8208ef1cc8002b377f82a5b243744a655fa9713085e74f16fca65cc8755e8819

Contents?: true

Size: 720 Bytes

Versions: 3

Compression:

Stored size: 720 Bytes

Contents

- # locals:
- #   - pages
- # 

- pages ||= @news_pages

- # TODO: Move this back to the controller. But since, the root page does not redirect to the
- #   root controller, we would have code duplication now. We need to clean up the separation
- #   between root#index and pages#show.
- # 
- # TODO: Remove the double-check can? when sure that the news_pages list only allowed pages.
- pages ||= current_user.news_pages.limit(10).select { |page| can? :read, page }

%h1.what_is_new= translate :what_is_new_in_my_groups
%div.what_is_new
  %ul
    - for page in pages
      %li
        %strong>= link_to (page.title.present? ? page.title : translate(:untitled)), page
        , 
        = localize page.updated_at.to_date

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
your_platform-1.0.1 app/views/root/_what_is_new.html.haml
your_platform-1.0.0 app/views/root/_what_is_new.html.haml
your_platform-0.0.2 app/views/root/_what_is_new.html.haml