Files
@ 20dc7a5eb748
Branch filter:
Location: kallithea/pylons_app/templates/files.html - annotation
20dc7a5eb748
3.9 KiB
text/html
Html changes and cleanups, made folders for html templates, implemented tags and branches pages
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 | 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 2dc0c8e4f384 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 2dc0c8e4f384 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 a86c8de926b4 a86c8de926b4 a86c8de926b4 a86c8de926b4 a86c8de926b4 a86c8de926b4 a86c8de926b4 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 2dc0c8e4f384 5b57295601b6 2dc0c8e4f384 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 2dc0c8e4f384 2dc0c8e4f384 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 2dc0c8e4f384 2dc0c8e4f384 2dc0c8e4f384 2dc0c8e4f384 2dc0c8e4f384 2dc0c8e4f384 2dc0c8e4f384 2dc0c8e4f384 2dc0c8e4f384 2dc0c8e4f384 2dc0c8e4f384 2dc0c8e4f384 2dc0c8e4f384 2dc0c8e4f384 2dc0c8e4f384 2dc0c8e4f384 2dc0c8e4f384 2dc0c8e4f384 2dc0c8e4f384 2dc0c8e4f384 2dc0c8e4f384 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 5b57295601b6 | <%inherit file="base/base.html"/>
<%def name="title()">
${_('Repository managment')}
</%def>
<%def name="breadcrumbs()">
${h.link_to(u'Home',h.url('/'))}
/
${h.link_to(c.repo_name,h.url('files_home',repo_name=c.repo_name))}
/
${_('files')}
</%def>
<%def name="page_nav()">
<form action="log">
<dl class="search">
<dt><label>Search: </label></dt>
<dd><input type="text" name="rev" /></dd>
</dl>
</form>
${self.menu('files')}
</%def>
<%def name="css()">
<link rel="stylesheet" href="/css/monoblue_custom.css" type="text/css" />
<link rel="stylesheet" href="/css/pygments.css" type="text/css" />
</%def>
<%def name="main()">
<h2 class="no-link no-border">${_('Files')}</h2>
<div id="files_data">
<h2>${_('File')}: ${h.files_breadcrumbs(c.repo_name,c.cur_rev,c.files_list.path)}</h2>
%if c.files_list.is_dir():
<table class="code-browser">
<thead>
<tr>
<th class="width-50 lefted">${_('Name')}</th>
<th class="width-10 righted">${_('Size')}</th>
<th class="width-10 righted">${_('Revision')}</th>
<th class="width-15 righted">${_('Last modified')}</th>
<th class="width-15 righted">${_('Last commiter')}</th>
</tr>
</thead>
<tr>
% if c.files_list.parent:
<td>
${h.link_to('..',h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.files_list.parent),class_="browser-dir")}
</td>
<td></td>
<td></td>
<td></td>
<td></td>
%endif
</tr>
<%def name="file_class(node)">
%if node.is_file():
<%return "browser-file" %>
%else:
<%return "browser-dir"%>
%endif
</%def>
%for cnt,node in enumerate(c.files_list):
<tr class="parity${cnt%2}">
<td>
${h.link_to(node.name,h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=node.path),class_=file_class(node))}
</td>
<td>
%if node.is_file():
${h.filesizeformat(node.size)}
%endif
</td>
<td>
%if node.is_file():
${node.last_changeset.revision}
%endif
</td>
<td>
%if node.is_file():
${node.last_changeset.date}
%endif
</td>
<td>
%if node.is_file():
${node.last_changeset.author}
%endif
</td>
</tr>
%endfor
</table>
%else:
<table class="info-table">
<tr>
<td>r70:17ecc1c97401</td>
<td>374 loc</td>
<td>12.5 KB</td>
<td>
<a href="/marcinkuzminski/vcs/history/vcs/backends/hg.py">history</a> /
<a href="/marcinkuzminski/vcs/annotate/17ecc1c97401/vcs/backends/hg.py">annotate</a> /
<a href="/marcinkuzminski/vcs/raw/17ecc1c97401/vcs/backends/hg.py">raw</a> /
<form class="source-view-form" method="get" action="/marcinkuzminski/vcs/diff/vcs/backends/hg.py">
<input type="hidden" value="17ecc1c97401" name="diff2">
<select class="smaller" name="diff1">
<option>history</option>
</select>
<input type="submit" class="smaller" value="diff">
</form>
</td>
</tr>
</table>
<div id="body" class="codeblock">
${h.pygmentize(c.files_list.content,linenos=True,anchorlinenos=True,cssclass="code-highlight")}
</div>
%endif
</div>
</%def>
|