Permalink
Browse files

git-svn-id: http://svn.textmate.org/trunk/Bundles/TODO.tmbundle@10748

…dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent c4bcdbb commit 0a8db73c0d3d455690c5b4434a2cc8dc88b5e254 @sorbits sorbits committed Oct 28, 2008
@@ -61,7 +61,7 @@
color: #FFF;
}
-#todo_list #total_count {
+#todo_list .bg_total, #todo_list #total_count {
color: #FFF;
background-color: #000;
}
@@ -8,8 +8,8 @@
<ul class="counters">
<% tags.each do |tag| %>
- <li id="counter_tab_<%= tag[:label] %>" class="bg_<%= tag[:label] %>" <% if tag[:trim_if_empty] then %>style="display: none;"<% end %>><a onclick="goTo('jump_to_<%= tag[:label] %>'); return false;" href="#jump_to_<%= tag[:label] %>" accesskey="<%= tag[:label][0..0] %>"><%= tag[:label] %></a>: <span id="count_<%= tag[:label] %>">0</span></li>
+ <li id="counter_tab_<%= tag[:label].sub(/\W/, '_') %>" class="bg_<%= tag[:label].sub(/\W/, '_') %>" <% if tag[:trim_if_empty] then %>style="display: none;"<% end %>><a onclick="goTo('jump_to_<%= tag[:label].sub(/\W/, '_') %>'); return false;" href="#jump_to_<%= tag[:label].sub(/\W/, '_') %>" accesskey="<%= tag[:label][0..0] %>"><%= tag[:label] %></a>: <span id="count_<%= tag[:label].sub(/\W/, '_') %>">0</span></li>
<% end %>
- <li id="total_count">counting…</li>
+ <li id="counter_tab_total" class="bg_total %>"><a href="#" onclick="return false;">Total</a>: <span id="total_count">counting…</span></li>
</ul>
<p id="current_dir_container" style="clear: both;">Scanning directory: <span id="current_dir"></span></p>
@@ -1,7 +1,7 @@
<style type="text/css">
<% tags.each do |tag| %>
- .bg_<%= tag[:label] %> {background-color: <%= tag[:color] %>; color: #FFF; padding: 0.5ex;}
- #jump_to_<%= tag[:label] %> {color: <%= tag[:color] %>;}
- .color_<%= tag[:label] %> {color: <%= tag[:color] %>}
+ .bg_<%= tag[:label].gsub(/\W/, '_') %> {background-color: <%= tag[:color] %>; color: #FFF; padding: 0.5ex;}
+ #jump_to_<%= tag[:label].gsub(/\W/, '_') %> {color: <%= tag[:color] %>;}
+ .color_<%= tag[:label].gsub(/\W/, '_') %> {color: <%= tag[:color] %>}
<% end %>
</style>
@@ -1,7 +1,7 @@
<script type="text/javascript" charset="utf-8">
document.getElementById("current_dir_container").style.display = "none";
var box = document.getElementById("total_count");
- box.innerHTML = "Total: <%= total %>";
+ box.innerHTML = "<%= total %>";
</script>
<% tags.each do |tag| %>

0 comments on commit 0a8db73

Please sign in to comment.