Changeset - 946ed2955f48
[Not reviewed]
default
0 2 0
Marcin Kuzminski - 15 years ago 2010-10-01 01:16:27
marcin@python-works.com
template updates, added icon to repo name showing private/public
removed delete from repo options menu
2 files changed with 12 insertions and 6 deletions:
0 comments (0 inline, 0 general)
pylons_app/templates/base/base.html
Show inline comments
 
@@ -188,14 +188,14 @@
 
                   %endif	
 
                   	<li>${h.link_to(_('fork'),h.url('repo_fork_home',repo_name=c.repo_name),class_='fork')}</li>
 
                   	<li>${h.link_to(_('search'),h.url('search_repo',search_repo=c.repo_name),class_='search')}</li>
 
                   %if h.HasRepoPermissionAll('repository.admin')(c.repo_name):
 
                   	<li class="last">
 
                   	${h.link_to(_('delete'),'#',class_='delete')}
 
##                   %if h.HasRepoPermissionAll('repository.admin')(c.repo_name):
 
##                   	<li class="last">
 
##                   	${h.link_to(_('delete'),'#',class_='delete')}
 
##	                  ${h.form(url('repo_settings_delete', repo_name=c.repo_name),method='delete')}
 
##	                    ${h.submit('remove_%s' % c.repo_name,'delete',class_="delete_icon action_button",onclick="return confirm('Confirm to delete this repository');")}
 
##	                  ${h.end_form()}
 
                   	</li>
 
                   	%endif
 
##                   	</li>
 
##                   	%endif
 
                   </ul>             
 
                </li>
 
	        </ul>
pylons_app/templates/summary/summary.html
Show inline comments
 
@@ -42,7 +42,13 @@ E.onDOMReady(function(e){
 
			      <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)}">
0 comments (0 inline, 0 general)