File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ <h2>Gestion des clés de fédération</h2>
2020 < p > < label for =""> Verification Key (facultatif)</ label > </ p >
2121 < input type ="text " name ="vkey " value ="">
2222 </ p >
23- < input type ="submit " value ="Submit ">
23+ < input type ="submit " value ="Valider ">
2424 </ form >
2525< p > Instructions : Il vous suffit de saisir l’URL de leur bibliothèque. uBiblio tentera de récupérer automatiquement leur clé de vérification (une clé publique). uBiblio ignorera cette étape si vous spécifiez vous-même une clé.</ p >
2626
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ <h2 style="margin-top:25px; margin-bottom:15px;">Liste d'Utilisateurs</h2>
4242</ section >
4343
4444
45+
4546< script >
4647//Default view is to show first 50 users until the admin enters something into search
4748var pagination = 0 ;
@@ -58,15 +59,19 @@ <h2 style="margin-top:25px; margin-bottom:15px;">Liste d'Utilisateurs</h2>
5859 $ ( "#tablebody" ) . empty ( ) ;
5960 $ ( "#pagination" ) . empty ( ) ;
6061 itemdata . forEach ( function ( item ) {
61- $ ( "#tablebody" ) . append ( '<tr><td>' + item . username + '</td><td>' + item . isAdmin + '</td><td><a href= /promote/' + item . id + '>Changer en Admin</a> <a href=/demote/' + item . id + '>Retirer Droits Admin</a> <a href=/deleteUser/' + item . id + '>Supprimer</a></td></tr>' ) ;
62+ $ ( "#tablebody" ) . append ( '<tr><td>' + item . username + '</td><td>' + item . isAdmin + '</td><td><a href= /promote/' + item . id + '>Changer en Admin</a> <a href=/demote/' + item . id + '>Retirer Droits Admin</a> <a href=" /deleteUser/' + item . id + '" onclick="return confirm('Êtes-vous sûr?');" >Supprimer</a></td></tr>' ) ;
6263} ) ;
6364
6465if ( itemdata . length === 0 ) {
65- $ ( "#tablebody" ) . append ( '<tr><td>' + "Aucun résultat " + '</td><td></td></tr>' ) ;
66+ $ ( "#tablebody" ) . append ( '<tr><td>' + "No results found " + '</td><td></td></tr>' ) ;
6667 }
68+ if ( pagination > 0 ) {
69+ $ ( "#pagination" ) . append ( "<button onclick='previous();'>Previous</button>" ) ;
70+ }
6771
68-
69-
72+ if ( itemdata . length > 49 ) {
73+ $ ( "#pagination" ) . append ( "<button onclick='next();'>Next</button>" ) ;
74+ }
7075
7176} ) ; }
7277
Original file line number Diff line number Diff line change 88USE_REDIS = os .environ .get ("USE_REDIS" , "true" ).lower () == "true"
99REDIS_URL = os .environ .get ("REDIS_URI" , "redis://localhost" )
1010
11- LANGUAGE = os .environ .get ("LANGUAGE" , "" )
11+ LANGUAGE = os .environ .get ("LANGUAGE" , "FR " )
1212
1313TOKEN_TTL = int (os .environ .get ("ACCESS_TOKEN_EXPIRE_MINUTES" , "120" ))
1414
You can’t perform that action at this time.
0 commit comments