incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g..@apache.org
Subject svn commit: r1352133 - /incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_plugins.html
Date Wed, 20 Jun 2012 14:47:31 GMT
Author: gjm
Date: Wed Jun 20 14:47:31 2012
New Revision: 1352133

URL: http://svn.apache.org/viewvc?rev=1352133&view=rev
Log:
theme: modification to plugin ids to make accordian work for plugin names with dot characters
- towards #100

Modified:
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_plugins.html

Modified: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_plugins.html
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_plugins.html?rev=1352133&r1=1352132&r2=1352133&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_plugins.html (original)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_plugins.html Wed
Jun 20 14:47:31 2012
@@ -18,18 +18,19 @@
     <div class="row">
       <div class="span6">
         <div class="accordion" id="pluginlist">
-          <div class="accordion-group" id="trac-plugin-${plugin.name}"
+          <div class="accordion-group" id="trac-plugin-$plugin_id"
+              py:with="plugin_id = plugin.name.replace('.', '-')"
               py:for="idx, plugin in enumerate(plugins)">
             <div class="accordion-heading">
-              <a class="accordion-toggle" data-toggle="collapse" 
-                  data-parent="#pluginlist" href="#body-plugin-${plugin.name}">
+              <a class="accordion-toggle" data-toggle="collapse"
+                  data-parent="#pluginlist" href="#body-plugin-$plugin_id">
                 ${plugin.name} ${plugin.version}
               </a>
               <p style="padding: 0px 10px;" py:if="plugin.info">
                 ${plugin.info.get('summary')}
               </p>
             </div>
-            <div id="body-plugin-${plugin.name}" class="accordion-body collapse">
+            <div id="body-plugin-$plugin_id" class="accordion-body collapse">
               <div class="accordion-inner">
                 <dl py:if="plugin.info and ('home_page' in plugin.info or
                            'author' in plugin.info or



Mime
View raw message