salvator avatar salvator committed 36866bd

minor

Comments (0)

Files changed (5)

admintools_bootstrap/__init__.py

-__version__ = (0, 0, 1, "alpha", 1)
+__version__ = (0, 0, 2, "alpha", 0)

admintools_bootstrap/static/admintools_bootstrap/bootstrap/less/style.css

 .search-results{color:#999999 !important;}
 .clear{clear:both;}
 .collapsed_fieldset{background-color:#eeeeee;}.collapsed_fieldset .accordion-toggle{font-size:14pt;}
+#dashboard-panel ul li{list-style:none outside;}
+#navigation-menu li{list-style:none;}
+#navigation-menu a.dropdown-toggle .submenu{background-color:#9d261d;}

admintools_bootstrap/static/admintools_bootstrap/bootstrap/less/style.less

 	}
 }
 
-
 #container {
 	padding-top: 50px;
 }
 	}
 	background-color: @grayLighter;
 }
+
+#dashboard-panel {
+	ul {
+		li {
+			list-style: none outside;
+		}
+	}
+}
+
+#navigation-menu {
+	li {
+		list-style: none;
+	}
+	a.dropdown-toggle .submenu {
+		background-color: @red;
+	}
+}

admintools_bootstrap/templates/admin_tools/dashboard/dashboard.html

                 {% autoescape off %}{{ dashboard_preferences }}{% endautoescape %},
                 '{% url admin-tools-dashboard-set-preferences dashboard.get_id %}'
             );
+//            $('#dashboard-panel ul').addClass('dropdown-menu');
         });
     });
 </script>
 {% endif %}
 
 <div id="dashboard-panel">
+  
   {% comment %}
   <div class="btn-group">
     <a class="btn dropdown-toggle" href="#" data-toggle="dropdown">{% trans "Modules" %} <span class="caret"></span></a>
-    {% if has_disabled_modules %}
+      {% if has_disabled_modules %}
     <ul class="dropdown-menu">
-        {% spaceless %}
-        {% for module in dashboard.children %}
-        {% if not module.enabled %}
-        <li><a href="#" rel="module_{{ module.id }}" class="addlink add-dashboard-module">{{ module.title }}</a></li>
-        {% endif %}
-        {% endfor %}
-        {% endspaceless %}
+          {% spaceless %}
+          {% for module in dashboard.children %}
+          {% if not module.enabled %}
+          <li><a href="#" rel="module_{{ module.id }}" class="addlink add-dashboard-module">{{ module.title }}</a></li>
+          {% endif %}
+          {% endfor %}
+          {% endspaceless %}
     </ul>
-    {% endif %}
+      {% endif %}
   </div>
   {% endcomment %}
     <h3><a href="#">{% trans "Modules" %}</a></h3>

admintools_bootstrap/templates/admin_tools/menu/item.html

 {% if not item.is_empty %}
 <li class="{% if not item.enabled %} disabled{% endif %}{% if selected %} active{% endif %}{% if item.css_classes %} {{ item.css_classes|join:' ' }}{% endif %}{% if item.children %} dropdown{% endif %}">
 <a href="{% if item.url and item.enabled %}{{ item.url }}{% else %}#{% endif %}"{% if item.description %} title="{{ item.description }}"{% endif %}{% if item.accesskey %} accesskey="{{ item.accesskey }}"{% endif %}
-  {% if item.children and item.enabled %}class="dropdown-toggle" data-toggle="dropdown"{% endif %}>
+  {% if item.children and item.enabled %}class="dropdown-toggle{% if index == 'submenu' %} submenu{% endif %}" data-toggle="dropdown"{% endif %}>
     {% if item.icon %}<i class="{{ item.icon }}"></i> {% endif %}
   {{ item.title }}
     {% if item.children and item.enabled %}
     {% endif %}
   </a>
     {% if item.children and item.enabled %}
-    <ul class="{% if index == 'submenu' %}submenu open{% else %}dropdown-menu{% endif %}">
+    <ul class="{% if index == 'submenu' %}submenu{% else %}dropdown-menu{% endif %}">
         {% for child_item in item.children %}
           {% admin_tools_render_menu_item child_item 'submenu' %}
         {% endfor %}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.