BUG-14043 Simplified User Experience

In the arabic language is not possible to change the user experience or logout
This commit is contained in:
norahmollo
2014-02-12 15:11:29 -04:00
parent 40710b67e7
commit 7fef38ea5a
3 changed files with 18 additions and 5 deletions

View File

@@ -117,6 +117,14 @@ class Home extends Controller
} }
} }
$oServerConf = & serverConf::getSingleton();
if ($oServerConf->isRtl( SYS_LANG )) {
$swRtl = 1;
} else {
$swRtl = 0;
}
//Get simplified options //Get simplified options
global $G_TMP_MENU; global $G_TMP_MENU;
@@ -149,6 +157,7 @@ class Home extends Controller
$this->setVar( 'switchLink', $switchLink ); $this->setVar( 'switchLink', $switchLink );
$this->setVar( 'arrayMnuOption', $arrayMnuOption ); $this->setVar( 'arrayMnuOption', $arrayMnuOption );
$this->setVar( 'mnuNewCase', $mnuNewCase ); $this->setVar( 'mnuNewCase', $mnuNewCase );
$this->setVar( 'rtl', $swRtl );
$this->render(); $this->render();
} }
@@ -209,7 +218,6 @@ class Home extends Controller
$title = G::LoadTranslation("ID_UNASSIGNED_INBOX"); $title = G::LoadTranslation("ID_UNASSIGNED_INBOX");
break; break;
default: default:
G::pr('sueñooooo');die();
$title = ucwords( $httpData->t ); $title = ucwords( $httpData->t );
break; break;
} }

View File

@@ -523,7 +523,10 @@ div.topbar ul.primary-nav li ul {
left: 0; left: 0;
} }
div.topbar ul.secondary-nav li ul { div.topbar ul.secondary-nav li ul {
left: 0 !important; right: 0;
}
div.topbar ul.rtl-secondary-nav li ul {
left: 0;
} }
div.topbar ul li ul li { div.topbar ul li ul li {
float: none; float: none;

View File

@@ -136,14 +136,16 @@
</li> </li>
{/if} {/if}
</ul> </ul>
{if $rtl eq 1}
<ul class="nav secondary-nav"> <ul class="nav rtl-secondary-nav">
{else}
<ul class="nav secondary-nav">
{/if}
<li class="account"> <li class="account">
<a class="menu user-photo" href="javascript:;"> <a class="menu user-photo" href="javascript:;">
<img alt="user_avatar_mini" height="24" src="users/users_ViewPhotoGrid?pUID={$usrUid}" width="24" /> <img alt="user_avatar_mini" height="24" src="users/users_ViewPhotoGrid?pUID={$usrUid}" width="24" />
<span class="menu-label screen-name">{$userName}</span> <span class="menu-label screen-name">{$userName}</span>
</a> </a>
<ul class="menu-dropdown"> <ul class="menu-dropdown">
<!--<li><a href="#" accesskey="s" id="settings_link">Settings</a></li> <!--<li><a href="#" accesskey="s" id="settings_link">Settings</a></li>
<li><a href="#" accesskey="?" id="help_link">Help</a></li>--> <li><a href="#" accesskey="?" id="help_link">Help</a></li>-->