2023-06-14 09:13:33 +08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-10-17 19:17:49 +08:00
|
|
|
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)
|
2018-04-05 22:30:02 +08:00
|
|
|
layout 'fluid'
|
2021-07-21 19:48:38 +08:00
|
|
|
|
2021-07-23 19:52:28 +08:00
|
|
|
def index
|
2021-08-02 21:38:37 +08:00
|
|
|
@label_printer_any = LabelPrinter.any?
|
2023-11-08 16:22:34 +08:00
|
|
|
@user_agent = request.user_agent
|
2021-07-21 19:48:38 +08:00
|
|
|
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
|
2017-10-17 19:17:49 +08:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|