Show More
@@ -2,7 +2,7 b'' | |||||
2 | Hg app, a web based mercurial repository managment based on pylons |
|
2 | Hg app, a web based mercurial repository managment based on pylons | |
3 | """ |
|
3 | """ | |
4 |
|
4 | |||
5 |
VERSION = (0, 7, |
|
5 | VERSION = (0, 7, 5, 'beta') | |
6 |
|
6 | |||
7 | __version__ = '.'.join((str(each) for each in VERSION[:4])) |
|
7 | __version__ = '.'.join((str(each) for each in VERSION[:4])) | |
8 |
|
8 |
@@ -173,13 +173,13 b' ul.page-nav {' | |||||
173 | } |
|
173 | } | |
174 |
|
174 | |||
175 | ul.page-nav li { |
|
175 | ul.page-nav li { | |
176 |
margin: 0 |
|
176 | margin: 0 4px 0 0; | |
177 | float: left; |
|
177 | float: left; | |
178 | height: 24px; |
|
178 | height: 24px; | |
179 | font-size: 1.1em; |
|
179 | font-size: 1.1em; | |
180 | line-height: 24px; |
|
180 | line-height: 24px; | |
181 | text-align: center; |
|
181 | text-align: center; | |
182 |
background: # |
|
182 | background: #556CB5; | |
183 | } |
|
183 | } | |
184 |
|
184 | |||
185 | ul.page-nav li.current { |
|
185 | ul.page-nav li.current { | |
@@ -187,21 +187,24 b' ul.page-nav li.current {' | |||||
187 | padding-right: 5px; |
|
187 | padding-right: 5px; | |
188 | padding-left: 5px; |
|
188 | padding-left: 5px; | |
189 | } |
|
189 | } | |
190 |
|
190 | ul.page-nav li.current a { | ||
|
191 | color: #556CB5; | |||
|
192 | } | |||
191 | ul.page-nav li a { |
|
193 | ul.page-nav li a { | |
192 | height: 24px; |
|
194 | height: 24px; | |
193 |
color: # |
|
195 | color: #FFF; | |
194 | padding-right: 5px; |
|
196 | padding-right: 5px; | |
195 | padding-left: 5px; |
|
197 | padding-left: 5px; | |
196 | display: block; |
|
198 | display: block; | |
197 | text-decoration: none; |
|
199 | text-decoration: none; | |
|
200 | font-weight: bold; | |||
198 | } |
|
201 | } | |
199 | ul.page-nav li.logout a { |
|
202 | ul.page-nav li.logout a { | |
200 |
color: |
|
203 | color: #FDAC9D; | |
201 | } |
|
204 | } | |
202 | ul.page-nav li a:hover { |
|
205 | ul.page-nav li a:hover { | |
203 | color: #333; |
|
|||
204 | background: #FFF; |
|
206 | background: #FFF; | |
|
207 | color: #556CB5; | |||
205 | } |
|
208 | } | |
206 |
|
209 | |||
207 | ul.submenu { |
|
210 | ul.submenu { | |
@@ -523,21 +526,12 b' p.files {' | |||||
523 |
|
526 | |||
524 | } |
|
527 | } | |
525 | #changeset_content .container .left .message{ |
|
528 | #changeset_content .container .left .message{ | |
526 |
|
529 | font-style: italic; | ||
|
530 | color: #556CB5; | |||
527 | } |
|
531 | } | |
528 |
|
532 | |||
529 |
|
||||
530 |
|
||||
531 |
|
||||
532 |
|
||||
533 |
|
||||
534 |
|
||||
535 |
|
||||
536 |
|
||||
537 | .cs_files{ |
|
533 | .cs_files{ | |
538 | border: 1px solid #CCCCCC; |
|
|||
539 | width: 60%; |
|
534 | width: 60%; | |
540 |
|
||||
541 | } |
|
535 | } | |
542 |
|
536 | |||
543 | .cs_files .cs_added{ |
|
537 | .cs_files .cs_added{ |
@@ -65,6 +65,7 b' def is_current(selected):' | |||||
65 | else{ |
|
65 | else{ | |
66 | YAHOO.util.Dom.setStyle('switch_repos','display',''); |
|
66 | YAHOO.util.Dom.setStyle('switch_repos','display',''); | |
67 | YAHOO.util.Dom.setStyle('repo_switcher','background','#FFFFFF'); |
|
67 | YAHOO.util.Dom.setStyle('repo_switcher','background','#FFFFFF'); | |
|
68 | YAHOO.util.Dom.setStyle('repo_switcher','color','#556CB5'); | |||
68 | YAHOO.util.Dom.addClass('repo_switcher','selected'); |
|
69 | YAHOO.util.Dom.addClass('repo_switcher','selected'); | |
69 | } |
|
70 | } | |
70 | }); |
|
71 | }); | |
@@ -75,7 +76,7 b' def is_current(selected):' | |||||
75 | window.location = url; |
|
76 | window.location = url; | |
76 | }) |
|
77 | }) | |
77 | }); |
|
78 | }); | |
78 | </script> |
|
79 | </script> | |
79 | <ul class="page-nav"> |
|
80 | <ul class="page-nav"> | |
80 | <li> |
|
81 | <li> | |
81 | <a id="repo_switcher" title="${_('Switch repository')}" href="#">↓</a> |
|
82 | <a id="repo_switcher" title="${_('Switch repository')}" href="#">↓</a> |
@@ -54,7 +54,7 b' from pylons_app.lib import filters' | |||||
54 | </div> |
|
54 | </div> | |
55 | </div> |
|
55 | </div> | |
56 |
|
56 | |||
57 |
<div style="clear: |
|
57 | <div style="clear:both;height:10px"></div> | |
58 | <div class="cs_files"> |
|
58 | <div class="cs_files"> | |
59 | %for change,filenode,diff in c.changes: |
|
59 | %for change,filenode,diff in c.changes: | |
60 | <div class="cs_${change}">${h.link_to(filenode.path,h.url.current(anchor='CHANGE-%s'%filenode.path))}</div> |
|
60 | <div class="cs_${change}">${h.link_to(filenode.path,h.url.current(anchor='CHANGE-%s'%filenode.path))}</div> | |
@@ -67,21 +67,25 b' from pylons_app.lib import filters' | |||||
67 | <div id="body" class="diffblock"> |
|
67 | <div id="body" class="diffblock"> | |
68 | <div id="${'CHANGE-%s'%filenode.path}" class="code-header"> |
|
68 | <div id="${'CHANGE-%s'%filenode.path}" class="code-header"> | |
69 | <div> |
|
69 | <div> | |
70 | <span> |
|
70 | <span> | |
71 | ${h.link_to_if(change!='removed',filenode.path,h.url('files_home',repo_name=c.repo_name, |
|
71 | ${h.link_to_if(change!='removed',filenode.path,h.url('files_home',repo_name=c.repo_name, | |
72 | revision=filenode.changeset.raw_id,f_path=filenode.path))} |
|
72 | revision=filenode.changeset.raw_id,f_path=filenode.path))} | |
73 | </span> |
|
73 | </span> | |
74 |
|
74 | |||
75 | ##» <span style="font-size:77%">${h.link_to(_('diff'), |
|
75 | ##» <span style="font-size:77%">${h.link_to(_('diff'), | |
76 | ##h.url.current(diff2=c.diff2,diff1=c.diff1,diff='diff'))}</span> |
|
76 | ##h.url.current(diff2=c.diff2,diff1=c.diff1,diff='diff'))}</span> | |
77 | ##» <span style="font-size:77%">${h.link_to(_('raw diff'), |
|
77 | ##» <span style="font-size:77%">${h.link_to(_('raw diff'), | |
78 | ##h.url.current(diff2=c.diff2,diff1=c.diff1.split(':')[-1],diff='raw'))}</span> |
|
78 | ##h.url.current(diff2=c.diff2,diff1=c.diff1.split(':')[-1],diff='raw'))}</span> | |
79 | ##» <span style="font-size:77%">${h.link_to(_('download diff'), |
|
79 | ##» <span style="font-size:77%">${h.link_to(_('download diff'), | |
80 | ##h.url.current(diff2=c.diff2,diff1=c.diff1,diff='download'))}</span> |
|
80 | ##h.url.current(diff2=c.diff2,diff1=c.diff1,diff='download'))}</span> | |
81 | </div> |
|
81 | </div> | |
82 | </div> |
|
82 | </div> | |
83 | <div class="code-body"> |
|
83 | <div class="code-body"> | |
84 |
|
|
84 | %if diff: | |
|
85 | ${diff|n} | |||
|
86 | %else: | |||
|
87 | ${_('No changes in this file')} | |||
|
88 | %endif | |||
85 | </div> |
|
89 | </div> | |
86 | </div> |
|
90 | </div> | |
87 | %endif |
|
91 | %endif |
@@ -39,16 +39,16 b' from pylons_app.lib import filters' | |||||
39 | <td>${h.link(repo['name'],h.url('summary_home',repo_name=repo['name']))}</td> |
|
39 | <td>${h.link(repo['name'],h.url('summary_home',repo_name=repo['name']))}</td> | |
40 | <td>${repo['description']}</td> |
|
40 | <td>${repo['description']}</td> | |
41 | <td>${repo['last_change']|n,filters.age}</td> |
|
41 | <td>${repo['last_change']|n,filters.age}</td> | |
42 | <td>r${repo['rev']}:<a href="/${repo['name']}/rev/${repo['tip']}/">${repo['tip']}</a></td> |
|
42 | <td>${h.link_to('r%s:%s' % (repo['rev'],repo['tip']),h.url('changeset_home',repo_name=repo['name'],revision=repo['tip']))}</td> | |
43 | <td>${repo['contact']}</td> |
|
43 | <td title="${repo['contact']}">${repo['contact']|n,filters.person}</td> | |
44 |
|
44 | |||
45 | %for archive in repo['repo_archives']: |
|
45 | ##%for archive in repo['repo_archives']: | |
46 | <td class="indexlinks"> |
|
46 | ##<td class="indexlinks"> | |
47 | ${h.link_to(archive['type'], |
|
47 | ## ${h.link_to(archive['type'], | |
48 | h.url('files_archive_home',repo_name=repo['name'], |
|
48 | ## h.url('files_archive_home',repo_name=repo['name'], | |
49 | revision='tip',fileformat=archive['extension']),class_="archive_logo" )} |
|
49 | ## revision='tip',fileformat=archive['extension']),class_="archive_logo" )} | |
50 | </td> |
|
50 | ##</td> | |
51 | %endfor |
|
51 | ##%endfor | |
52 |
|
52 | |||
53 | <td> |
|
53 | <td> | |
54 | ${h.link_to(_('RSS'),h.url('rss_feed_home',repo_name=repo['name']),class_='rss_logo')} |
|
54 | ${h.link_to(_('RSS'),h.url('rss_feed_home',repo_name=repo['name']),class_='rss_logo')} |
@@ -41,7 +41,7 b' E.onDOMReady(function(e){' | |||||
41 | <dt>${_('contact')}</dt> |
|
41 | <dt>${_('contact')}</dt> | |
42 | <dd>${c.repo_info.contact}</dd> |
|
42 | <dd>${c.repo_info.contact}</dd> | |
43 | <dt>${_('last change')}</dt> |
|
43 | <dt>${_('last change')}</dt> | |
44 |
<dd>${c.repo_info.last_change|n,filters. |
|
44 | <dd>${c.repo_info.last_change|n,filters.age} - ${c.repo_info.last_change|n,filters.rfc822date}</dd> | |
45 | <dt>${_('clone url')}</dt> |
|
45 | <dt>${_('clone url')}</dt> | |
46 | <dd><input type="text" id="clone_url" readonly="readonly" value="hg clone ${c.clone_repo_url}" size="40"/></dd> |
|
46 | <dd><input type="text" id="clone_url" readonly="readonly" value="hg clone ${c.clone_repo_url}" size="40"/></dd> | |
47 | <dt>${_('download')}</dt> |
|
47 | <dt>${_('download')}</dt> | |
@@ -55,6 +55,11 b' E.onDOMReady(function(e){' | |||||
55 | revision='tip',fileformat=archive['extension']),class_="archive_logo")} |
|
55 | revision='tip',fileformat=archive['extension']),class_="archive_logo")} | |
56 | %endfor |
|
56 | %endfor | |
57 | </dd> |
|
57 | </dd> | |
|
58 | <dt>${_('feeds')}</dt> | |||
|
59 | <dd> | |||
|
60 | ${h.link_to(_('RSS'),h.url('rss_feed_home',repo_name=c.repo_info.name),class_='rss_logo')} | |||
|
61 | ${h.link_to(_('Atom'),h.url('atom_feed_home',repo_name=c.repo_info.name),class_='atom_logo')} | |||
|
62 | </dd> | |||
58 | </dl> |
|
63 | </dl> | |
59 |
|
64 | |||
60 | <h2>${h.link_to(_('Changes'),h.url('changelog_home',repo_name=c.repo_name))}</h2> |
|
65 | <h2>${h.link_to(_('Changes'),h.url('changelog_home',repo_name=c.repo_name))}</h2> |
General Comments 0
You need to be logged in to leave comments.
Login now