Skip to content

Commit

Permalink
display HomeOrgName instead of displayname in entities list
Browse files Browse the repository at this point in the history
  • Loading branch information
janul committed Mar 20, 2014
1 parent d351367 commit a0aa8a4
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 7 deletions.
8 changes: 4 additions & 4 deletions application/controllers/providers/Idp_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,19 +109,19 @@ function show($limit=null)
{
$iconsblock .= $hiddenicon .' ';
}
$displayname = $i->getDisplayName();
$displayname = $i->getName();
if(empty($displayname))
{
$displayname = $i->getEntityId();
}

if ($i->getAvailable())
{
$col1 = anchor($i_link, $displayname) . "<br />(" . $i->getEntityId() . ")";
$col1 = anchor($i_link, $displayname) . '<div class="s2">' . $i->getEntityId() . '</div>';
}
else
{
$col1 = '<span class="additions"><span class="alert" title="'.$linktitlediexp.'">'.anchor($i_link, $displayname).'</span><br />'. $i->getEntityId().'</span>';
$col1 = '<span class="additions"><span class="alert" title="'.$linktitlediexp.'">'.anchor($i_link, $displayname).'</span><div class="s2">'. $i->getEntityId().'</div></span>';
}
$regdate = $i->getRegistrationDate();
if(isset($regdate))
Expand All @@ -141,7 +141,7 @@ function show($limit=null)
{
$col3 = '';
}
$idprows[] = array('data' => array('data' => $col1 ),$iconsblock, $col2,'<div class="squiz">'.$col3.'</div>');
$idprows[] = array('data' => array('data' => $col1 ),$iconsblock, $col2,'<div class="squiz s2">'.$col3.'</div>');
}
$data['idprows'] = $idprows;
$data['content_view'] = 'providers/idp_list_view';
Expand Down
6 changes: 3 additions & 3 deletions application/controllers/providers/Sp_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,17 @@ function show($limit=null)
}
$i_link = base_url() . "providers/detail/show/" . $i->getId();
$is_available = $i->getAvailable();
$displayname = $i->getDisplayName(50);
$displayname = $i->getName(50);
if(empty($displayname))
{
$displayname = $i->getEntityId();
}
if ($is_available)
{
$sprows[] = array(anchor($i_link, $displayname . '', 'title="' . $displayname . '"') . '<span class="additions">' . $i->getEntityId() . '</span>',$iconsblock,$regcol, '<div class="squiz"><a href="' . $i->getHelpdeskUrl() . '" title="' . $i->getHelpdeskUrl() . '">' .$i->getHelpdeskUrl().'</a></div>');
$sprows[] = array(anchor($i_link, $displayname . '', 'title="' . $displayname . '"') . '<span class="additions s2">' . $i->getEntityId() . '</span>',$iconsblock,$regcol, '<div class="squiz s2"><a href="' . $i->getHelpdeskUrl() . '" title="' . $i->getHelpdeskUrl() . '">' .$i->getHelpdeskUrl().'</a></div>');
} else
{
$sprows[] = array('<span class="alert" title="'.$linktitle_disexp.'">' . anchor($i_link, $displayname , 'title="' . $displayname . '"') . '</span><span class="additions">' . $i->getEntityId() . '</span>',$iconsblock,$regcol, '<div class="squiz"><a href="' . $i->getHelpdeskUrl() . '" title="' . $i->getHelpdeskUrl() . '">'.$i->getHelpdeskUrl().'</a></div>');
$sprows[] = array('<span class="alert" title="'.$linktitle_disexp.'">' . anchor($i_link, $displayname , 'title="' . $displayname . '"') . '</span><span class="additions s2">' . $i->getEntityId() . '</span>',$iconsblock,$regcol, '<div class="squiz s2"><a href="' . $i->getHelpdeskUrl() . '" title="' . $i->getHelpdeskUrl() . '">'.$i->getHelpdeskUrl().'</a></div>');
}
}
$data['sprows'] = $sprows;
Expand Down
4 changes: 4 additions & 0 deletions styles/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -2678,6 +2678,10 @@ ol.group li {
font-size: small;
}

.s2 {
font-size: smaller;
}

form {
counter-reset: fieldsets;
background: #93aedf;
Expand Down
4 changes: 4 additions & 0 deletions styles/orange.css
Original file line number Diff line number Diff line change
Expand Up @@ -2678,6 +2678,10 @@ ol.group li {
font-size: small;
}

.s2 {
font-size: smaller;
}

form {
counter-reset: fieldsets;
background: #ffe90d;
Expand Down
4 changes: 4 additions & 0 deletions styles/red.css
Original file line number Diff line number Diff line change
Expand Up @@ -2678,6 +2678,10 @@ ol.group li {
font-size: small;
}

.s2 {
font-size: smaller;
}

form {
counter-reset: fieldsets;
background: #6b90d4;
Expand Down
4 changes: 4 additions & 0 deletions theme3/sass/partials/_page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2307,3 +2307,7 @@ ol.group {
font-family:Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New, monospace;
font-size: small;
}
.s2 {
font-size: smaller;

}

0 comments on commit a0aa8a4

Please sign in to comment.