Sha256: 0e5d9e63c0201dcb29166ace942403acf6ec68173bce000167d8ea04889b64a9
Contents?: true
Size: 1.18 KB
Versions: 3
Compression:
Stored size: 1.18 KB
Contents
module Bhf module ApplicationHelper def show_t(platform) t("bhf.helpers.entry.models.#{platform.model_name}.show", platform_name: platform.title_singular, default: t('bhf.helpers.entry.show')).html_safe end def new_t(platform) t("bhf.helpers.entry.models.#{platform.model_name}.new", platform_name: platform.title_singular, default: t('bhf.helpers.entry.new')).html_safe end def duplicate_t(platform) t("bhf.helpers.entry.models.#{platform.model_name}.duplicate", platform_name: platform.title_singular, default: t('bhf.helpers.entry.duplicate')).html_safe end def edit_t(platform) t("bhf.helpers.entry.models.#{platform.model_name}.edit", platform_name: platform.title_singular, default: t('bhf.helpers.entry.edit')).html_safe end def delete_t(platform) t("bhf.helpers.entry.models.#{platform.model_name}.delete", platform_name: platform.title_singular, default: t('bhf.helpers.entry.delete')).html_safe end def find_smallest_size_url_for_file(file) if file.exists?(:thumb) file.url(:thumb) elsif file.exists?(:medium) file.url(:medium) else file.url end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bhf-0.7.15 | app/helpers/bhf/application_helper.rb |
bhf-0.7.14 | app/helpers/bhf/application_helper.rb |
bhf-0.7.13 | app/helpers/bhf/application_helper.rb |