view rhodecode/templates/files/file_diff.html @ 3527:87c97fcea029 beta

Adding the context bar too all pages related to a Repository. Deleted top menu items that are on the context bar already.
author Leonardo <leo@unity3d.com>
date Mon, 04 Mar 2013 12:15:34 +0100
parents 79818f546538
children 1f334a68d057
line wrap: on
line source

<%inherit file="/base/base.html"/>

<%def name="title()">
    ${_('%s File diff') % c.repo_name} - ${c.rhodecode_name}
</%def>

<%def name="breadcrumbs_links()">
    ${h.link_to(_(u'Home'),h.url('/'))}
    &raquo;
    ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))}
    &raquo;
    ${_('File diff')} r${c.changeset_1.revision}:${h.short_id(c.changeset_1.raw_id)} &rarr; r${c.changeset_2.revision}:${h.short_id(c.changeset_2.raw_id)}
</%def>

<%def name="page_nav()">
    ${self.menu('files')}
</%def>
<%def name="main()">
<div class="box">
    <!-- box / title -->
    <div class="title">
        ${self.breadcrumbs()}
    </div>
    <div>
    ## diff block
    <%namespace name="diff_block" file="/changeset/diff_block.html"/>
    ${diff_block.diff_block(c.changes)}
    </div>
</div>
<script>
YUE.onDOMReady(function(){

    YUE.on(YUQ('.diff-menu-activate'),'click',function(e){
        var act = e.currentTarget.nextElementSibling;

        if(YUD.hasClass(act,'active')){
            YUD.removeClass(act,'active');
            YUD.setStyle(act,'display','none');
        }else{
            YUD.addClass(act,'active');
            YUD.setStyle(act,'display','');
        }
    });

})
</script>
</%def>