mirror of
https://github.com/rmontanana/inventario2.git
synced 2025-08-16 07:56:00 +00:00
Añade la rama git en la pantalla de inicio en caso de que no sea la rama master, con un botón que al pulsarlo salen los créditos
This commit is contained in:
@@ -251,8 +251,10 @@ class AportaContenido {
|
|||||||
$creditos = "$('#creditos').modal({keyboard: false});";
|
$creditos = "$('#creditos').modal({keyboard: false});";
|
||||||
$centro = '<div class="well well-sm">' . CENTRO . '</div>';
|
$centro = '<div class="well well-sm">' . CENTRO . '</div>';
|
||||||
$tabla = $this->creaTablaAcercaDe();
|
$tabla = $this->creaTablaAcercaDe();
|
||||||
|
$rama_texto = trim(substr(file_get_contents('.git/HEAD'), 16));
|
||||||
|
$rama = ($rama_texto != 'master' ? '<br><button class="btn btn-warning btn-xs" type="button"onClick="' . $creditos . '"><span class="glyphicon glyphicon-cog"></span> '.$rama_texto.'</button></center>':'');
|
||||||
return $mensaje . '<br><br><center><img src="img/qrlogo.png" alt="' . PROGRAMA . '" onClick="' . $creditos . '" >' .
|
return $mensaje . '<br><br><center><img src="img/qrlogo.png" alt="' . PROGRAMA . '" onClick="' . $creditos . '" >' .
|
||||||
'<br><br><label onClick="' . $creditos . '">' . $centro . '</label></center><br><br>' . CREDITOS_CABECERA . $tabla . CREDITOS_PIE;
|
'<br><br><label onClick="' . $creditos . '">' . $centro . '</label>' . $rama . CREDITOS_CABECERA . $tabla . CREDITOS_PIE;
|
||||||
case 'articulos':
|
case 'articulos':
|
||||||
case 'ubicaciones':
|
case 'ubicaciones':
|
||||||
case 'test':
|
case 'test':
|
||||||
|
Reference in New Issue
Block a user