Skip to content
Snippets Groups Projects
Commit e9a59028 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

remove glyphicons

parent 897f8cc8
No related branches found
No related tags found
1 merge request!66php8 only; added variable types; short array syntax; remove glyphicons
...@@ -27,8 +27,6 @@ ...@@ -27,8 +27,6 @@
"overview-hint-dblclick":"Doppelklick um das Projekt [%s] zu öffnen", "overview-hint-dblclick":"Doppelklick um das Projekt [%s] zu öffnen",
"overview-filter":"Filter", "overview-filter":"Filter",
"overview-filter-hint":"nur dieses Projekt anzeigen", "overview-filter-hint":"nur dieses Projekt anzeigen",
"overview-simpleview":"zur einfachen Ansicht",
"overview-extview":"zur erweiterten Ansicht",
"overview-textsearch":"Freitext-Filter (Regex)", "overview-textsearch":"Freitext-Filter (Regex)",
"overview-textsearch-hint":"gesucht wird in Projektnamen, Beschreibungen, Commit-Messages", "overview-textsearch-hint":"gesucht wird in Projektnamen, Beschreibungen, Commit-Messages",
"overview-filterprj":"Projekt-Filter", "overview-filterprj":"Projekt-Filter",
......
...@@ -26,8 +26,6 @@ ...@@ -26,8 +26,6 @@
"overview-hint-dblclick":"Double click to open the project [%s]", "overview-hint-dblclick":"Double click to open the project [%s]",
"overview-filter":"Filter", "overview-filter":"Filter",
"overview-filter-hint":"Show only this project", "overview-filter-hint":"Show only this project",
"overview-simpleview":"Show simple view",
"overview-extview":"Show extended view",
"overview-textsearch":"Text filter (regex)", "overview-textsearch":"Text filter (regex)",
"overview-textsearch-hint":"searches in project names, descripions, commit messages", "overview-textsearch-hint":"searches in project names, descripions, commit messages",
"overview-filterprj":"Project filter", "overview-filterprj":"Project filter",
......
...@@ -29,85 +29,6 @@ ...@@ -29,85 +29,6 @@
class htmlguielements{ class htmlguielements{
var $aCfg=array( var $aCfg=array(
/*
'buttonsOLD'=>array(
// bootstrap defaults
'primary'=>array('class'=>'btn-primary', 'icon'=>''),
'success'=>array('class'=>'btn-success', 'icon'=>''),
'info'=>array('class'=>'btn-info', 'icon'=>''),
'warning'=>array('class'=>'btn-warning', 'icon'=>''),
'danger'=>array('class'=>'btn-danger', 'icon'=>''),
// custom buttons
'close'=>array('class'=>'btn-danger', 'icon'=>'fa-close'),
'error'=>array('class'=>'btn-danger', 'icon'=>'fa-bolt'),
'ok'=>array('class'=>'btn-primary', 'icon'=>'fa-check'),
// deploy actions and buttons
'accept'=>array('class'=>''),
'build'=>array('class'=>''),
'cleanup'=>array('class'=>''),
'deploy'=>array('class'=>'', 'icon'=>'glyphicon-forward'),
'new'=>array('class'=>'', 'icon'=>'glyphicon-star-empty'),
'overview'=>array('class'=>''),
'phase'=>array('class'=>'', 'icon'=>'glyphicon-chevron-right'),
'rollback'=>array('class'=>'', 'icon'=>'glyphicon-forward'),
'setup'=>array('class'=>''),
),
'iconsOLD'=>array(
'menu'=>'fa-chevron-right',
'overview'=>'fa-list',
'project'=>'fa-book',
'project-home'=>'fa-home',
'projects'=>'fa-folder-o',
'actions'=>'fa-check',
'actionlog'=>'fa-list-ul',
'accept'=>'glyphicon-forward',
'build'=>'glyphicon-equalizer',
'cleanup'=>'fa-trash',
'checklang'=>'fa-check',
'delete'=>'fa-close',
'deploy'=>'glyphicon-forward',
'filter'=>'glyphicon-filter',
'new'=>'glyphicon-star-empty',
'phase'=>'glyphicon-chevron-right',
'rollback'=>'glyphicon-forward',
'setup'=>'fa-cog',
'login'=>'fa-lock',
'user'=>'fa-user',
'workflow'=>'fa-angle-double-right',
'repository'=>'fa-database',
'phase'=>'fa-flag',
'package'=>'fa-cubes',
'version'=>'fa-tag',
'list'=>'fa-list',
'raw-data'=>'fa-file-o',
'back'=>'fa-chevron-left',
'branch'=>'glyphicon-bookmark',
'calendar'=>'glyphicon-calendar',
'comment'=>'glyphicon-comment',
'revision'=>'glyphicon-tag',
'link-extern'=>'glyphicon-globe',
'host'=>'fa-hdd-o',
'hostgroup'=>'fa-sitemap',
'templatefile'=>'fa-file-code-o',
'targetfile'=>'fa-file-o',
'replace'=>'fa-random',
'sign-info'=>'',
'sign-warning'=>'',
'sign-error'=>'fa-bolt',
'sign-ok'=>'',
),
*/
'buttons'=>array( 'buttons'=>array(
// bootstrap defaults // bootstrap defaults
'primary'=>array('class'=>'btn-primary', 'icon'=>''), 'primary'=>array('class'=>'btn-primary', 'icon'=>''),
...@@ -272,10 +193,7 @@ class htmlguielements{ ...@@ -272,10 +193,7 @@ class htmlguielements{
if(!$sLabel){ if(!$sLabel){
return ''; return '';
} }
$sPrefix=( $sPrefix=( strpos($sLabel, 'fa-')===0 ? 'fa' : '');
strpos($sLabel, 'glyphicon-')===0 ? 'glyphicon'
: ( strpos($sLabel, 'fa-')===0 ? 'fa' : '')
);
// if(!$sPrefix){ // if(!$sPrefix){
if(isset($this->aCfg['icons'][$sLabel])){ if(isset($this->aCfg['icons'][$sLabel])){
return $this->getIconByType($sLabel); return $this->getIconByType($sLabel);
...@@ -295,10 +213,7 @@ class htmlguielements{ ...@@ -295,10 +213,7 @@ class htmlguielements{
if(isset($this->aCfg['icons'][$sLabel])){ if(isset($this->aCfg['icons'][$sLabel])){
return $this->aCfg['icons'][$sLabel]; return $this->aCfg['icons'][$sLabel];
} }
$sPrefix=( $sPrefix=( strpos($sLabel, 'fa-')===0 ? 'fa' : '');
strpos($sLabel, 'glyphicon-')===0 ? 'glyphicon'
: ( strpos($sLabel, 'fa-')===0 ? 'fa' : '')
);
return ($sPrefix ? $sPrefix . ' ' : '').$sLabel; return ($sPrefix ? $sPrefix . ' ' : '').$sLabel;
} }
......
...@@ -377,7 +377,6 @@ class projectgui extends project { ...@@ -377,7 +377,6 @@ class projectgui extends project {
$sRole = 'developer'; $sRole = 'developer';
if ($sNext == "live") { if ($sNext == "live") {
$sRole = 'pl'; $sRole = 'pl';
// $aLinkdata[$sFunction]['icon']='glyphicon glyphicon-star';
} }
$sOnMouseover = '$(\'.td-phase-' . $sNext . '.td' . $this->_aConfig["id"] . '\').addClass(\'highlight\');'; $sOnMouseover = '$(\'.td-phase-' . $sNext . '.td' . $this->_aConfig["id"] . '\').addClass(\'highlight\');';
$sOnMouseout = '$(\'.td-phase-' . $sNext . '.td' . $this->_aConfig["id"] . '\').removeClass(\'highlight\');'; $sOnMouseout = '$(\'.td-phase-' . $sNext . '.td' . $this->_aConfig["id"] . '\').removeClass(\'highlight\');';
...@@ -540,7 +539,6 @@ class projectgui extends project { ...@@ -540,7 +539,6 @@ class projectgui extends project {
. $this->_oHtml->getIconByType('comment') . t('commitmessage') . ':<br>' . $this->_oHtml->getIconByType('comment') . t('commitmessage') . ':<br>'
) )
. '<pre>' . $this->transformCommitMessage($aData["message"]) . '</pre>' . '<pre>' . $this->transformCommitMessage($aData["message"]) . '</pre>'
// . '<i class="glyphicon glyphicon-globe"></i> ' . t('url') . ': <a href="' . $sJsonUrl . '">' . $sJsonUrl . '</a><br>'
; ;
if ($sPlace == "deployed" && array_key_exists("url", $this->_aPrjConfig["phases"][$sPhase])) { if ($sPlace == "deployed" && array_key_exists("url", $this->_aPrjConfig["phases"][$sPhase])) {
$sUrl = $this->_aPrjConfig["phases"][$sPhase]["url"]; $sUrl = $this->_aPrjConfig["phases"][$sPhase]["url"];
......
...@@ -210,13 +210,6 @@ class projectlist extends base ...@@ -210,13 +210,6 @@ class projectlist extends base
<div class="filterbar"> <div class="filterbar">
<form class="form-inline"> <form class="form-inline">
<!--
<a href="#" class="view viewextended" onclick="setview(\'simple\');"><i class="glyphicon glyphicon-th-large"></i> ' . t("overview-simpleview") . '</a>
<a href="#" class="view viewsimple" onclick="setview(\'extended\');" ><i class="glyphicon glyphicon-th-list"></i> ' . t("overview-extview") . '</a>
|
-->
<label for="efilter"> <label for="efilter">
' . $oHtml->getIcon('filter') . ' ' . $oHtml->getIcon('filter') . '
' . t("overview-textsearch") . ': ' . t("overview-textsearch") . ':
......
...@@ -67,7 +67,6 @@ $sRows='' ...@@ -67,7 +67,6 @@ $sRows=''
. addHtmltestTest("Box zeichnen - OK", "\$oHtml->getBox('success', 'Message')") . addHtmltestTest("Box zeichnen - OK", "\$oHtml->getBox('success', 'Message')")
. addHtmltestTest("Icon - Fontawesome", "\$oHtml->getIcon('fa-close');") . addHtmltestTest("Icon - Fontawesome", "\$oHtml->getIcon('fa-close');")
. addHtmltestTest("Icon - Glyphicon", "\$oHtml->getIcon('glyphicon-user');")
. '<tr>' . '<tr>'
. '<td>pre-defined icons</td>' . '<td>pre-defined icons</td>'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment