Sha256: 454e272e3ed3a754d0452520caee1524171a9eb5209d68b61aa7ad309c6339c3
Contents?: true
Size: 1.14 KB
Versions: 2
Compression:
Stored size: 1.14 KB
Contents
%h1 - if (page.try(:becomes, Page) == @navable.try(:becomes, Page)) and not @this_is_a_new_blog_post = best_in_place_if can?(:update, page), page, :title - else # Blog Entries: = link_to(page) do = best_in_place_if can?(:update, page), page, :title, classes: 'click_does_not_trigger_edit', activator: 'only_manual' %div.page %div.page_header - if page.author %span.page_author = link_to(page.author.title, page.author) + ", " %span.page_created_at = localize(page.created_at) if page.created_at - if page.updated_at && page.updated_at > page.created_at + 1.hour %span.page_updated_at = " | " = t(:edited_at) = localize(page.updated_at) %div.page_body %div{ id: 'page_content', data: { mercury: 'full' } } = best_in_place_if can?(:update, page), page, :content, type: 'textarea', sanitize: false .show_only_in_edit_mode = render partial: 'shared/markdown_help' #attachments = render(partial: 'pages/pictures', locals: {page: page}) = render(partial: 'pages/videos', locals: {page: page}) = render(partial: 'pages/attachments', locals: {page: page})
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
your_platform-1.0.0 | app/views/pages/_page.html.haml |
your_platform-0.0.2 | app/views/pages/_page.html.haml |