Sha256: 8502bc70877c10fb261165170ea84118189dc33995fa9fac98e8ce88f4a4eedd

Contents?: true

Size: 983 Bytes

Versions: 5

Compression:

Stored size: 983 Bytes

Contents

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
radiant-reader_group-extension-1.2.4 app/views/admin/messages/_function.haml
radiant-reader_group-extension-1.2.3 app/views/admin/messages/_function.haml
radiant-reader_group-extension-1.2.2 app/views/admin/messages/_function.haml
radiant-reader_group-extension-1.2.1 app/views/admin/messages/_function.haml
radiant-reader_group-extension-1.2.0 app/views/admin/messages/_function.haml