Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-core
Commits
6998fa38
Commit
6998fa38
authored
Mar 31, 2023
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetic changes
parent
ee753248
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
intranet-design-procs.tcl
tcl/intranet-design-procs.tcl
+3
-6
No files found.
tcl/intranet-design-procs.tcl
View file @
6998fa38
...
...
@@ -653,7 +653,7 @@ ad_proc -public im_sub_navbar {
{
bind_vars
""
}
{
title
""
}
{
title_class
"pagedesriptionbar"
}
{
select_label
""
}
{
select_label
""
}
}
{
Setup a sub-navbar with tabs for each area, highlighted depending
on the local URL and enabled depending on the user permissions.
...
...
@@ -673,7 +673,6 @@ ad_proc -public im_sub_navbar {
set admin_menu_id
[
im_menu_id_from_label
"admin"
]
if
{
$parent
_menu_id eq
$admin
_menu_id
}
{
return
""
}
# Start formatting the menu bar
set navbar
""
set found_selected 0
...
...
@@ -764,18 +763,16 @@ ad_proc -public im_sub_navbar {
p.menu_name AS menu_name
FROM im_component_plugins p,
im_component_plugin_user_map u
WHERE (
enabled_p is null OR
enabled_p = 't')
WHERE (
p.enabled_p is null OR p.
enabled_p = 't')
AND p.plugin_id = u.plugin_id
AND page_url = '
$plugin
_url'
AND p
.p
age_url = '
$plugin
_url'
AND u.location = 'none'
AND u.user_id =
$user
_id
ORDER by p.menu_sort_order, p.sort_order
"
# ad_return_complaint 1 "[im_ad_hoc_query -format html $components_sql
]<br><pre>$components_sql</pre>
"
set navbar_components_list
[
util_memoize
[
list
db_list_of_lists navbar_components
$components
_sql
]]
foreach comp_tuple
$navbar
_components_list {
set plugin_id
[
lindex
$comp
_tuple 0
]
set plugin_name
[
lindex
$comp
_tuple 1
]
...
...
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