Sha256: 27eafdbaefb9d4f61c09c7357d51c0a1aae2f2566e0ed5555280272b5d23f6ed

Contents?: true

Size: 1.42 KB

Versions: 2

Compression:

Stored size: 1.42 KB

Contents

- if !show_item? @article
  - @page_title = _('Content not displayed')
  = render 'elabs/layouts/hidden_entry_full', entity: @article
- else
  - @page_title = @article.title
  .article.article--full
    %aside
      %ul
        %li
          = icon('user', ['fw'])
          %strong= _('Author:')
          = link_to @article.user.username, @article.user
        %li
          = icon('calendar-check', ['fw'])
          %strong= _('Published at:')
          = @article.published_at
        %li
          = icon('calendar', ['fw'])
          %strong= _('Updated at:')
          = @article.updated_at
        %li
          = icon('info', ['fw'])
          %strong= _('SFW:')
          = @article.sfw
        %li
          = icon('language', ['fw'])
          %strong= _('Language:')
          = link_to @article.language.name, @article.language
        %li
          = icon('copyright', ['fw'])
          %strong= _('License:')
          = link_to @article.license.name, @article.license

        %li.separator= render 'elabs/layouts/lists/projects', projects: @article.projects
        %li.separator= render 'elabs/layouts/lists/tags', tags: @article.tags

    .content
      %article{ lang: @article.language.iso639_1 }
        = markdown @article.excerpt
        = markdown @article.content

  = render 'elabs/comments/comments',
            entity: @article,
            new_comment: @new_comment,
            url: article_create_comment_path(@article)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
elabs-2.0.0 app/views/elabs/articles/show.html.haml
elabs-2.0.0.pre app/views/elabs/articles/show.html.haml