Bug 20155: Improve readability of OPAC header language menu
This patch makes some minor HTML and CSS changes in order to make the header's language-chooser menu more readable and consistent with the Lists menu. To test, apply this patch and the patch with the compiled CSS. - Install and enable more than one translation. - Set the OpacLangSelectorMode to either "top" or "both top and footer." - View the OPAC's header menu and confirm that the links and menus look correct whether or not a user is logged in. Signed-off-by: Jon Knight <J.P.Knight@lboro.ac.uk> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
ca161474f3
commit
d83f0c1d8a
3 changed files with 14 additions and 10 deletions
|
@ -9,9 +9,9 @@
|
|||
[% FOREACH sublanguages_loo IN languages_loo.sublanguages_loop %]
|
||||
[% IF ( sublanguages_loo.enabled ) %]
|
||||
[% IF ( sublanguages_loo.sublanguage_current ) %]
|
||||
<li role="presentation"> <a href="#" tabindex="-1" class="menu-inactive" role="menuitem">[% sublanguages_loo.native_description %] [% sublanguages_loo.script_description %] [% sublanguages_loo.region_description %] [% sublanguages_loo.variant_description %] <i class="icon-ok"></i></a></li>
|
||||
<li role="presentation"> <a href="#" tabindex="-1" role="menuitem">[% sublanguages_loo.native_description %] [% sublanguages_loo.script_description %] [% sublanguages_loo.region_description %] [% sublanguages_loo.variant_description %] <i class="icon-ok"></i></a></li>
|
||||
[% ELSE %]
|
||||
<li role="presentation"><a href="/cgi-bin/koha/opac-changelanguage.pl?language=[% sublanguages_loo.rfc4646_subtag %]" tabindex="-1" role="menuitem" class="listmenulink"> [% sublanguages_loo.native_description %] [% sublanguages_loo.script_description %] [% sublanguages_loo.region_description %] [% sublanguages_loo.variant_description %]</a></li>
|
||||
<li role="presentation"><a href="/cgi-bin/koha/opac-changelanguage.pl?language=[% sublanguages_loo.rfc4646_subtag %]" tabindex="-1" role="menuitem"> [% sublanguages_loo.native_description %] [% sublanguages_loo.script_description %] [% sublanguages_loo.region_description %] [% sublanguages_loo.variant_description %]</a></li>
|
||||
[% END %]
|
||||
[% END # / IF sublanguages_loo.enabled %]
|
||||
[% END # / FOREACH sublanguages_loo %]
|
||||
|
@ -20,7 +20,7 @@
|
|||
[% IF ( languages_loo.current ) %]
|
||||
<li role="presentation"><a href="#" tabindex="-1" class="menu-inactive" role="menuitem">[% IF ( languages_loo.native_description ) %][% languages_loo.native_description %][% ELSE %][% languages_loo.rfc4646_subtag %][% END %] <i class="icon-ok"></i></a></li>
|
||||
[% ELSE %]
|
||||
<li role="presentation"><a href="/cgi-bin/koha/opac-changelanguage.pl?language=[% languages_loo.rfc4646_subtag %]" tabindex="-1" role="menuitem" class="listmenulink">[% IF ( languages_loo.native_description ) %][% languages_loo.native_description %][% ELSE %][% languages_loo.rfc4646_subtag %][% END %]</a></li>
|
||||
<li role="presentation"><a href="/cgi-bin/koha/opac-changelanguage.pl?language=[% languages_loo.rfc4646_subtag %]" tabindex="-1" role="menuitem">[% IF ( languages_loo.native_description ) %][% languages_loo.native_description %][% ELSE %][% languages_loo.rfc4646_subtag %][% END %]</a></li>
|
||||
[% END %]
|
||||
[% END # / IF languages_loo.current %]
|
||||
[% END # / IF ( languages_loo.plural ) %]
|
||||
|
|
|
@ -95,20 +95,20 @@
|
|||
[% UNLESS ( loggedinusername ) %]
|
||||
[% IF Koha.Preference('casAuthentication') %]
|
||||
[%# CAS authentication is too complicated for modal window %]
|
||||
<li><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a></li>
|
||||
<li><a class="login-link" href="/cgi-bin/koha/opac-user.pl">Log in to your account</a></li>
|
||||
[% ELSIF ( Koha.Preference('GoogleOpenIDConnect') == 1 ) %]
|
||||
<li><a href="/cgi-bin/koha/svc/auth/googleopenidconnect" role="button" data-toggle="modal">Log in to your account</a></li>
|
||||
<li><a class="login-link" href="/cgi-bin/koha/svc/auth/googleopenidconnect" role="button" data-toggle="modal">Log in to your account</a></li>
|
||||
[% ELSE %]
|
||||
<li><a href="/cgi-bin/koha/opac-user.pl" class="loginModal-trigger" role="button" data-toggle="modal">Log in to your account</a></li>
|
||||
<li><a href="/cgi-bin/koha/opac-user.pl" class="login-link loginModal-trigger" role="button" data-toggle="modal">Log in to your account</a></li>
|
||||
[% END %]
|
||||
[% END %]
|
||||
[% IF ( loggedinusername ) %]
|
||||
<li><p class="members navbar-text">Welcome, <a href="/cgi-bin/koha/opac-user.pl"><span class="loggedinusername">[% USER_INFO.title %] [% USER_INFO.firstname %] [% USER_INFO.surname %]</span></a></p></li>
|
||||
<li><p class="members navbar-text">Welcome, <a class="login-link" href="/cgi-bin/koha/opac-user.pl"><span class="loggedinusername">[% USER_INFO.title %] [% USER_INFO.firstname %] [% USER_INFO.surname %]</span></a></p></li>
|
||||
<li class="divider-vertical"></li>
|
||||
[% END %]
|
||||
[% END %]
|
||||
[% IF EnableOpacSearchHistory %]
|
||||
<li><p class="navbar-text"><a href="/cgi-bin/koha/opac-search-history.pl" title="View your search history">Search history</a> [<a class="logout clearsh" href="/cgi-bin/koha/opac-search-history.pl?action=delete" title="Delete your search history">x</a>]</p></li>
|
||||
<li><p class="navbar-text"><a class="login-link" href="/cgi-bin/koha/opac-search-history.pl" title="View your search history">Search history</a> [<a class="logout clearsh" href="/cgi-bin/koha/opac-search-history.pl?action=delete" title="Delete your search history">x</a>]</p></li>
|
||||
<li class="divider-vertical"></li>
|
||||
[% END %]
|
||||
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
|
||||
|
|
|
@ -70,6 +70,10 @@ a {
|
|||
color : #FFF;
|
||||
}
|
||||
}
|
||||
&.login-link {
|
||||
color: #A6D8ED;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
.ui-widget-content a,
|
||||
|
@ -184,14 +188,14 @@ td {
|
|||
color : #EEE;
|
||||
}
|
||||
a {
|
||||
color: #A6D8ED;
|
||||
font-weight: bold;
|
||||
&.logout {
|
||||
color : #E8583C;
|
||||
font-weight: bold;
|
||||
padding : 0 .3em 0 .3em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#koha_url p {
|
||||
color: #666666;
|
||||
float : right;
|
||||
|
|
Loading…
Reference in a new issue