Mercurial > kallithea
diff rhodecode/templates/files/files_browser.html @ 3700:3563bb7b4b82
merge with rc1
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 07 Apr 2013 18:37:22 +0200 |
parents | 63e58ef80ef1 ec6354949623 |
children | ffd45b185016 |
line wrap: on
line diff
--- a/rhodecode/templates/files/files_browser.html Mon Mar 11 17:59:38 2013 +0100 +++ b/rhodecode/templates/files/files_browser.html Sun Apr 07 18:37:22 2013 +0200 @@ -1,34 +1,34 @@ <%def name="file_class(node)"> - %if node.is_file(): - <%return "browser-file" %> - %else: - <%return "browser-dir"%> - %endif + %if node.is_file(): + <%return "browser-file" %> + %else: + <%return "browser-dir"%> + %endif </%def> <div id="body" class="browserblock"> <div class="browser-header"> - <div class="browser-nav"> - ${h.form(h.url.current())} - <div class="info_box"> - <span class="rev">${_('view')}@rev</span> - <a class="ui-btn ypjax-link" href="${c.url_prev}" title="${_('previous revision')}">«</a> - ${h.text('at_rev',value=c.changeset.revision,size=5)} - <a class="ui-btn ypjax-link" href="${c.url_next}" title="${_('next revision')}">»</a> - ## ${h.submit('view',_('view'),class_="ui-btn")} - </div> - ${h.end_form()} - </div> - <div class="browser-branch"> - ${h.checkbox('stay_at_branch',c.changeset.branch,c.changeset.branch==c.branch)} - <label>${_('follow current branch')}</label> - </div> + <div class="browser-nav"> + ${h.form(h.url.current())} + <div class="info_box"> + <span class="rev">${_('View')}@rev</span> + <a class="ui-btn ypjax-link" href="${c.url_prev}" title="${_('Previous revision')}">«</a> + ${h.text('at_rev',value=c.changeset.revision,size=5)} + <a class="ui-btn ypjax-link" href="${c.url_next}" title="${_('Next revision')}">»</a> + ## ${h.submit('view',_('View'),class_="ui-btn")} + </div> + ${h.end_form()} + </div> + <div class="browser-branch"> + ${h.checkbox('stay_at_branch',c.changeset.branch,c.changeset.branch==c.branch)} + <label>${_('Follow current branch')}</label> + </div> <div class="browser-search"> <div id="search_activate_id" class="search_activate"> - <a class="ui-btn" id="filter_activate" href="#">${_('search file list')}</a> + <a class="ui-btn" id="filter_activate" href="#">${_('Search file list')}</a> </div> % if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name): <div id="add_node_id" class="add_node"> - <a class="ui-btn" href="${h.url('files_add_home',repo_name=c.repo_name,revision=c.changeset.raw_id,f_path=c.f_path)}">${_('add new file')}</a> + <a class="ui-btn" href="${h.url('files_add_home',repo_name=c.repo_name,revision=c.changeset.raw_id,f_path=c.f_path)}">${_('Add new file')}</a> </div> % endif <div> @@ -40,77 +40,77 @@ </div> </div> - <div class="browser-body"> - <table class="code-browser"> - <thead> - <tr> - <th>${_('Name')}</th> - <th>${_('Size')}</th> - <th>${_('Mimetype')}</th> - <th>${_('Last Revision')}</th> - <th>${_('Last modified')}</th> - <th>${_('Last commiter')}</th> - </tr> - </thead> + <div class="browser-body"> + <table class="code-browser"> + <thead> + <tr> + <th>${_('Name')}</th> + <th>${_('Size')}</th> + <th>${_('Mimetype')}</th> + <th>${_('Last Revision')}</th> + <th>${_('Last modified')}</th> + <th>${_('Last committer')}</th> + </tr> + </thead> - <tbody id="tbody"> - %if c.file.parent: - <tr class="parity0"> - <td> - ${h.link_to('..',h.url('files_home',repo_name=c.repo_name,revision=c.changeset.raw_id,f_path=c.file.parent.path),class_="browser-dir ypjax-link")} - </td> - <td></td> - <td></td> - <td></td> - <td></td> - <td></td> - </tr> - %endif + <tbody id="tbody"> + %if c.file.parent: + <tr class="parity0"> + <td> + ${h.link_to('..',h.url('files_home',repo_name=c.repo_name,revision=c.changeset.raw_id,f_path=c.file.parent.path),class_="browser-dir ypjax-link")} + </td> + <td></td> + <td></td> + <td></td> + <td></td> + <td></td> + </tr> + %endif - %for cnt,node in enumerate(c.file): - <tr class="parity${cnt%2}"> - <td> + %for cnt,node in enumerate(c.file): + <tr class="parity${cnt%2}"> + <td> %if node.is_submodule(): ${h.link_to(node.name,node.url or '#',class_="submodule-dir ypjax-link")} %else: ${h.link_to(node.name, h.url('files_home',repo_name=c.repo_name,revision=c.changeset.raw_id,f_path=h.safe_unicode(node.path)),class_=file_class(node)+" ypjax-link")} %endif: - </td> - <td> - %if node.is_file(): - ${h.format_byte_size(node.size,binary=True)} - %endif - </td> - <td> - %if node.is_file(): - ${node.mimetype} - %endif - </td> - <td> - %if node.is_file(): - <div class="tooltip" title="${h.tooltip(node.last_changeset.message)}"> - <pre>${'r%s:%s' % (node.last_changeset.revision,node.last_changeset.short_id)}</pre> - </div> - %endif - </td> - <td> - %if node.is_file(): - <span class="tooltip" title="${h.tooltip(h.fmt_date(node.last_changeset.date))}"> + </td> + <td> + %if node.is_file(): + ${h.format_byte_size(node.size,binary=True)} + %endif + </td> + <td> + %if node.is_file(): + ${node.mimetype} + %endif + </td> + <td> + %if node.is_file(): + <div class="tooltip" title="${h.tooltip(node.last_changeset.message)}"> + <pre>${'r%s:%s' % (node.last_changeset.revision,node.last_changeset.short_id)}</pre> + </div> + %endif + </td> + <td> + %if node.is_file(): + <span class="tooltip" title="${h.tooltip(h.fmt_date(node.last_changeset.date))}"> ${h.age(node.last_changeset.date)}</span> - %endif - </td> - <td> - %if node.is_file(): - <span title="${node.last_changeset.author}"> + %endif + </td> + <td> + %if node.is_file(): + <span title="${node.last_changeset.author}"> ${h.person(node.last_changeset.author)} </span> - %endif - </td> - </tr> - %endfor - </tbody> - <tbody id="tbody_filtered" style="display:none"> - </tbody> - </table> - </div> + %endif + </td> + </tr> + %endfor + </tbody> + <tbody id="tbody_filtered" style="display:none"> + </tbody> + </table> + </div> </div>