Skip to content
GitLab
Explorer
Connexion
S'inscrire
Navigation principale
Rechercher ou aller à…
Projet
S
stats-facil
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Wiki
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Extraits de code
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Déploiement
Releases
Registre de paquets
Registre de conteneur
Registre de modèles
Opération
Environnements
Modules Terraform
Surveillance
Incidents
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse CI/CD
Données d'analyse du dépôt
Expériences du modèle
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
facil
stats-facil
Validations
bc652d7a
Valider
bc652d7a
rédigé
9 years ago
par
Matthieu Napoli
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Improve the layout of UserCountry forms
parent
7662e42b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
2
Masquer les modifications d'espaces
En ligne
Côte à côte
Affichage de
2 fichiers modifiés
plugins/UserCountry/templates/_updaterManage.twig
+14
-17
14 ajouts, 17 suppressions
plugins/UserCountry/templates/_updaterManage.twig
plugins/UserCountry/templates/adminIndex.twig
+10
-14
10 ajouts, 14 suppressions
plugins/UserCountry/templates/adminIndex.twig
avec
24 ajouts
et
31 suppressions
plugins/UserCountry/templates/_updaterManage.twig
+
14
−
17
Voir le fichier @
bc652d7a
...
@@ -17,11 +17,9 @@
...
@@ -17,11 +17,9 @@
<td
width=
"150"
>
{{
'UserCountry_LocationDatabase'
|
translate
}}
</td>
<td
width=
"150"
>
{{
'UserCountry_LocationDatabase'
|
translate
}}
</td>
<td><input
type=
"text"
id=
"geoip-location-db"
value=
"
{{
geoIPLocUrl
}}
"
/></td>
<td><input
type=
"text"
id=
"geoip-location-db"
value=
"
{{
geoIPLocUrl
}}
"
/></td>
<td
width=
"164"
>
<td
width=
"164"
>
{%
set
locationHint
%}
<div
class=
"alert alert-info"
>
{{
'UserCountry_LocationDatabaseHint'
|
translate
}}
{{
'UserCountry_LocationDatabaseHint'
|
translate
}}
{%
endset
%}
</div>
{%
import
'macros.twig'
as
piwik
%}
{{
piwik.inlineHelp
(
locationHint
)
}}
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -42,18 +40,17 @@
...
@@ -42,18 +40,17 @@
<label
for=
"geoip-update-period-week"
>
{{
'CoreHome_PeriodWeek'
|
translate
}}
</label>
<label
for=
"geoip-update-period-week"
>
{{
'CoreHome_PeriodWeek'
|
translate
}}
</label>
</td>
</td>
<td
width=
"164"
>
<td
width=
"164"
>
{%
set
lastTimeRunNote
%}
<div
class=
"alert alert-info"
>
{%
if
lastTimeUpdaterRun
is
defined
and
lastTimeUpdaterRun
is
not
empty
%}
{%
if
lastTimeUpdaterRun
is
defined
and
lastTimeUpdaterRun
is
not
empty
%}
{{
'UserCountry_UpdaterWasLastRun'
|
translate
(
lastTimeUpdaterRun
)
|
raw
}}
{{
'UserCountry_UpdaterWasLastRun'
|
translate
(
lastTimeUpdaterRun
)
|
raw
}}
{%
else
%}
{%
else
%}
{{
'UserCountry_UpdaterHasNotBeenRun'
|
translate
}}
{{
'UserCountry_UpdaterHasNotBeenRun'
|
translate
}}
{%
endif
%}
{%
endif
%}
<br/><br/>
<br/><br/>
<div
id=
"geoip-updater-next-run-time"
>
<div
id=
"geoip-updater-next-run-time"
>
{%
include
"@UserCountry/_updaterNextRunTime.twig"
%}
{%
include
"@UserCountry/_updaterNextRunTime.twig"
%}
</div>
</div>
{%
endset
%}
</div>
{{
piwik.inlineHelp
(
lastTimeRunNote
)
}}
</td>
</td>
</tr>
</tr>
</table>
</table>
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
plugins/UserCountry/templates/adminIndex.twig
+
10
−
14
Voir le fichier @
bc652d7a
...
@@ -60,36 +60,32 @@
...
@@ -60,36 +60,32 @@
</td>
</td>
<td
width=
"164"
>
<td
width=
"164"
>
{%
if
provider.status
==
1
%}
{%
if
provider.status
==
1
%}
{%
set
currentLocation
%}
<div
class=
"alert alert-info"
>
{%
if
thisIP
!=
'127.0.0.1'
%}
{%
if
thisIP
!=
'127.0.0.1'
%}
{{
'UserCountry_CurrentLocationIntro'
|
translate
}}
:
{{
'UserCountry_CurrentLocationIntro'
|
translate
}}
:
<div
style=
"text-align:left;"
>
<div>
<br/>
<br/>
<span
class=
"loadingPiwik"
style=
"display:none;position:absolute;"
>
<span
class=
"loadingPiwik"
style=
"display:none;position:absolute;"
>
<img
src=
"./plugins/Morpheus/images/loading-blue.gif"
/>
{{
'General_Loading'
|
translate
}}
</span>
<img
src=
"./plugins/Morpheus/images/loading-blue.gif"
/>
{{
'General_Loading'
|
translate
}}
</span>
<span
class=
"location"
><strong>
<em>
{{
provider.location
|
raw
}}
</
em></
strong></span>
<span
class=
"location"
><strong>
{{
provider.location
|
raw
}}
</strong></span>
</div>
</div>
<div
style
=
"text-
align:
right
;
"
>
<div
class
=
"text-right"
>
<a
href=
"#"
class=
"refresh-loc"
data-impl-id=
"
{{
id
}}
"
><em>
{{
'General_Refresh'
|
translate
}}
</em></a>
<a
href=
"#"
class=
"refresh-loc"
data-impl-id=
"
{{
id
}}
"
><em>
{{
'General_Refresh'
|
translate
}}
</em></a>
</div>
</div>
{%
else
%}
{%
else
%}
{{
'UserCountry_CannotLocalizeLocalIP'
|
translate
(
thisIP
)
}}
{{
'UserCountry_CannotLocalizeLocalIP'
|
translate
(
thisIP
)
}}
{%
endif
%}
{%
endif
%}
{%
endset
%}
</div>
{{
piwik.inlineHelp
(
currentLocation
)
}}
{%
endif
%}
{%
endif
%}
{%
if
provider.statusMessage
is
defined
and
provider.statusMessage
%}
{%
if
provider.statusMessage
is
defined
and
provider.statusMessage
%}
{%
set
brokenReason
%}
<div
class=
"alert alert-info"
>
{%
if
provider.status
==
2
%}
<strong><em>
{{
'General_Error'
|
translate
}}
:
</em></strong>
{%
endif
%}{{
provider.statusMessage
|
raw
}}
{%
if
provider.status
==
2
%}
<strong>
{{
'General_Error'
|
translate
}}
:
</strong>
{%
endif
%}{{
provider.statusMessage
|
raw
}}
{%
endset
%}
</div>
{{
piwik.inlineHelp
(
brokenReason
)
}}
{%
endif
%}
{%
endif
%}
{%
if
provider.extra_message
is
defined
and
provider.extra_message
%}
{%
if
provider.extra_message
is
defined
and
provider.extra_message
%}
{%
set
extraMessage
%}
<div
class=
"alert alert-info"
>
{{
provider.extra_message
|
raw
}}
{{
provider.extra_message
|
raw
}}
{%
endset
%}
</div>
<br/>
{{
piwik.inlineHelp
(
extraMessage
)
}}
{%
endif
%}
{%
endif
%}
</td>
</td>
{%
endfor
%}
{%
endfor
%}
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter