Mercurial > kallithea
diff rhodecode/templates/files/files_annotate.html @ 1737:61eda8bf70d0 beta
new files views
- compated space
- nicer gui
- code garden
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 27 Nov 2011 03:17:17 +0200 |
parents | aaec08ad9daf |
children | 60a00fd76d58 |
line wrap: on
line diff
--- a/rhodecode/templates/files/files_annotate.html Sun Nov 27 01:36:39 2011 +0200 +++ b/rhodecode/templates/files/files_annotate.html Sun Nov 27 03:17:17 2011 +0200 @@ -29,29 +29,8 @@ <div class="table"> <div id="files_data"> <h3 class="files_location">${_('Location')}: ${h.files_breadcrumbs(c.repo_name,c.cs.revision,c.file.path)}</h3> - <dl class="overview"> - <dt>${_('Revision')}</dt> - <dd>${h.link_to("r%s:%s" % (c.file.last_changeset.revision,h.short_id(c.file.last_changeset.raw_id)), - h.url('changeset_home',repo_name=c.repo_name,revision=c.file.last_changeset.raw_id))} </dd> - <dt>${_('Size')}</dt> - <dd>${h.format_byte_size(c.file.size,binary=True)}</dd> - <dt>${_('Mimetype')}</dt> - <dd>${c.file.mimetype}</dd> - <dt>${_('Options')}</dt> - <dd>${h.link_to(_('show source'), - h.url('files_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path))} - / ${h.link_to(_('show as raw'), - h.url('files_raw_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path))} - / ${h.link_to(_('download as raw'), - h.url('files_rawfile_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path))} - % if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name): - % if not c.file.is_binary: - / ${h.link_to(_('edit'), - h.url('files_edit_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path))} - % endif - % endif - </dd> - <dt>${_('History')}</dt> + <dl> + <dt style="padding-top:10px;font-size:16px">${_('History')}</dt> <dd> <div> ${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='get')} @@ -64,10 +43,31 @@ </dd> </dl> <div id="body" class="codeblock"> - <div class="code-header"> - <div class="revision">${c.file.name}@r${c.file.last_changeset.revision}:${h.short_id(c.file.last_changeset.raw_id)}</div> - <div class="commit">"${c.file.message}"</div> - </div> + <div class="code-header"> + <div class="stats"> + <div class="left"><img src="${h.url('/images/icons/file.png')}"/></div> + <div class="left item">${h.link_to("r%s:%s" % (c.file.last_changeset.revision,h.short_id(c.file.last_changeset.raw_id)),h.url('changeset_home',repo_name=c.repo_name,revision=c.file.last_changeset.raw_id))}</div> + <div class="left item">${h.format_byte_size(c.file.size,binary=True)}</div> + <div class="left item last">${c.file.mimetype}</div> + <div class="buttons"> + ${h.link_to(_('show source'),h.url('files_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path),class_="ui-button-small")} + ${h.link_to(_('show as raw'),h.url('files_raw_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path),class_="ui-button-small")} + ${h.link_to(_('download as raw'),h.url('files_rawfile_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path),class_="ui-button-small")} + % if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name): + % if not c.file.is_binary: + ${h.link_to(_('edit'),h.url('files_edit_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path),class_="ui-button-small")} + % endif + % endif + </div> + </div> + <div class="author"> + <div class="gravatar"> + <img alt="gravatar" src="${h.gravatar_url(h.email(c.cs.author),16)}"/> + </div> + <div title="${h.email_or_none(c.cs.author)}" class="user">${h.person(c.cs.author)}</div> + </div> + <div class="commit">${c.file.last_changeset.message}</div> + </div> <div class="code-body"> %if c.file.is_binary: ${_('Binary file (%s)') % c.file.mimetype}