Marcin Kuzminski avatar Marcin Kuzminski committed 215a480

pep8ify + small fixes for followers page + added tooltips for followers

Comments (0)

Files changed (3)

rhodecode/controllers/changeset.py

         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:
                             else:
                                 diff = d.as_html()
 
-
                             if diff:
                                 c.sum_removed += len(diff)
                         else:

rhodecode/templates/followers/followers.html

     ${c.repo_name} ${_('Followers')} - ${c.rhodecode_name}
 </%def>
 
-
 <%def name="breadcrumbs_links()">
     ${h.link_to(u'Home',h.url('/'))}
     &raquo; 

rhodecode/templates/followers/followers_data.html

 ## -*- coding: utf-8 -*-
 
-
 % for f in c.followers_pager:
     <div>
         <div class="follower_user">
             <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';
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.