Sha256: d1f3c26c67dbeeea7206d9070562ba6e17cfcb2c7bdfe2f53c7473bb03a55317

Contents?: true

Size: 1.13 KB

Versions: 2

Compression:

Stored size: 1.13 KB

Contents

- if @message.administrative?
  %p
    - if @message.group
      = t("reader_extension.group_#{@message.function}")
      = t("reader_extension.sent_to_group")
    - elsif @message.groups.any?
      = t("reader_extension.group_#{@message.function}")
      = t("reader_extension.sent_to_these_groups")
      %ul
        - @message.groups.each do |group|
          %li= link_to group.name, admin_group_url(group)
    - else
      = t("reader_extension.#{@message.function}_sent_automatically")
  %ul
    %li
      = link_to t('reader_extension.edit_message').titlecase, edit_admin_message_url(@message)
    %li
      - if @message.group
        = link_to @message.group.name + ' ' + t('reader_extension.group_page'), admin_group_url(@message.group)
      - else
        = link_to t('reader_extension.reader_configuration_page').titlecase, admin_reader_configuration_url

- if @message.group
  %p
    = t("reader_extension.belongs_to_group", :name => @message.group.name)
- elsif @message.groups.any?
  %p
    = t("reader_extension.belongs_to_these_groups")
  %ul
    - @message.groups.each do |group|
      %li= link_to group.name, admin_group_url(group)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
radiant-reader-extension-3.0.0.rc3 app/views/admin/messages/_function.haml
radiant-reader-extension-2.0.0.rc4 app/views/admin/messages/_function.haml