Commits

Zhang Huangbin committed 87d7036

Typo.

  • Participants
  • Parent commits 5cd68ab

Comments (0)

Files changed (12)

File static/default/css/iredadmin_cs.css

     }
 
 .brd .main-menu, .brd .admin-menu {
-    background: #1F537B;
+    background: #113C5E;
     }
 
 .brd .admin-submenu {

File templates/default/ldap/admin_create.html

 {% block submenu %}{% endblock submenu %}
 
 {% block title %}{{ _('Create new mail admin') }}{% endblock title %}
+{% block navlinks_active_admins %}active{% endblock %}
 
 {% block main %}
 <div class="main-subhead">

File templates/default/ldap/admin_profile.html

 {% block jquery_docoment_ready %}{% endblock jquery_docoment_ready %}
 
 {% block title %}{{ _('Edit admin profile') }}{% endblock %}
+{% block navlinks_active_admins %}active{% endblock %}
 
 {% block id_welcome %}
 <span><a href="{{ctx.homepath}}/profile/admin/general/{{mail}}" {% if profile_type == 'general' %}class="active"{%endif%}>{{ _('General') }}</a>&nbsp;</span>

File templates/default/ldap/admins.html

 {% from "macros.html" import set_account_status_img %}
 
 {% block title %}{{ _('Domain Admins') }}{% endblock %}
+{% block navlinks_active_admins %}active{% endblock %}
 
 {% block id_welcome %}
 <span>{{ _('All mail administrators.') }} {{ _('Total: %s.') |format(admins |length) }}</span>

File templates/default/ldap/dashboard.html

 {% block js %}{% endblock js %}
 {% block js_tablesorter %}{% endblock %}
 {% block jquery_docoment_ready %} {% endblock %}
+
 {% block title %} {{ _('Dashboard') }} {% endblock %}
+{% block navlinks_active_dashboard %}active{% endblock %}
 
 {% block submenu %}{% endblock submenu %}
 

File templates/default/ldap/domain_create.html

 {% extends "layout.html" %}
 {% from "macros.html" import display_cn, %}
 
-{% block title %}{{ _('Create new mail domain') }}{% endblock title %}
 {% block js %}{% endblock js %}
 {% block js_tablesorter %}{% endblock %}
 {% block jquery_docoment_ready %} {% endblock %}
 {% block submenu %}{% endblock submenu %}
 
+{% block title %}{{ _('Create new mail domain') }}{% endblock title %}
+{% block navlinks_active_domains %}active{% endblock %}
+
 {% block main %}
 <div class="main-subhead">
     <h2 class="hn"><span>{{ _('Create new mail domain') }}</span></h2>

File templates/default/ldap/domain_profile.html

 {% block jquery_docoment_ready %}{% endblock jquery_docoment_ready %}
 
 {% block title %}{{ _('Edit domain profile.') }}{% endblock %}
+{% block navlinks_active_domains %}active{% endblock %}
 
 {% block id_welcome %}
 <span><a href="{{ctx.homepath}}/profile/domain/general/{{cur_domain}}" {% if profile_type == "general" %}class="active"{%endif%}>General</a>&nbsp;</span>

File templates/default/ldap/domains.html

 {% from "macros.html" import set_account_status_img, %}
 
 {% block title %}{{ _('Mail Domains') }}{% endblock %}
+{% block navlinks_active_domains %}active{% endblock %}
 
 {% block id_welcome %}
 <span>{{ _('All domains under your control.') }} {{ _('Total: %s.') |format(allDomains|length) }}</span>

File templates/default/ldap/layout.html

             </div>
 
             {# Main navigation #}
-            <div id="brd-navlinks" class="gen-content">
+            <div class="admin-menu gen-content">
                 <ul>
-                    <li><a href="{{ctx.homepath}}/dashboard">{{ _('Dashboard') }}</a></li>
-                    <li><a href="{{ctx.homepath}}/domains">{{ _('Domains') }}</a></li>
-                    <li class="normal"><a href="{{ctx.homepath}}/users">{{ _('Users') }}</a></li>
+                    <li class="{% block navlinks_active_dashboard %}normal{% endblock %}"><a href="{{ctx.homepath}}/dashboard">{{ _('Dashboard') }}</a></li>
+                    <li class="{% block navlinks_active_domains %}normal{% endblock %}"><a href="{{ctx.homepath}}/domains">{{ _('Domains') }}</a></li>
+                    <li class="{% block navlinks_active_users %}normal{% endblock %}"><a href="{{ctx.homepath}}/users">{{ _('Users') }}</a></li>
                     {# Display extra menus for global admin. #}
                     {% if session.get('domainGlobalAdmin') == 'yes' %}
-                        <li class="normal"><a href="{{ctx.homepath}}/admins">{{ _('Admins') }}</a></li>
+                        <li class="{% block navlinks_active_admins %}normal{% endblock %}"><a href="{{ctx.homepath}}/admins">{{ _('Admins') }}</a></li>
                     {% endif %}
                 </ul>
             </div>

File templates/default/ldap/user_create.html

 {% block submenu %}{% endblock submenu %}
 
 {% block title %}{{ _('Create new mail user') }}{% endblock title %}
+{% block navlinks_active_users %}active{% endblock %}
 
 {% block main %}
 <div class="main-subhead">

File templates/default/ldap/user_profile.html

 {% block jquery_docoment_ready %}{% endblock jquery_docoment_ready %}
 
 {% block title %}{{ _('Edit user profile') }}{% endblock %}
+{% block navlinks_active_users %}active{% endblock %}
 
 {# User profile. #}
 

File templates/default/ldap/users.html

 {% from "macros.html" import set_account_status_img, display_quota, %}
 
 {% block title %}{{ _('Mail Users') }}{% endblock %}
+{% block navlinks_active_users %}active{% endblock %}
 
 {# Show drop-down menu of domain list #}
 {% block id_welcome %}