/* Style the breadcrumb */
.breadcrumb { display: inline-block; background-color: transparent; }
-.breadcrumb li:first-child { padding-right: 10px; }
/* Styles for the help information */
.get-help { color: #CCCCCC; }
}
});
-
- $(".breadcrumb li:first a").click(function(e){
- e.preventDefault();
- /* By default this link goes to the project configuration page. However
- * if we have some builds we go there instead of the default href
- */
- libtoaster.getProjectInfo(libtoaster.ctx.projectPageUrl, function(prjInfo){
- if (prjInfo.builds && prjInfo.builds.length > 0) {
- window.location.replace(libtoaster.ctx.projectBuildsUrl);
- } else {
- window.location.replace(libtoaster.ctx.projectPageUrl);
- }
- });
- });
-
function addRemoveDep(depLayerId, add, doneCb) {
var data = { layer_version_id : ctx.layerVersion.id };
if (add)
<!-- Breadcrumbs -->
<div class="section">
<ul class="breadcrumb" id="breadcrumb">
- <li class="muted">{{build.project.name}}:</li>
+ <li><a href="{% url 'project' build.project.id %}">{{build.project.name}}</a></li>
<li><a href="{% url 'projectbuilds' build.project.id %}">Builds</a></li>
<li><a href="{%url 'builddashboard' build.pk%}">{{build.get_sorted_target_list.0.target}} {%if build.target_set.all.count > 1%}(+{{build.target_set.all.count|add:"-1"}}){%endif%} {{build.machine}} ({{build.completed_on|date:"d/m/y H:i"}})</a></li>
{% block localbreadcrumb %}{% endblock %}
$( function () {
$('#breadcrumb > li').append('<span class="divider">→</span>');
$('#breadcrumb > li:last').addClass("active");
- $('#breadcrumb > li:last > span, #breadcrumb > li:first > span').remove();
+ $('#breadcrumb > li:last > span').remove();
});
</script>
</div> <!--section-->
<!-- Breadcrumbs -->
<div class="section">
<ul class="breadcrumb" id="breadcrumb">
- <li class="muted">{{build.project.name}}:</li>
+ <li><a href="{% url 'project' build.project.id %}">{{build.project.name}}</a></li>
<li><a href="{% url 'projectbuilds' build.project.id %}">Builds</a></li>
<li>
{% block parentbreadcrumb %}
$( function () {
$('#breadcrumb > li').append('<span class="divider">→</span>');
$('#breadcrumb > li:last').addClass("active");
- $('#breadcrumb > li:last > span, #breadcrumb > li:first > span').remove();
+ $('#breadcrumb > li:last > span').remove();
});
</script>
</div>
<div class="section">
<ul class="breadcrumb">
- <li class="muted">{{project.name}}:</li>
<li>
- <a href="{% url 'project' project.id %}">Configuration</a>
+ <a href="{% url 'project' project.id %}">{{project.name}}</a>
<span class="divider">→</span>
</li>
<li><a href="{% url 'projectlayers' project.id %}">Compatible layers</a>
$(document).ready(function (){
var ctx = {
- projectBuildsUrl : "{% url 'projectbuilds' project.id %}",
xhrUpdateLayerUrl : "{% url 'xhr_updatelayer' %}",
layerVersion : {
name : "{{layerversion.layer.name}}",
<div class="section">
<ul class="breadcrumb">
- <li class="muted">
- {{project.name}}
- </li>
<li>
- <a href="{% url 'project' project.id %}">Configuration</a>
+ <a href="{% url 'project' project.id %}">{{project.name}}</a>
<span class="divider">→</span>
</li>
<li>