Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ce77e904
Commit
ce77e904
authored
Feb 14, 2022
by
Eugie Limpin
Committed by
Miguel Rincon
Feb 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use gl_tabs_nav in Project Usage Quota index page
parent
d1fb9295
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
20 deletions
+5
-20
app/views/projects/usage_quotas/index.html.haml
app/views/projects/usage_quotas/index.html.haml
+5
-6
ee/app/assets/javascripts/pages/projects/usage_quotas/index.js
...p/assets/javascripts/pages/projects/usage_quotas/index.js
+0
-14
No files found.
app/views/projects/usage_quotas/index.html.haml
View file @
ce77e904
...
...
@@ -9,11 +9,10 @@
%a
{
href:
help_page_path
(
'user/usage_quotas.md'
),
target:
'_blank'
,
rel:
'noopener noreferrer'
}
=
s_
(
'UsageQuota|Learn more about usage quotas'
)
+
'.'
.top-area.scrolling-tabs-container.inner-page-scroll-tabs
%ul
.nav.nav-tabs.nav-links.scrolling-tabs.separator.js-usage-quota-tabs
{
role:
'tablist'
}
%li
.nav-item
%a
.nav-link
#storage-quota
{
data:
{
toggle:
"tab"
,
action:
'#storage-quota-tab'
},
href:
'#storage-quota-tab'
,
'aria-controls'
:
'#storage-quota-tab'
,
'aria-selected'
:
'true'
}
=
gl_tabs_nav
do
=
gl_tab_link_to
'#storage-quota-tab'
,
item_active:
true
do
=
s_
(
'UsageQuota|Storage'
)
.tab-content
.tab-pane
#storage-quota-tab
.tab-pane
.active
#storage-quota-tab
#js-project-storage-count-app
{
data:
{
project_path:
@project
.
full_path
}
}
ee/app/assets/javascripts/pages/projects/usage_quotas/index.js
View file @
ce77e904
import
LinkedTabs
from
'
~/lib/utils/bootstrap_linked_tabs
'
;
import
initProjectStorage
from
'
ee/usage_quotas/storage/init_project_storage
'
;
import
initSearchSettings
from
'
~/search_settings
'
;
const
initLinkedTabs
=
()
=>
{
if
(
!
document
.
querySelector
(
'
.js-usage-quota-tabs
'
))
{
return
false
;
}
return
new
LinkedTabs
({
defaultAction
:
'
#storage-quota-tab
'
,
parentEl
:
'
.js-usage-quota-tabs
'
,
hashedTabs
:
true
,
});
};
const
initVueApp
=
()
=>
{
initProjectStorage
(
'
js-project-storage-count-app
'
);
};
initVueApp
();
initLinkedTabs
();
initSearchSettings
();
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment