diff pylons_app/templates/files/files_browser.html @ 144:ea89ac73bef8

Update css +file browsing and diffs
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 09 May 2010 17:35:51 +0200
parents 9deb6f1d5b90
children 3f01d02c2cc6
line wrap: on
line diff
--- a/pylons_app/templates/files/files_browser.html	Sun May 09 17:23:11 2010 +0200
+++ b/pylons_app/templates/files/files_browser.html	Sun May 09 17:35:51 2010 +0200
@@ -5,53 +5,62 @@
 		<%return "browser-dir"%>
 	%endif
 </%def>
-		
-<table class="code-browser">
-         <thead>
-             <tr>
-                 <th class="width-50 lefted">${_('Name')}</th>
-                 <th class="width-10 righted">${_('Size')}</th>
-                 <th class="width-10 righted">${_('Revision')}</th>
-                 <th class="width-15 righted">${_('Last modified')}</th>
-                 <th class="width-15 righted">${_('Last commiter')}</th>
-             </tr>
-         </thead>
-         	<tr>
-         		% if c.files_list.parent:
-          		<td>
-          			${h.link_to('..',h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.files_list.parent),class_="browser-dir")}
-          		</td>
-          		<td></td>
-          		<td></td>
-          		<td></td>
-          		<td></td>
-         		%endif
-         	</tr>
-    %for cnt,node in enumerate(c.files_list):
-		<tr class="parity${cnt%2}">
-             <td>
-				${h.link_to(node.name,h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=node.path),class_=file_class(node))}
-             </td>
-             <td>
-                %if node.is_file():
-             		${h.filesizeformat(node.size)}
-             	%endif
-             </td>
-             <td>
-             	%if node.is_file():
-             		${node.last_changeset.revision}
-             	%endif
-             </td>
-             <td>
-             	%if node.is_file():
-             		${node.last_changeset.date}
-             	%endif
-             </td>
-             <td>
-             	%if node.is_file():
-             		${node.last_changeset.author}
-             	%endif                    
-             </td>
-		</tr>
-	%endfor
-</table>
\ No newline at end of file
+<div id="body" class="browserblock">
+	<div class="browser-header">
+		${h.form(h.url.current())}
+		<span>${_('view')}@rev:${h.text('at_rev',value=c.rev_nr,size='5')}</span>
+		${h.submit('view','view')}
+		${h.end_form()}
+	</div>
+	<div class="browser-body">		
+		<table class="code-browser">
+		         <thead>
+		             <tr>
+		                 <th>${_('Name')}</th>
+		                 <th>${_('Size')}</th>
+		                 <th>${_('Revision')}</th>
+		                 <th>${_('Last modified')}</th>
+		                 <th>${_('Last commiter')}</th>
+		             </tr>
+		         </thead>
+		         	<tr class="parity0">
+		          		<td>
+		          		% if c.files_list.parent:
+		          			${h.link_to('..',h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.files_list.parent.path),class_="browser-dir")}
+		          		%endif
+		          		</td>
+		          		<td></td>
+		          		<td></td>
+		          		<td></td>
+		          		<td></td>
+		         	</tr>
+		    %for cnt,node in enumerate(c.files_list,1):
+				<tr class="parity${cnt%2}">
+		             <td>
+						${h.link_to(node.name,h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=node.path),class_=file_class(node))}
+		             </td>
+		             <td>
+		                %if node.is_file():
+		             		${h.filesizeformat(node.size)}
+		             	%endif
+		             </td>
+		             <td>
+		             	%if node.is_file():
+		             		${node.last_changeset.revision}
+		             	%endif
+		             </td>
+		             <td>
+		             	%if node.is_file():
+		             		${node.last_changeset.date}
+		             	%endif
+		             </td>
+		             <td>
+		             	%if node.is_file():
+		             		${node.last_changeset.author}
+		             	%endif                    
+		             </td>
+				</tr>
+			%endfor
+		</table>
+	</div>
+</div>
\ No newline at end of file