Sha256: 7da4ab0b78fa1e476a6babb23ec70a01695d97808e87a236c8452d5f1cd7049f
Contents?: true
Size: 1.58 KB
Versions: 1
Compression:
Stored size: 1.58 KB
Contents
.discounts = render partial: 'account/submenu' .cabinet_subnav .cabinet_subnav_active span = @group.title ul - DiscountsPageType.enabled.each do |page_type| li class="#{'active' if @group.id == page_type.id}" = link_to_unless_current_span page_type.title, account_discounts_path(page_type: page_type.slug) - if page_type.notify?(@account.profile.notification) span.icon-notification-bell .content - case @group.id - when DiscountsPageType.lifetime.id - unless @lifetimes.empty? = render partial: 'progress', locals: { finance: @account.profile.finance } .widget.widget_life_time .widget_content - unless @lifetimes.empty? = render partial: 'lifetime_items', locals: { finance: @account.profile.finance, lifetimes: @lifetimes } - when DiscountsPageType.onetime.id - unless @coupons.empty? .generated_discount_section = render partial: 'discount', collection: @coupons - unless @personal_coupons.empty? .generated_discount_section .generated_discount_title span = t 'account.discounts.type_title.generated' = render partial: 'personal_coupon', collection: @personal_coupons, as: :discount - if @coupons.empty? && @personal_coupons.empty? = render partial: 'account/no_records', locals: { theme: t("discounts", scope: [:account, :no_records]) } - when DiscountsPageType.extras.id = render partial: 'account/no_records', locals: { theme: t("discounts", scope: [:account, :no_records]) }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
translation_cms-0.1.5 | app/views/account/discounts/index.html.slim |