mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Renamed disk usage component
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
<p class="information-section">
|
||||
<%= helpers.op_icon('icon-info1') %>
|
||||
<%= t(:label_projects_disk_usage_information,
|
||||
count: Project.count,
|
||||
used_disk_space: number_to_human_size(Project.total_projects_size, precision: 2)) %>
|
||||
</p>
|
||||
+1
-1
@@ -28,7 +28,7 @@
|
||||
# See COPYRIGHT and LICENSE files for more details.
|
||||
# ++
|
||||
|
||||
class Projects::StorageInformationComponent < ApplicationComponent
|
||||
class Projects::DiskUsageInformationComponent < ApplicationComponent
|
||||
options :current_user
|
||||
|
||||
def render?
|
||||
@@ -1,6 +0,0 @@
|
||||
<p class="information-section">
|
||||
<%= helpers.op_icon('icon-info1') %>
|
||||
<%= t(:label_projects_storage_information,
|
||||
count: Project.count,
|
||||
storage: number_to_human_size(Project.total_projects_size, precision: 2)) %>
|
||||
</p>
|
||||
@@ -48,11 +48,11 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
size: :medium,
|
||||
aria: { label: I18n.t(:label_project_new) },
|
||||
data: { 'test-selector': 'project-new-button' }) do |button|
|
||||
button.with_leading_visual_icon(icon: :plus)
|
||||
Project.model_name.human
|
||||
end
|
||||
button.with_leading_visual_icon(icon: :plus)
|
||||
Project.model_name.human
|
||||
end
|
||||
end
|
||||
end
|
||||
%>
|
||||
|
||||
|
||||
@@ -61,6 +61,5 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
current_user: current_user,
|
||||
params:) %>
|
||||
|
||||
<%= render Projects::StorageInformationComponent.new(
|
||||
current_user: current_user) %>
|
||||
<%= render Projects::DiskUsageInformationComponent.new(current_user: current_user) %>
|
||||
</div>
|
||||
|
||||
@@ -2270,7 +2270,7 @@ Project attributes and sections are defined in the <a href=%{admin_settings_url}
|
||||
label_project_attributes_settings: "Project attributes settings"
|
||||
label_project_storage_plural: "File Storages"
|
||||
label_project_storage_project_folder: "File Storages: Project folders"
|
||||
label_projects_storage_information: "%{count} projects using %{storage} disk storage"
|
||||
label_projects_disk_usage_information: "%{count} projects using %{used_disk_space} disk space"
|
||||
label_project_view_all: "View all projects"
|
||||
label_project_show_details: "Show project details"
|
||||
label_project_hide_details: "Hide project details"
|
||||
|
||||
Reference in New Issue
Block a user