Sha256: 11db7b631e9248088170ccd33c9401e292db2864a82f1587ae2b58512cd9b174

Contents?: true

Size: 462 Bytes

Versions: 15

Compression:

Stored size: 462 Bytes

Contents

module Maily
  module ApplicationHelper
    def title
      _title = 'Maily'

      if params[:mailer] && params[:email]
        _title << " - #{params[:mailer].humanize} | #{params[:email].humanize}"
      end

      _title
    end

    def sidebar_class(mailer, email)
      'selected_mail' if mailer.name == params[:mailer] && email.name == params[:email]
    end

    def icon(name)
      image_tag "maily/icons/#{name}.svg", class: 'icon'
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
maily-0.12.3 app/helpers/maily/application_helper.rb
maily-0.12.2 app/helpers/maily/application_helper.rb
maily-0.12.1 app/helpers/maily/application_helper.rb
maily-0.12.0 app/helpers/maily/application_helper.rb
maily-0.11.0 app/helpers/maily/application_helper.rb
maily-0.10.1 app/helpers/maily/application_helper.rb
maily-0.10.0 app/helpers/maily/application_helper.rb
maily-0.9.1 app/helpers/maily/application_helper.rb
maily-0.9.0 app/helpers/maily/application_helper.rb
maily-0.8.2 app/helpers/maily/application_helper.rb
maily-0.8.1 app/helpers/maily/application_helper.rb
maily-0.8.0 app/helpers/maily/application_helper.rb
maily-0.7.2 app/helpers/maily/application_helper.rb
maily-0.7.1 app/helpers/maily/application_helper.rb
maily-0.7.0 app/helpers/maily/application_helper.rb