Indefero

Indefero Commit Details


Date:2011-06-01 19:04:52 (13 years 6 months ago)
Author:Thomas Keller
Branch:develop, feature.content-md5, feature.diff-whitespace, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, release-1.2, release-1.3
Commit:c0e26133bdc89384a1cb586ff5b9de299fb74d33
Parents: 592c2ff9ffc379b2fe7c1bd1e72335fb35fd58f0
Message:Keep the context area in the view if a view scrolls down several pages.

Changes:

File differences

NEWS.mdtext
66
77
88
9
910
1011
1112
- File download URLs now contain the file name rather than the upload id; old links still work though (issues 559 and 686)
- Display monotone file and directory attributes in the tree and file view
(needs a monotone with an interface version of 13.1 or newer)
- The context area is now kept in view when a page scrolls down several pages
## Bugfixes
src/IDF/templates/idf/base-full.html
7070
7171
7272
73
7473
7574
7675
<div id="ft">{block foot}{/block}</div>
</div>
{include 'idf/js-hotkeys.html'}
{include 'idf/list-filter.html'}
{block javascript}{/block}
{if $project}
<script type="text/javascript" charset="utf-8">{literal}
src/IDF/templates/idf/base-simple.html
4949
5050
5151
52
52
5353
5454
5555
</div>
</div>
</div>
<div class="yui-b context">{block context}{/block}</div>
<div class="yui-b context" id="context">{block context}{/block}</div>
</div>
<div id="ft">{block foot}{/block}</div>
</div>
src/IDF/templates/idf/base.html
6666
6767
6868
69
69
7070
7171
7272
......
8484
8585
8686
87
88
89
90
91
92
93
94
95
96
97
98
99
100
87101
88102
89103
</div>
</div>
</div>
<div class="yui-b context">{block context}{/block}</div>
<div class="yui-b context" id="context">{block context}{/block}</div>
</div>
<div id="ft">{block foot}{/block}</div>
</div>
else if (frag.length > 3 && frag.substring(0, 3) == '#ic') {
$(frag).addClass("issue-comment-focus");
}
var contextTop = $('div#context').position().top;
var contextFixEnabled = true;
$(window).scroll(function() {
if (!contextFixEnabled || $(window).scrollTop() < contextTop)
$('div#context').css('position', 'relative');
else
$('div#context').css('position', 'fixed');
});
$(window).resize(function() {
contextFixEnabled =
$('div#context').offset().top + $('div#context').height() <
$(window).height();
});
});
//]]>{/literal}
</script>{/if}
www/media/idf/css/style.css
8686
8787
8888
89
90
91
92
93
94
95
96
8997
9098
9199
......
928936
929937
930938
931
932
933
934
935
936
937
938
939939
940940
941941
div.context {
padding-left: 1em;
position: relative;
top: 0;
}
div.context h3 {
font-size: 13px;
font-weight: bold;
margin: 10px 0 5px;
}
/**
/**
* List expander for tag and branch view
*/
.context {}
.context h3 {
font-size: 13px;
font-weight: bold;
margin: 10px 0 5px;
}
.context > .expander {
position: relative;
overflow: hidden;

Archive Download the corresponding diff file

Page rendered in 0.09857s using 13 queries.