Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Trac2Gitlab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stud.IP
Plugins
Trac2Gitlab
Commits
4c825648
Commit
4c825648
authored
Jul 22, 2021
by
Jan-Hendrik Willms
Browse files
Options
Downloads
Patches
Plain Diff
wording
parent
067a35d5
No related branches found
No related tags found
Loading
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
TracToGitlabPlugin.php
+6
-1
6 additions, 1 deletion
TracToGitlabPlugin.php
views/convert/config.php
+5
-5
5 additions, 5 deletions
views/convert/config.php
views/convert/index.php
+4
-4
4 additions, 4 deletions
views/convert/index.php
with
15 additions
and
10 deletions
TracToGitlabPlugin.php
+
6
−
1
View file @
4c825648
...
...
@@ -11,7 +11,7 @@ final class TracToGitlabPlugin extends StudIPPlugin implements StandardPlugin
public
function
getTabNavigation
(
$course_id
)
{
return
[
'trac2gitlab'
=>
new
Navigation
(
'
T
rac
to
gitlab'
,
PluginEngine
::
getURL
(
$this
,
[],
'convert'
)),
'trac2gitlab'
=>
new
Navigation
(
'
t
rac
2
gitlab'
,
PluginEngine
::
getURL
(
$this
,
[],
'convert'
)),
];
}
...
...
@@ -20,6 +20,11 @@ final class TracToGitlabPlugin extends StudIPPlugin implements StandardPlugin
return
null
;
}
public
function
getPluginName
()
{
return
'Tickets von trac zu GitLab migrieren'
;
}
public
function
isActivatableForContext
(
Range
$context
)
{
if
(
!
$context
instanceof
Course
)
{
...
...
This diff is collapsed.
Click to expand it.
views/convert/config.php
+
5
−
5
View file @
4c825648
<form
action=
"
<?=
$controller
->
config
()
?>
"
method=
"post"
class=
"default"
>
<fieldset>
<legend>
<?=
_
(
'
T
rac/Git
l
ab-Migration konfigurieren'
)
?>
</legend>
<legend>
<?=
_
(
'
t
rac/Git
L
ab-Migration konfigurieren'
)
?>
</legend>
<label>
<?=
_
(
'
T
rac-URL'
)
?>
<?=
_
(
'
t
rac-URL'
)
?>
<input
type=
"text"
name=
"trac-url"
value=
"
<?=
htmlReady
(
$trac_url
)
?>
"
>
</label>
<label>
<?=
_
(
'
g
it
l
ab-URL'
)
?>
<?=
_
(
'
G
it
L
ab-URL'
)
?>
<input
type=
"text"
name=
"gitlab-url"
value=
"
<?=
htmlReady
(
$gitlab_url
)
?>
"
>
</label>
<label>
<?=
_
(
'
g
it
l
ab-Token'
)
?>
<?=
_
(
'
G
it
L
ab-Token'
)
?>
<input
type=
"text"
name=
"gitlab-token"
value=
"
<?=
htmlReady
(
$gitlab_token
)
?>
"
>
</label>
<label>
<?=
_
(
'
g
it
l
ab-Projekt-Id'
)
?>
<?=
_
(
'
G
it
L
ab-Projekt-Id'
)
?>
<input
type=
"number"
name=
"gitlab-project-id"
value=
"
<?=
htmlReady
(
$gitlab_project_id
)
?>
"
>
</label>
</fieldset>
...
...
This diff is collapsed.
Click to expand it.
views/convert/index.php
+
4
−
4
View file @
4c825648
<form
action=
"
<?=
$controller
->
convert
()
?>
"
method=
"post"
class=
"default"
id=
"trac-migrate"
data-source=
"
<?=
$controller
->
quicksearch
()
?>
"
>
<fieldset>
<legend>
<?=
_
(
'Ticket von
T
rac
nach g
it
l
ab migrieren'
)
?>
</legend>
<legend>
<?=
_
(
'Ticket von
t
rac
zu G
it
L
ab migrieren'
)
?>
</legend>
<label>
<?=
_
(
'Nach Ticket suchen'
)
?>
...
...
@@ -15,16 +15,16 @@
<input
type=
"radio"
name=
"trac-id"
required
:value=
"result[0]"
:disabled=
"result.migrated"
>
{{ result[3].status }} {{ result[3].type }} #{{ result[0] }}: {{ result[3].summary }} ({{ result[3].reporter }})
<details>
<summary>
Ticket-Beschreibung
</summary>
<summary>
<?=
_
(
'
Ticket-Beschreibung
'
)
?>
</summary>
<p>
{{ result[3].description }}
</p>
</details>
<a
:href=
"'https://develop.studip.de/trac/ticket/' + result[0]"
target=
"_blank"
>
Zum Ticket im
T
rac
<?=
_
(
'
Zum Ticket im
t
rac
'
)
?>
</a>
</label>
</fieldset>
<footer>
<?=
Studip\Button
::
createAccept
(
_
(
'Ticket nach
g
it
l
ab migrieren'
))
?>
<?=
Studip\Button
::
createAccept
(
_
(
'Ticket nach
G
it
L
ab migrieren'
))
?>
</footer>
</form>
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