Changeset - 215a4801bb1e
[Not reviewed]
beta
0 3 0
Marcin Kuzminski - 15 years ago 2011-04-23 17:22:50
marcin@python-works.com
pep8ify + small fixes for followers page + added tooltips for followers
3 files changed with 3 insertions and 6 deletions:
0 comments (0 inline, 0 general)
rhodecode/controllers/changeset.py
Show inline comments
 
@@ -85,13 +85,13 @@ class ChangesetController(BaseRepoContro
 

	
 
        c.changes = OrderedDict()
 
        c.sum_added = 0
 
        c.sum_removed = 0
 
        c.lines_added = 0
 
        c.lines_deleted = 0
 
        c.cut_off = False # defines if cut off limit is reached
 
        c.cut_off = False  # defines if cut off limit is reached
 

	
 
        # Iterate over ranges (default changeset view is always one changeset)
 
        for changeset in c.cs_ranges:
 
            c.changes[changeset.raw_id] = []
 
            try:
 
                changeset_parent = changeset.parents[0]
 
@@ -159,13 +159,12 @@ class ChangesetController(BaseRepoContro
 
                                diff = wrap_to_table(_('Diff is to big '
 
                                                       'and was cut off, see '
 
                                                       'raw diff instead'))
 
                            else:
 
                                diff = d.as_html()
 

	
 

	
 
                            if diff:
 
                                c.sum_removed += len(diff)
 
                        else:
 
                            diff = wrap_to_table(_('Changeset is to big and '
 
                                                   'was cut off, see raw '
 
                                                   'changeset instead'))
rhodecode/templates/followers/followers.html
Show inline comments
 
@@ -2,13 +2,12 @@
 
<%inherit file="/base/base.html"/>
 

	
 
<%def name="title()">
 
    ${c.repo_name} ${_('Followers')} - ${c.rhodecode_name}
 
</%def>
 

	
 

	
 
<%def name="breadcrumbs_links()">
 
    ${h.link_to(u'Home',h.url('/'))}
 
    &raquo; 
 
    ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))}
 
    &raquo;
 
    ${_('followers')}
rhodecode/templates/followers/followers_data.html
Show inline comments
 
## -*- coding: utf-8 -*-
 

	
 

	
 
% for f in c.followers_pager:
 
    <div>
 
        <div class="follower_user">
 
            <div class="gravatar">
 
                <img alt="gravatar" src="${h.gravatar_url(f.user.email,24)}"/>
 
            </div>
 
            <span style="font-size: 20px"> <b>${f.user.username}</b> (${f.user.name} ${f.user.lastname})</span>
 
        </div>
 
        <div style="clear:both;padding-top: 10px"></div>
 
        <div class="follower_date">${_('Started following on')} - ${f.follows_from}</div>
 
        <div class="follower_date">${_('Started following')} - 
 
        <span class="tooltip" title="${f.follows_from}"> ${h.age(f.follows_from)}</span></div>
 
        <div style="border-bottom: 1px solid #DDD;margin:10px 0px 10px 0px"></div>
 
    </div>                
 
% endfor 
 

	
 

	
 
<div class="pagination-wh pagination-left">
 
<script type="text/javascript">
 
  var data_div = 'followers';
 
  YAHOO.util.Event.onDOMReady(function(){
 
    YAHOO.util.Event.addListener(
 
    		YUD.getElementsByClassName('pager_link'),"click",
0 comments (0 inline, 0 general)