Skip to content

Commit

Permalink
FIX: Migrate Code - user-config.php
Browse files Browse the repository at this point in the history
 - #24
  • Loading branch information
aljawaid committed Sep 18, 2023
1 parent 8e1a0f1 commit ed94137
Show file tree
Hide file tree
Showing 7 changed files with 116 additions and 100 deletions.
23 changes: 13 additions & 10 deletions Locale/de_DE/translations.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,6 @@
//
'Application Configuration' => 'Konfiguration der Anwendung',
'This page shows all default and custom values from the configuration file stored in %s combined with application-specific settings detected from your server.' => 'Auf dieser Seite werden alle Standard- und benutzerdefinierten Werte aus der in %s gespeicherten Konfigurationsdatei zusammen mit den von Ihrem Server erkannten anwendungsspezifischen Einstellungen angezeigt.',
'User Configuration' => 'Benutzer-Konfiguration',
'Your Profile Full Name' => 'Ihr vollständiger Profilname',
'Your User ID' => 'Ihre Benutzer-ID',
'Your Role' => 'Ihre Rolle',
'Your IP Address' => 'Ihre IP-Adresse',
'Opens in a new window' => 'Öffnet in einem neuen Fenster',
'Lookup IP' => 'IP nachschlagen',
'Current Page' => 'Aktuelle Seite',
'Your Browser Name' => 'Ihr Browsername',
'Your Browser' => 'Ihr Browser',
'Data Privacy' => 'Daten Datenschutz',
'This page shows sensitive data. Hide selective information before sharing.' => 'Diese Seite zeigt sensible Daten. Blenden Sie ausgewählte Informationen aus, bevor Sie sie weitergeben.',
'Screenshot friendly' => 'Screenshot-freundlich',
Expand Down Expand Up @@ -279,4 +269,17 @@
'Webhook Examples' => 'Webhook-Beispiele',
'HTTP Request Example' => 'HTTP-Anfrage Beispiel',
'Event Payload Examples' => 'Beispiele für Ereignis-Payloads',
//
// Template/config_sections/user-config.php
//
'User Configuration' => 'Benutzer-Konfiguration',
'Your Profile Full Name' => 'Ihr vollständiger Profilname',
'Your User ID' => 'Ihre Benutzer-ID',
'Your Role' => 'Ihre Rolle',
'Your IP Address' => 'Ihre IP-Adresse',
'Opens in a new window' => 'Öffnet in einem neuen Fenster',
'Lookup IP' => 'IP nachschlagen',
'Current Page' => 'Aktuelle Seite',
'Your Browser Name' => 'Ihr Browsername',
'Your Browser' => 'Ihr Browser',
);
23 changes: 13 additions & 10 deletions Locale/en_GB/translations.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,6 @@
//
'Application Configuration' => 'Application Configuration',
'This page shows all default and custom values from the configuration file stored in %s combined with application-specific settings detected from your server.' => 'This page shows all default and custom values from the configuration file stored in %s combined with application-specific settings detected from your server.',
'User Configuration' => 'User Configuration',
'Your Profile Full Name' => 'Your Profile Full Name',
'Your User ID' => 'Your User ID',
'Your Role' => 'Your Role',
'Your IP Address' => 'Your IP Address',
'Opens in a new window' => 'Opens in a new window',
'Lookup IP' => 'Lookup IP',
'Current Page' => 'Current Page',
'Your Browser Name' => 'Your Browser Name',
'Your Browser' => 'Your Browser',
'Data Privacy' => 'Data Privacy',
'This page shows sensitive data. Hide selective information before sharing.' => 'This page shows sensitive data. Hide selective information before sharing.',
'Screenshot friendly' => 'Screenshot friendly',
Expand Down Expand Up @@ -279,4 +269,17 @@
'Webhook Examples' => 'Webhook Examples',
'HTTP Request Example' => 'HTTP Request Example',
'Event Payload Examples' => 'Event Payload Examples',
//
// Template/config_sections/user-config.php
//
'User Configuration' => 'User Configuration',
'Your Profile Full Name' => 'Your Profile Full Name',
'Your User ID' => 'Your User ID',
'Your Role' => 'Your Role',
'Your IP Address' => 'Your IP Address',
'Opens in a new window' => 'Opens in a new window',
'Lookup IP' => 'Lookup IP',
'Current Page' => 'Current Page',
'Your Browser Name' => 'Your Browser Name',
'Your Browser' => 'Your Browser',
);
23 changes: 13 additions & 10 deletions Locale/es_ES/translations.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,6 @@
//
'Application Configuration' => 'Configuración de la aplicación',
'This page shows all default and custom values from the configuration file stored in %s combined with application-specific settings detected from your server.' => 'Esta página muestra todos los valores predeterminados y personalizados del archivo de configuración almacenado en %s combinados con los ajustes específicos de la aplicación detectados desde su servidor.',
'User Configuration' => 'Configuración de usuario',
'Your Profile Full Name' => 'Nombre completo de su perfil',
'Your User ID' => 'Su ID de usuario',
'Your Role' => 'Su rol',
'Your IP Address' => 'Su dirección IP',
'Opens in a new window' => 'Se abre en una nueva ventana',
'Lookup IP' => 'Buscar IP',
'Current Page' => 'Página actual',
'Your Browser Name' => 'Nombre de su navegador',
'Your Browser' => 'Tu navegador',
'Data Privacy' => 'Privacidad de Datos',
'This page shows sensitive data. Hide selective information before sharing.' => 'Esta página muestra datos sensibles. Oculta información selectiva antes de compartirla.',
'Screenshot friendly' => 'Compatible con capturas de pantalla',
Expand Down Expand Up @@ -279,4 +269,17 @@
'Webhook Examples' => 'Ejemplos de Webhooks',
'HTTP Request Example' => 'Ejemplo de Petición HTTP',
'Event Payload Examples' => 'Ejemplos de Carga de Evento',
//
// Template/config_sections/user-config.php
//
'User Configuration' => 'Configuración de usuario',
'Your Profile Full Name' => 'Nombre completo de su perfil',
'Your User ID' => 'Su ID de usuario',
'Your Role' => 'Su rol',
'Your IP Address' => 'Su dirección IP',
'Opens in a new window' => 'Se abre en una nueva ventana',
'Lookup IP' => 'Buscar IP',
'Current Page' => 'Página actual',
'Your Browser Name' => 'Nombre de su navegador',
'Your Browser' => 'Tu navegador',
);
23 changes: 13 additions & 10 deletions Locale/fr_FR/translations.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,6 @@
//
'Application Configuration' => 'Configuration de l\'application',
'This page shows all default and custom values from the configuration file stored in %s combined with application-specific settings detected from your server.' => 'Cette page affiche toutes les valeurs par défaut et personnalisées du fichier de configuration stocké dans %s, ainsi que les paramètres spécifiques à l\'application détectés sur votre serveur.',
'User Configuration' => 'Configuration de l\'utilisateur',
'Your Profile Full Name' => 'Nom complet de votre profil',
'Your User ID' => 'Votre ID utilisateur',
'Your Role' => 'Votre rôle',
'Your IP Address' => 'Votre adresse IP',
'Opens in a new window' => 'S\'ouvre dans une nouvelle fenêtre',
'Lookup IP' => 'Rechercher l\'IP',
'Current Page' => 'Page actuelle',
'Your Browser Name' => 'Nom de votre navigateur',
'Your Browser' => 'Votre navigateur',
'Data Privacy' => 'Confidentialité de Données',
'This page shows sensitive data. Hide selective information before sharing.' => 'Cette page contient des données sensibles. Masquez certaines informations avant de les partager.',
'Screenshot friendly' => 'Compatible avec les captures d\'écran',
Expand Down Expand Up @@ -279,4 +269,17 @@
'Webhook Examples' => 'Exemples de Webhook',
'HTTP Request Example' => 'Exemple de requête HTTP',
'Event Payload Examples' => 'Exemples de charge utile d\'événement',
//
// Template/config_sections/user-config.php
//
'User Configuration' => 'Configuration de l\'utilisateur',
'Your Profile Full Name' => 'Nom complet de votre profil',
'Your User ID' => 'Votre ID utilisateur',
'Your Role' => 'Votre rôle',
'Your IP Address' => 'Votre adresse IP',
'Opens in a new window' => 'S\'ouvre dans une nouvelle fenêtre',
'Lookup IP' => 'Rechercher l\'IP',
'Current Page' => 'Page actuelle',
'Your Browser Name' => 'Nom de votre navigateur',
'Your Browser' => 'Votre navigateur',
);
23 changes: 13 additions & 10 deletions Locale/translations-starter-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,6 @@
//
'Application Configuration' => '',
'This page shows all default and custom values from the configuration file stored in %s combined with application-specific settings detected from your server.' => '',
'User Configuration' => '',
'Your Profile Full Name' => '',
'Your User ID' => '',
'Your Role' => '',
'Your IP Address' => '',
'Opens in a new window' => '',
'Lookup IP' => '',
'Current Page' => '',
'Your Browser Name' => '',
'Your Browser' => '',
'Data Privacy' => '',
'This page shows sensitive data. Hide selective information before sharing.' => '',
'Screenshot friendly' => '',
Expand Down Expand Up @@ -288,4 +278,17 @@
'Webhook Examples' => '',
'HTTP Request Example' => '',
'Event Payload Examples' => '',
//
// Template/config_sections/user-config.php
//
'User Configuration' => '',
'Your Profile Full Name' => '',
'Your User ID' => '',
'Your Role' => '',
'Your IP Address' => '',
'Opens in a new window' => '',
'Lookup IP' => '',
'Current Page' => '',
'Your Browser Name' => '',
'Your Browser' => '',
);
51 changes: 1 addition & 50 deletions Template/config/support.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,56 +27,7 @@
</button>
<!-- USER CONFIGURATION -->
<section class="support-section">
<div class="table-responsive">
<table id="UserTable" class="support-table user-table table-center">
<thead class="">
<tr class="support-table-row">
<th class="support-table-title border-bottom-thick text-center" colspan="4" scope="col">
<?= $this->helper->supportHelper->embedSVGIcon('user-icon') ?> </i> <?= t('User Configuration') ?>
</th>
</tr>
</thead>
<tbody>
<tr class="support-table-row">
<td class="cell-title"><?= t('Your Profile Full Name') ?></td>
<td class="cell-value value-name">
<?= $this->url->link($this->user->getFullname(), 'UserViewController', 'show', array('user_id' => $this->user->getId()), false, 'user-profile-link', t('View Profile')) ?>
</td>
<td class="cell-title"><?= t('Your User ID') ?></td>
<td class="cell-value value"><?= $this->user->getId() ?></td>
</tr>
<tr class="support-table-row">
<td class="cell-title"><?= t('Your Role') ?></td>
<td class="cell-value" colspan="3"><?= $this->user->getRoleName() ?></td>
</tr>
<tr class="support-table-row">
<td class="cell-title"><?= t('Your IP Address') ?></td>
<td class="cell-value value-ip" colspan="3">
<?php if ($this->user->isAdmin()): ?>
<span class="privacy"><?= $_SERVER['REMOTE_ADDR'] ?></span>
<a id="valueBTN" href="https://www.whois.com/whois/<?= $_SERVER['REMOTE_ADDR'] ?>" class="value-btn privacy-delete" target="_blank" rel="noopener noreferrer" title="<?= t('Opens in a new window') ?> &#8663;">
<i class="fa fa-external-link"></i> <?= t('Lookup IP') ?>
</a>
<?php else: ?>
<?= $this->helper->supportHelper->maskIPAddress($_SERVER['REMOTE_ADDR']) ?>
<?php endif ?>
</td>
</tr>
<tr class="support-table-row">
<td class="cell-title"><?= t('Current Page') ?></td>
<td class="cell-value value-url privacy privacy-margin" colspan="3"><?= $_SERVER['SCRIPT_URI'] ?></td>
</tr>
<tr class="support-table-row">
<td class="cell-title"><?= t('Your Browser Name') ?></td>
<td class="cell-value" colspan="3"><?= $this->helper->supportHelper->getBrowser() ?></td>
</tr>
<tr class="support-table-row">
<td class="cell-title"><?= t('Your Browser') ?></td>
<td class="cell-value" colspan="3"><?= $this->text->e($user_agent) ?></td>
</tr>
</tbody>
</table>
</div>
<?= $this->render('KanboardSupport:config_sections/user-config', array('user_agent' => $user_agent)) ?>
</section>
<!-- APPLICATION INFORMATION -->
<section class="support-section">
Expand Down
50 changes: 50 additions & 0 deletions Template/config_sections/user-config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<div class="table-responsive">
<table id="UserTable" class="support-table user-table table-center">
<thead class="">
<tr class="support-table-row">
<th class="support-table-title border-bottom-thick text-center" colspan="4" scope="col">
<?= $this->helper->supportHelper->embedSVGIcon('user-icon') ?> </i> <?= t('User Configuration') ?>
</th>
</tr>
</thead>
<tbody>
<tr class="support-table-row">
<td class="cell-title"><?= t('Your Profile Full Name') ?></td>
<td class="cell-value value-name">
<?= $this->url->link($this->user->getFullname(), 'UserViewController', 'show', array('user_id' => $this->user->getId()), false, 'user-profile-link', t('View Profile')) ?>
</td>
<td class="cell-title"><?= t('Your User ID') ?></td>
<td class="cell-value value"><?= $this->user->getId() ?></td>
</tr>
<tr class="support-table-row">
<td class="cell-title"><?= t('Your Role') ?></td>
<td class="cell-value" colspan="3"><?= $this->user->getRoleName() ?></td>
</tr>
<tr class="support-table-row">
<td class="cell-title"><?= t('Your IP Address') ?></td>
<td class="cell-value value-ip" colspan="3">
<?php if ($this->user->isAdmin()): ?>
<span class="privacy"><?= $_SERVER['REMOTE_ADDR'] ?></span>
<a id="valueBTN" href="https://www.whois.com/whois/<?= $_SERVER['REMOTE_ADDR'] ?>" class="value-btn privacy-delete" target="_blank" rel="noopener noreferrer" title="<?= t('Opens in a new window') ?> &#8663;">
<i class="fa fa-external-link"></i> <?= t('Lookup IP') ?>
</a>
<?php else: ?>
<?= $this->helper->supportHelper->maskIPAddress($_SERVER['REMOTE_ADDR']) ?>
<?php endif ?>
</td>
</tr>
<tr class="support-table-row">
<td class="cell-title"><?= t('Current Page') ?></td>
<td class="cell-value value-url privacy privacy-margin" colspan="3"><?= $_SERVER['SCRIPT_URI'] ?></td>
</tr>
<tr class="support-table-row">
<td class="cell-title"><?= t('Your Browser Name') ?></td>
<td class="cell-value" colspan="3"><?= $this->helper->supportHelper->getBrowser() ?></td>
</tr>
<tr class="support-table-row">
<td class="cell-title"><?= t('Your Browser') ?></td>
<td class="cell-value" colspan="3"><?= $this->text->e($user_agent) ?></td>
</tr>
</tbody>
</table>
</div>

0 comments on commit ed94137

Please sign in to comment.