Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stud.IP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marcus Eibrink-Lunzenauer
Stud.IP
Commits
260b6ac6
Commit
260b6ac6
authored
10 months ago
by
Jan-Hendrik Willms
Browse files
Options
Downloads
Patches
Plain Diff
fixes #4090
Closes #4090 Merge request
studip/studip!2934
parent
6dee621e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/classes/PageLayout.php
+23
-1
23 additions, 1 deletion
lib/classes/PageLayout.php
lib/classes/helpbar/Helpbar.php
+2
-1
2 additions, 1 deletion
lib/classes/helpbar/Helpbar.php
with
25 additions
and
2 deletions
lib/classes/PageLayout.php
+
23
−
1
View file @
260b6ac6
...
...
@@ -35,6 +35,11 @@ class PageLayout
*/
private
static
$help_keyword
;
/**
* current help URL (or null if unset)
*/
private
static
?string
$help_url
=
null
;
/**
* base item path for tab view (defaults to active item in top nav)
*/
...
...
@@ -179,7 +184,24 @@ class PageLayout
*/
public
static
function
getHelpKeyword
()
{
return
isset
(
self
::
$help_keyword
)
?
self
::
$help_keyword
:
'Basis.Allgemeines'
;
return
self
::
$help_keyword
??
'Basis.Allgemeines'
;
}
/**
* Set the help URL in the help bar. Pass null to fall back to the help keyword.
*/
public
static
function
setHelpUrl
(
?string
$url
):
void
{
self
::
$help_url
=
$url
;
}
/**
* Get the current help URL. If no URL is set explicitely, the URL for
* the help keyword is used.
*/
public
static
function
getHelpUrl
():
?string
{
return
self
::
$help_url
??
format_help_url
(
self
::
getHelpKeyword
());
}
/**
...
...
This diff is collapsed.
Click to expand it.
lib/classes/helpbar/Helpbar.php
+
2
−
1
View file @
260b6ac6
...
...
@@ -253,7 +253,8 @@ class Helpbar extends WidgetContainer
// add wiki link and remove it from navigation
$this
->
addLink
(
_
(
'Weiterführende Hilfe'
),
format_help_url
(
PageLayout
::
getHelpKeyword
()),
Icon
::
create
(
'link-extern'
,
'info_alt'
),
PageLayout
::
getHelpUrl
(),
Icon
::
create
(
'link-extern'
,
Icon
::
ROLE_INFO_ALT
),
'_blank'
,
[
'rel'
=>
'noopener noreferrer'
]
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment