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