##// END OF EJS Templates
fixed html templates, fixed overal rhodecode width to 1024pixels...
marcink -
r663:6199b34d beta
parent child Browse files
Show More
@@ -1945,7 +1945,7 b' padding:2px 2px 0;'
1945 1945 }
1946 1946
1947 1947 #header,#content,#footer {
1948 min-width:1224px;
1948 min-width:1024px;
1949 1949 }
1950 1950
1951 1951 #content {
@@ -37,6 +37,16 b''
37 37 %for cnt,repo in enumerate(c.repos_list):
38 38 <tr class="parity${cnt%2}">
39 39 <td>
40 ## TYPE OF REPO
41 %if repo['repo'].dbrepo.repo_type =='hg':
42 <img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="/images/icons/hgicon.png"/>
43 %elif repo['repo'].dbrepo.repo_type =='git':
44 <img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="/images/icons/giticon.png"/>
45 %else:
46
47 %endif
48
49 ## PRIVATE/PUBLIC REPO
40 50 %if repo['repo'].dbrepo.private:
41 51 <img alt="${_('private')}" src="/images/icons/lock.png"/>
42 52 %else:
@@ -55,7 +65,7 b''
55 65 <td>${h.age(repo['last_change'])}</td>
56 66 <td>
57 67 %if repo['rev']>=0:
58 ${h.link_to('r%s:%s' % (repo['rev'],repo['tip']),
68 ${h.link_to('r%s:%s' % (repo['rev'],h.short_id(repo['tip'])),
59 69 h.url('changeset_home',repo_name=repo['name'],revision=repo['tip']),
60 70 class_="tooltip",
61 71 tooltip_title=h.tooltip(repo['last_msg']))}
@@ -89,6 +89,12 b''
89 89 <!-- end box / title -->
90 90 <div class="table">
91 91 <table>
92 <thead>
93 <tr>
94 <th class="left">${_('Name')}</th>
95 <th class="left">${_('revision')}</th>
96 <th colspan="2" class="left">${_('action')}</th>
97 </thead>
92 98 <tbody>
93 99 %if c.user_repos:
94 100 %for repo in c.user_repos:
@@ -115,12 +121,11 b''
115 121 src="/images/icons/arrow_divide.png"/></a>
116 122 %endif
117 123 </td>
118 <td>${_('revision')}: ${h.get_changeset_safe(repo,'tip').revision}</td>
119 <td><span class="tooltip" tooltip_title="${repo.last_change}">${_('last changed')}: ${h.age(repo.last_change)}</span></td>
120 <td><img class="icon" alt="${_('private')}" src="/images/icons/application_form_edit.png"/> ${h.link_to(_('edit'),h.url('repo_settings_home',repo_name=repo.name))}</td>
124 <td><span class="tooltip" tooltip_title="${repo.last_change}">${("r%s:%s") % (h.get_changeset_safe(repo,'tip').revision,h.short_id(h.get_changeset_safe(repo,'tip').raw_id))}</span></td>
125 <td><a href="${h.url('repo_settings_home',repo_name=repo.name)}" title="${_('edit')}"><img class="icon" alt="${_('private')}" src="/images/icons/application_form_edit.png"/></a></td>
121 126 <td>
122 127 ${h.form(url('repo_settings_delete', repo_name=repo.name),method='delete')}
123 ${h.submit('remove_%s' % repo.name,'delete',class_="delete_icon action_button",onclick="return confirm('Confirm to delete this repository');")}
128 ${h.submit('remove_%s' % repo.name,'',class_="delete_icon action_button",onclick="return confirm('Confirm to delete this repository');")}
124 129 ${h.end_form()}
125 130 </td>
126 131 </tr>
@@ -9,7 +9,7 b''
9 9 &raquo;
10 10 ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))}
11 11 &raquo;
12 ${_('annotate')} @ R${c.rev_nr}:${c.cur_rev}
12 ${_('annotate')} @ R${c.cs.revision}:${h.short_id(c.cs.raw_id)}
13 13 </%def>
14 14
15 15 <%def name="page_nav()">
@@ -20,13 +20,18 b''
20 20 <!-- box / title -->
21 21 <div class="title">
22 22 ${self.breadcrumbs()}
23 <ul class="links">
24 <li>
25 <span style="text-transform: uppercase;"><a href="#">${_('branch')}: ${c.cs.branch}</a></span>
26 </li>
27 </ul>
23 28 </div>
24 29 <div class="table">
25 30 <div id="files_data">
26 <h3 class="files_location">${_('Location')}: ${h.files_breadcrumbs(c.repo_name,c.cur_rev,c.file.path)}</h3>
31 <h3 class="files_location">${_('Location')}: ${h.files_breadcrumbs(c.repo_name,c.cs.revision,c.file.path)}</h3>
27 32 <dl class="overview">
28 33 <dt>${_('Last revision')}</dt>
29 <dd>${h.link_to("r%s:%s" % (c.file.last_changeset.revision,c.file.last_changeset.raw_id),
34 <dd>${h.link_to("r%s:%s" % (c.file.last_changeset.revision,h.short_id(c.file.last_changeset.raw_id)),
30 35 h.url('files_annotate_home',repo_name=c.repo_name,revision=c.file.last_changeset.raw_id,f_path=c.f_path))} </dd>
31 36 <dt>${_('Size')}</dt>
32 37 <dd>${h.format_byte_size(c.file.size,binary=True)}</dd>
@@ -34,24 +39,35 b''
34 39 <dd>${c.file.mimetype}</dd>
35 40 <dt>${_('Options')}</dt>
36 41 <dd>${h.link_to(_('show source'),
37 h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))}
42 h.url('files_home',repo_name=c.repo_name,revision=c.cs.revision,f_path=c.f_path))}
38 43 / ${h.link_to(_('show as raw'),
39 h.url('files_raw_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))}
44 h.url('files_raw_home',repo_name=c.repo_name,revision=c.cs.revision,f_path=c.f_path))}
40 45 / ${h.link_to(_('download as raw'),
41 h.url('files_rawfile_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))}
46 h.url('files_rawfile_home',repo_name=c.repo_name,revision=c.cs.revision,f_path=c.f_path))}
47 </dd>
48 <dt>${_('History')}</dt>
49 <dd>
50 <div>
51 ${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='get')}
52 ${h.hidden('diff2',c.file.last_changeset.raw_id)}
53 ${h.select('diff1',c.file.last_changeset.raw_id,c.file_history)}
54 ${h.submit('diff','diff to revision',class_="ui-button ui-widget ui-state-default ui-corner-all")}
55 ${h.submit('show_rev','show at revision',class_="ui-button ui-widget ui-state-default ui-corner-all")}
56 ${h.end_form()}
57 </div>
42 58 </dd>
43 59 </dl>
44 60 <div id="body" class="codeblock">
45 61 <div class="code-header">
46 <div class="revision">${c.file.name}@r${c.file.last_changeset.revision}:${c.file.last_changeset.raw_id}</div>
47 <div class="commit">"${c.file_msg}"</div>
62 <div class="revision">${c.file.name}@r${c.file.last_changeset.revision}:${h.short_id(c.file.last_changeset.raw_id)}</div>
63 <div class="commit">"${c.file.message}"</div>
48 64 </div>
49 65 <div class="code-body">
50 66 % if c.file.size < c.file_size_limit:
51 67 ${h.pygmentize_annotation(c.file,linenos=True,anchorlinenos=True,lineanchors='S',cssclass="code-highlight")}
52 68 %else:
53 69 ${_('File is to big to display')} ${h.link_to(_('show as raw'),
54 h.url('files_raw_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))}
70 h.url('files_raw_home',repo_name=c.repo_name,revision=c.cs.revision,f_path=c.f_path))}
55 71 %endif
56 72 </div>
57 73 </div>
@@ -204,9 +204,9 b' E.onDOMReady(function(e){'
204 204 </div>
205 205
206 206 <div class="table">
207 <div id="commit_history" style="width:560px;height:300px;float:left"></div>
207 <div id="commit_history" style="width:460px;height:300px;float:left"></div>
208 208 <div style="clear: both;height: 10px"></div>
209 <div id="overview" style="width:560px;height:100px;float:left"></div>
209 <div id="overview" style="width:460px;height:100px;float:left"></div>
210 210
211 211 <div id="legend_data" style="clear:both;margin-top:10px;">
212 212 <div id="legend_container"></div>
General Comments 0
You need to be logged in to leave comments. Login now