diff rhodecode/templates/admin/repos_groups/repos_groups.html @ 1343:a04fe5986109 beta

#47 implemented basic gui for browsing repo groups
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 23 May 2011 00:00:03 +0200
parents 523382549c45
children fc286aed92fe
line wrap: on
line diff
--- a/rhodecode/templates/admin/repos_groups/repos_groups.html	Sun May 22 21:09:02 2011 +0200
+++ b/rhodecode/templates/admin/repos_groups/repos_groups.html	Mon May 23 00:00:03 2011 +0200
@@ -7,7 +7,12 @@
 
 
 <%def name="breadcrumbs_links()">
-    ${_('Group')} &raquo; ${c.group.group_name} - ${_(' %s repositories' % c.repo_cnt)} 
+    ${_('Repository Groups')} 
+    %if c.group.parent_group:
+        &raquo; ${h.link_to(c.group.parent_group.group_name,h.url('repos_group',id=c.group.parent_group.group_id))}
+    %endif
+    
+    &raquo; "${c.group.group_name}" ${_('with %s repositories' % c.repo_cnt)} 
 </%def>
 <%def name="page_nav()">
     ${self.menu('admin')}
@@ -33,6 +38,35 @@
     </div>
     <!-- end box / title -->
         <div class="table">
+           % if c.groups:
+            <table>
+            
+                <thead>
+                    <tr>
+                        <th class="left"><a href="#">${_('Group name')}</a></th>
+                        <th class="left"><a href="#">${_('Description')}</a></th>
+                        <th class="left"><a href="#">${_('Number of repositories')}</a></th>
+                    </tr>
+                </thead>
+                
+                ## REPO GROUPS
+                
+                % for gr in c.groups:
+                  <tr>
+                      <td>
+                          <div style="white-space: nowrap">
+                          <img class="icon" alt="${_('Repositories group')}" src="${h.url('/images/icons/database_link.png')}"/>
+                          ${h.link_to(gr.group_name,url('repos_group',id=gr.group_id))}
+                          </div>
+                      </td>
+                      <td>${gr.group_description}</td>
+                      <td><b>${gr.repositories.count()}</b></td>
+                  </tr>
+                % endfor            
+                
+            </table>
+            <div style="height: 20px"></div>
+            % endif        
             <table>
             <thead>
                 <tr>
@@ -112,7 +146,7 @@
                       %endif:
                     </td>
                 </tr>
-            %endfor
+            %endfor          
             </tbody>
             </table>
             </div>