diff pylons_app/templates/summary/summary.html @ 532:946ed2955f48

template updates, added icon to repo name showing private/public removed delete from repo options menu
author Marcin Kuzminski <marcin@python-works.com>
date Fri, 01 Oct 2010 01:16:27 +0200
parents 6fc59ac322ca
children
line wrap: on
line diff
--- a/pylons_app/templates/summary/summary.html	Fri Oct 01 00:53:38 2010 +0200
+++ b/pylons_app/templates/summary/summary.html	Fri Oct 01 01:16:27 2010 +0200
@@ -42,7 +42,13 @@
 			      <label>${_('Name')}:</label>
 			  </div>
 			  <div class="input-short">
-			      <span style="font-size: 1.6em;font-weight: bold;">${c.repo_info.name}</span><br/>
+	             %if c.repo_info.dbrepo.private:
+	                <img style="margin-bottom:2px" class="icon" title="${_('private repository')}" alt="${_('private')}" src="/images/icons/lock.png"/>
+	             %else:
+	                <img style="margin-bottom:2px" class="icon" title="${_('public repository')}" alt="${_('public')}" src="/images/icons/lock_open.png"/>
+	             %endif
+			      <span style="font-size: 1.6em;font-weight: bold;vertical-align: baseline;">${c.repo_info.name}</span>
+			      <br/>
 		            %if c.repo_info.dbrepo.fork:
 		            	<span style="margin-top:5px">
 		            	<a href="${h.url('summary_home',repo_name=c.repo_info.dbrepo.fork.repo_name)}">