-
Notifications
You must be signed in to change notification settings - Fork 358
/
cloud_object_store_object_controller.rb
53 lines (42 loc) · 1.17 KB
/
cloud_object_store_object_controller.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
class CloudObjectStoreObjectController < ApplicationController
before_action :check_privileges
before_action :get_session_data
after_action :cleanup_action
after_action :set_session_data
include Mixins::GenericListMixin
include Mixins::GenericSessionMixin
include Mixins::GenericFormMixin
include Mixins::GenericShowMixin
include Mixins::BreadcrumbsMixin
def breadcrumb_name(_model)
_('Cloud Object Store Objects')
end
def button
@edit = session[:edit]
params[:page] = @current_page unless @current_page.nil?
process_cloud_object_storage_buttons(params[:pressed])
delete_action if params[:pressed].ends_with?("delete")
end
def title
_("Cloud Objects")
end
private
def record_class
CloudObjectStoreObject
end
def textual_group_list
[%i[properties relationships], %i[tags]]
end
helper_method :textual_group_list
def breadcrumbs_options
{
:breadcrumbs => [
{:title => _("Storage")},
{:title => _("Object Storage")},
{:title => _("Object Store Objects")},
{:url => controller_url, :title => _("Cloud Object Store Objects")},
],
}
end
menu_section :ost
end