Sha256: 3930b49ad250ee6e54d6bf611f914f5174e0a0a584c566ebfc05234e1b723f99

Contents?: true

Size: 396 Bytes

Versions: 26

Compression:

Stored size: 396 Bytes

Contents

module Writefully
  module ApplicationHelper
    def path_active?(path)
      request.path == path ? 'active' : nil
    end

    def link_icon(icon)
      content_tag :span, nil,class: "glyphicon glyphicon-#{icon}" if icon
    end

    def activeable_link_to(type, name, path, options = {})
      render 'activeable_link_to', type: type, name: name, path: path, options: options
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
writefully-0.8.2 app/helpers/writefully/application_helper.rb
writefully-0.8.1 app/helpers/writefully/application_helper.rb
writefully-0.8.0 app/helpers/writefully/application_helper.rb
writefully-0.7.1 app/helpers/writefully/application_helper.rb
writefully-0.6.12 app/helpers/writefully/application_helper.rb
writefully-0.6.11 app/helpers/writefully/application_helper.rb
writefully-0.6.10 app/helpers/writefully/application_helper.rb
writefully-0.6.9 app/helpers/writefully/application_helper.rb
writefully-0.6.7 app/helpers/writefully/application_helper.rb
writefully-0.6.6 app/helpers/writefully/application_helper.rb
writefully-0.6.5 app/helpers/writefully/application_helper.rb
writefully-0.6.4 app/helpers/writefully/application_helper.rb
writefully-0.6.3 app/helpers/writefully/application_helper.rb
writefully-0.6.2 app/helpers/writefully/application_helper.rb
writefully-0.5.1 app/helpers/writefully/application_helper.rb
writefully-0.5.0 app/helpers/writefully/application_helper.rb
writefully-0.4.10 app/helpers/writefully/application_helper.rb
writefully-0.4.8 app/helpers/writefully/application_helper.rb
writefully-0.4.7 app/helpers/writefully/application_helper.rb
writefully-0.4.6 app/helpers/writefully/application_helper.rb