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
68ac430a
Commit
68ac430a
authored
Sep 18, 2018
by
Martin Wortschack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename helper method
parent
cecb0fdd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app/helpers/application_helper.rb
app/helpers/application_helper.rb
+2
-2
app/views/layouts/nav/sidebar/_admin.html.haml
app/views/layouts/nav/sidebar/_admin.html.haml
+2
-2
No files found.
app/helpers/application_helper.rb
View file @
68ac430a
...
...
@@ -13,8 +13,8 @@ module ApplicationHelper
lookup_context
.
exists?
(
partial
,
[],
true
)
end
def
view_exists?
(
partial
)
lookup_context
.
exists?
(
partial
,
[],
false
)
def
template_exists?
(
template
)
lookup_context
.
exists?
(
template
,
[],
false
)
end
# Check if a particular controller is the current one
...
...
app/views/layouts/nav/sidebar/_admin.html.haml
View file @
68ac430a
...
...
@@ -218,7 +218,7 @@
=
link_to
repository_admin_application_settings_path
,
title:
_
(
'Repository'
)
do
%span
=
_
(
'Repository'
)
-
if
view
_exists?
(
'admin/application_settings/templates'
)
-
if
template
_exists?
(
'admin/application_settings/templates'
)
=
nav_link
(
path:
'application_settings#templates'
)
do
=
link_to
templates_admin_application_settings_path
,
title:
_
(
'Templates'
)
do
%span
...
...
@@ -239,7 +239,7 @@
=
link_to
network_admin_application_settings_path
,
title:
_
(
'Network'
)
do
%span
=
_
(
'Network'
)
-
if
view
_exists?
(
'admin/application_settings/geo'
)
-
if
template
_exists?
(
'admin/application_settings/geo'
)
=
nav_link
(
path:
'application_settings#geo'
)
do
=
link_to
geo_admin_application_settings_path
,
title:
_
(
'Geo'
)
do
%span
...
...
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