Files
@ d162de13caec
Branch filter:
Location: kallithea/rhodecode/templates/journal/public_journal.html - annotation
d162de13caec
1.2 KiB
text/html
memory optimizations, call diffs only when needed ie. after checking for binary, and cutoff limit.
reduces memory consumption a lot on binary files ! Additionally checking for binary before the size gives little more performance as well
reduces memory consumption a lot on binary files ! Additionally checking for binary before the size gives little more performance as well
3fe3285868d1 3fe3285868d1 3fe3285868d1 3fe3285868d1 3fe3285868d1 3fe3285868d1 3fe3285868d1 3fe3285868d1 3fe3285868d1 3fe3285868d1 3fe3285868d1 3fe3285868d1 3fe3285868d1 3fe3285868d1 3fe3285868d1 3fe3285868d1 3fe3285868d1 51076a2a2b64 51076a2a2b64 51076a2a2b64 51076a2a2b64 51076a2a2b64 51076a2a2b64 51076a2a2b64 51076a2a2b64 51076a2a2b64 51076a2a2b64 3fe3285868d1 3fe3285868d1 3fe3285868d1 3fe3285868d1 3fe3285868d1 3fe3285868d1 3fe3285868d1 3fe3285868d1 3fe3285868d1 3fe3285868d1 3fe3285868d1 3fe3285868d1 3fe3285868d1 3fe3285868d1 | ## -*- coding: utf-8 -*-
<%inherit file="/base/base.html"/>
<%def name="title()">
${_('Journal')} - ${c.rhodecode_name}
</%def>
<%def name="breadcrumbs()">
${c.rhodecode_name}
</%def>
<%def name="page_nav()">
${self.menu('home')}
</%def>
<%def name="main()">
<div class="box">
<!-- box / title -->
<div class="title">
<h5>${_('Public Journal')}</h5>
<ul class="links">
<li>
<span>${h.link_to(_('RSS'),h.url('public_journal_rss'),class_='rss_icon')}</span>
</li>
<li>
<span>${h.link_to(_('Atom'),h.url('public_journal_atom'),class_='atom_icon')}</span>
</li>
</ul>
</div>
<script type="text/javascript">
function show_more_event(){
YUE.on(YUD.getElementsByClassName('show_more'),'click',function(e){
var el = e.target;
YUD.setStyle(YUD.get(el.id.substring(1)),'display','');
YUD.setStyle(el.parentNode,'display','none');
});
}
</script>
<div id="journal">${c.journal_data}</div>
</div>
</%def>
|