Sha256: a63451cd6bbe15215775eaa1b4730772647b1028d6ac5ab562e43bf887c6b464

Contents?: true

Size: 456 Bytes

Versions: 57

Compression:

Stored size: 456 Bytes

Contents

require 'action_view/helpers/url_helper'
require 'woople_theme_i18n'

module WoopleTheme
  module Dashboard
    class EssentialExceptionPresenter < ExceptionPresenter
      include ActionView::Helpers::UrlHelper

      enforce_definitions :url

      def title
        link_to(source.name, source.url)
      end

      def subtitle
        I18n.t('woople_theme.dashboards.member.exceptions.reason', reason: source.description)
      end

    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
woople-theme-0.10.0 app/presenters/woople_theme/dashboard/essential_exception_presenter.rb
woople-theme-0.9.0 app/presenters/woople_theme/dashboard/essential_exception_presenter.rb
woople-theme-0.8.19 app/presenters/woople_theme/dashboard/essential_exception_presenter.rb
woople-theme-0.8.18 app/presenters/woople_theme/dashboard/essential_exception_presenter.rb
woople-theme-0.8.17 app/presenters/woople_theme/dashboard/essential_exception_presenter.rb
woople-theme-0.8.16 app/presenters/woople_theme/dashboard/essential_exception_presenter.rb
woople-theme-0.8.15 app/presenters/woople_theme/dashboard/essential_exception_presenter.rb
woople-theme-0.8.14 app/presenters/woople_theme/dashboard/essential_exception_presenter.rb
woople-theme-0.8.13 app/presenters/woople_theme/dashboard/essential_exception_presenter.rb
woople-theme-0.8.12 app/presenters/woople_theme/dashboard/essential_exception_presenter.rb
woople-theme-0.8.11 app/presenters/woople_theme/dashboard/essential_exception_presenter.rb
woople-theme-0.8.10 app/presenters/woople_theme/dashboard/essential_exception_presenter.rb
woople-theme-0.8.9 app/presenters/woople_theme/dashboard/essential_exception_presenter.rb
woople-theme-0.8.8 app/presenters/woople_theme/dashboard/essential_exception_presenter.rb
woople-theme-0.8.7 app/presenters/woople_theme/dashboard/essential_exception_presenter.rb
woople-theme-0.8.6 app/presenters/woople_theme/dashboard/essential_exception_presenter.rb
woople-theme-0.8.5 app/presenters/woople_theme/dashboard/essential_exception_presenter.rb
woople-theme-0.8.4 app/presenters/woople_theme/dashboard/essential_exception_presenter.rb
woople-theme-0.8.3 app/presenters/woople_theme/dashboard/essential_exception_presenter.rb
woople-theme-0.8.2 app/presenters/woople_theme/dashboard/essential_exception_presenter.rb