38:cf936f5403ff
Anton Shestakov <av6@dwimlabs.net>, Fri, 17 Apr 2020 23:22:25 +0800
notfound: don't try to render breadcrumbs if repo is not found

previous change 29:272a87ebf7c1

templates/kit/graph.tmpl

Permissions: -rw-r--r--

Other formats: Feeds:
{header}
<title>Graph at {symrev|escape} · {repo|escape}</title>
<link rel="alternate" type="application/atom+xml" href="{url|urlescape}atom-log" title="Atom feed for {repo|escape}">
<link rel="alternate" type="application/rss+xml" href="{url|urlescape}rss-log" title="RSS feed for {repo|escape}">
</head>
<body>
{navbar}
<div class="uk-container uk-container-center uk-margin-large-bottom">
<div class="uk-tab-center uk-margin-top">
<ul class="uk-tab">
<li><a href="{url|urlescape}summary{sessionvars%urlparameter}">Summary</a></li>
<li><a href="{url|urlescape}shortlog/{symrev}{sessionvars%urlparameter}">Shortlog</a></li>
<li><a href="{url|urlescape}log/{symrev}{sessionvars%urlparameter}">Changelog</a></li>
<li class="uk-active"><a href="{url|urlescape}graph/{symrev}{sessionvars%urlparameter}">Graph</a></li>
<li><a href="{url|urlescape}branches{sessionvars%urlparameter}">Branches</a></li>
<li><a href="{url|urlescape}tags{sessionvars%urlparameter}">Tags</a></li>
<li><a href="{url|urlescape}bookmarks{sessionvars%urlparameter}">Bookmarks</a></li>
<li><a href="{url|urlescape}file/{symrev}{sessionvars%urlparameter}">Files</a></li>
</ul>
</div>
<div class="uk-text-right uk-margin-top">
<span class="uk-margin-left">Other formats:</span>
<div class="uk-button-group">
<a class="uk-button uk-button-small" href="{url|urlescape}json-graph">JSON</a>
<a class="uk-button uk-button-small" href="{url|urlescape}raw-graph">Raw</a>
</div>
<span class="uk-margin-left">Feeds:</span>
<div class="uk-button-group">
<a class="uk-button uk-button-small" href="{url|urlescape}atom-log">Atom</a>
<a class="uk-button uk-button-small" href="{url|urlescape}rss-log">RSS</a>
</div>
</div>
<noscript>The revision graph only works with JavaScript-enabled browsers.</noscript>
<ul class="uk-pagination">
<li><a href="{url|urlescape}graph/{symrev}{lessvars%urlparameter}">less</a></li>
<li><a href="{url|urlescape}graph/{symrev}{morevars%urlparameter}">more</a></li>
{changenav%navgraph}
</ul>
<div class="uk-position-relative" data-scroll-target>
<canvas id="graph"></canvas>
<ul id="graphnodes" class="uk-list">{nodes%graphentry}</ul>
</div>
<ul class="uk-pagination">
<li><a href="{url|urlescape}graph/{symrev}{lessvars%urlparameter}">less</a></li>
<li><a href="{url|urlescape}graph/{symrev}{morevars%urlparameter}">more</a></li>
{changenav%navgraph}
</ul>
</div>
<script>
var data = {jsdata|json};
var graph = new Graph();
graph.scale({bg_height});
graph.render(data);
</script>
<script type="text/javascript">
ajaxScrollInit(
'{url|urlescape}graph/%next%{graphvars%urlparameter}',
'{nextentry%"{node}"}', <!-- NEXTHASH
function (htmlText) \{
var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/);
return m ? m[1] : null;
},
'[data-scroll-target]',
'<div class="%class%" style="text-align: center;">%text%</div>',
'graph'
);
</script>
{footer}