Show More
@@ -1592,18 +1592,20 b' padding:0;' | |||||
1592 |
|
1592 | |||
1593 | div.browserblock .browser-header { |
|
1593 | div.browserblock .browser-header { | |
1594 | background:#FFF; |
|
1594 | background:#FFF; | |
1595 | padding:10px 0; |
|
1595 | padding:10px 0px 35px 0px; | |
1596 | float:left; |
|
|||
1597 | width: 100%; |
|
1596 | width: 100%; | |
1598 | } |
|
1597 | } | |
|
1598 | div.browserblock .browser-nav { | |||
|
1599 | float:left | |||
|
1600 | } | |||
1599 |
|
1601 | |||
1600 | div.browserblock .browser-branch { |
|
1602 | div.browserblock .browser-branch { | |
1601 | background:#FFF; |
|
1603 | padding:10px 0 0 0; | |
1602 | padding:20px 0 0 0; |
|
|||
1603 | float:left; |
|
1604 | float:left; | |
1604 | } |
|
1605 | } | |
1605 | div.browserblock .browser-branch label { |
|
1606 | div.browserblock .browser-branch label { | |
1606 |
color:#4A4A4A; |
|
1607 | color:#4A4A4A; | |
|
1608 | vertical-align:text-top; | |||
1607 | } |
|
1609 | } | |
1608 |
|
1610 | |||
1609 | div.browserblock .browser-header span { |
|
1611 | div.browserblock .browser-header span { |
@@ -6,35 +6,37 b'' | |||||
6 | %endif |
|
6 | %endif | |
7 | </%def> |
|
7 | </%def> | |
8 | <div id="body" class="browserblock"> |
|
8 | <div id="body" class="browserblock"> | |
9 |
|
|
9 | <div class="browser-header"> | |
10 | ${h.form(h.url.current())} |
|
10 | <div class="browser-nav"> | |
11 | <div class="info_box"> |
|
11 | ${h.form(h.url.current())} | |
12 | <span >${_('view')}@rev</span> |
|
12 | <div class="info_box"> | |
13 | <a href="${c.url_prev}" title="${_('previous revision')}">«</a> |
|
13 | <span >${_('view')}@rev</span> | |
14 | ${h.text('at_rev',value=c.changeset.revision,size=3)} |
|
14 | <a href="${c.url_prev}" title="${_('previous revision')}">«</a> | |
15 | <a href="${c.url_next}" title="${_('next revision')}">»</a> |
|
15 | ${h.text('at_rev',value=c.changeset.revision,size=3)} | |
16 | ${h.submit('view','view')} |
|
16 | <a href="${c.url_next}" title="${_('next revision')}">»</a> | |
17 | </div> |
|
17 | ${h.submit('view','view')} | |
18 | ${h.end_form()} |
|
18 | </div> | |
19 | </div> |
|
19 | ${h.end_form()} | |
20 | <div class="browser-branch"> |
|
20 | </div> | |
21 | ${h.checkbox('stay_at_branch',c.changeset.branch,c.changeset.branch==c.branch)} |
|
21 | <div class="browser-branch"> | |
22 | <label>${_('follow current branch')}</label> |
|
22 | ${h.checkbox('stay_at_branch',c.changeset.branch,c.changeset.branch==c.branch)} | |
23 | <script type="text/javascript"> |
|
23 | <label>${_('follow current branch')}</label> | |
24 | YUE.on('stay_at_branch','click',function(e){ |
|
24 | <script type="text/javascript"> | |
25 | if(e.target.checked){ |
|
25 | YUE.on('stay_at_branch','click',function(e){ | |
26 | var uri = "${h.url.current(branch='__BRANCH__')}" |
|
26 | if(e.target.checked){ | |
27 |
uri = |
|
27 | var uri = "${h.url.current(branch='__BRANCH__')}" | |
28 | window.location = uri; |
|
28 | uri = uri.replace('__BRANCH__',e.target.value); | |
29 | } |
|
29 | window.location = uri; | |
30 |
|
|
30 | } | |
31 | window.location = "${h.url.current()}"; |
|
31 | else{ | |
32 | } |
|
32 | window.location = "${h.url.current()}"; | |
33 |
|
33 | } | ||
34 |
|
|
34 | ||
35 | </script> |
|
35 | }) | |
|
36 | </script> | |||
|
37 | </div> | |||
36 | </div> |
|
38 | </div> | |
37 | <div style="clear:both"></div> |
|
39 | ||
38 | <div class="browser-body"> |
|
40 | <div class="browser-body"> | |
39 | <table class="code-browser"> |
|
41 | <table class="code-browser"> | |
40 | <thead> |
|
42 | <thead> |
General Comments 0
You need to be logged in to leave comments.
Login now