Skip to content
Snippets Groups Projects
Commit 4c825648 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

wording

parent 067a35d5
No related branches found
No related tags found
Loading
......@@ -11,7 +11,7 @@ final class TracToGitlabPlugin extends StudIPPlugin implements StandardPlugin
public function getTabNavigation($course_id)
{
return [
'trac2gitlab' => new Navigation('Trac to gitlab', PluginEngine::getURL($this, [], 'convert')),
'trac2gitlab' => new Navigation('trac2gitlab', 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) {
......
<form action="<?= $controller->config() ?>" method="post" class="default">
<fieldset>
<legend><?= _('Trac/Gitlab-Migration konfigurieren') ?></legend>
<legend><?= _('trac/GitLab-Migration konfigurieren') ?></legend>
<label>
<?= _('Trac-URL') ?>
<?= _('trac-URL') ?>
<input type="text" name="trac-url" value="<?= htmlReady($trac_url) ?>">
</label>
<label>
<?= _('gitlab-URL') ?>
<?= _('GitLab-URL') ?>
<input type="text" name="gitlab-url" value="<?= htmlReady($gitlab_url) ?>">
</label>
<label>
<?= _('gitlab-Token') ?>
<?= _('GitLab-Token') ?>
<input type="text" name="gitlab-token" value="<?= htmlReady($gitlab_token) ?>">
</label>
<label>
<?= _('gitlab-Projekt-Id') ?>
<?= _('GitLab-Projekt-Id') ?>
<input type="number" name="gitlab-project-id" value="<?= htmlReady($gitlab_project_id) ?>">
</label>
</fieldset>
......
<form action="<?= $controller->convert() ?>" method="post" class="default" id="trac-migrate" data-source="<?= $controller->quicksearch() ?>">
<fieldset>
<legend><?= _('Ticket von Trac nach gitlab migrieren') ?></legend>
<legend><?= _('Ticket von trac zu GitLab 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 Trac
<?= _('Zum Ticket im trac') ?>
</a>
</label>
</fieldset>
<footer>
<?= Studip\Button::createAccept(_('Ticket nach gitlab migrieren')) ?>
<?= Studip\Button::createAccept(_('Ticket nach GitLab migrieren')) ?>
</footer>
</form>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment