scinote-web/app/controllers/users/settings/account/addons_controller.rb

28 lines
662 B
Ruby
Raw Normal View History

2023-06-14 09:13:33 +08:00
# frozen_string_literal: true
module Users
module Settings
module Account
class AddonsController < ApplicationController
2023-06-14 09:15:18 +08:00
before_action :set_breadcrumbs_items, only: %i(index)
layout 'fluid'
2021-07-23 19:52:28 +08:00
def index
@label_printer_any = LabelPrinter.any?
@user_agent = request.user_agent
end
2023-06-14 09:13:33 +08:00
private
def set_breadcrumbs_items
@breadcrumbs_items = []
@breadcrumbs_items.push({
label: t('breadcrumbs.addons'),
url: addons_path
})
end
end
end
end
end