forked from lix-project/hydra
After editing a project/jobset, redirect back to the config tab
This commit is contained in:
parent
68a03bc674
commit
a5436be2ce
|
@ -145,7 +145,7 @@ sub submit : Chained('jobset') PathPart Args(0) {
|
|||
});
|
||||
|
||||
$c->res->redirect($c->uri_for($self->action_for("index"),
|
||||
[$c->stash->{project}->name, $c->stash->{jobset}->name]));
|
||||
[$c->stash->{project}->name, $c->stash->{jobset}->name]) . "#tabs-configuration");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ sub submit : Chained('project') PathPart Args(0) {
|
|||
updateProject($c, $c->stash->{project});
|
||||
});
|
||||
|
||||
$c->res->redirect($c->uri_for($self->action_for("view"), [$c->stash->{project}->name]));
|
||||
$c->res->redirect($c->uri_for($self->action_for("view"), [$c->stash->{project}->name]) . "#tabs-configuration");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
[% END %]
|
||||
<li><a href="#tabs-status" data-toggle="tab">Job status</a></li>
|
||||
<li><a href="#tabs-jobs" data-toggle="tab">Jobs</a></li>
|
||||
<li><a href="#tabs-setup" data-toggle="tab">Configuration</a></li>
|
||||
<li><a href="#tabs-configuration" data-toggle="tab">Configuration</a></li>
|
||||
</ul>
|
||||
|
||||
<div id="generic-tabs" class="tab-content">
|
||||
|
@ -100,7 +100,7 @@
|
|||
</div>
|
||||
[% END %]
|
||||
|
||||
<div id="tabs-setup" class="tab-pane">
|
||||
<div id="tabs-configuration" class="tab-pane">
|
||||
|
||||
<a class="btn pull-right" href="[% c.uri_for('/jobset' project.name jobset.name "edit") %]"><i class="icon-edit"></i> Edit</a>
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#tabs-project" data-toggle="tab">Jobsets</a></li>
|
||||
<li><a href="#tabs-settings" data-toggle="tab">Configuration</a></li>
|
||||
<li><a href="#tabs-configuration" data-toggle="tab">Configuration</a></li>
|
||||
<li><a href="#tabs-releases" data-toggle="tab">Releases</a></li>
|
||||
<li><a href="#tabs-views" data-toggle="tab">Views</a></li>
|
||||
</ul>
|
||||
|
@ -77,7 +77,7 @@
|
|||
|
||||
</div>
|
||||
|
||||
<div id="tabs-settings" class="tab-pane">
|
||||
<div id="tabs-configuration" class="tab-pane">
|
||||
<a class="btn pull-right" href="[% c.uri_for('/project' project.name "edit") %]"><i class="icon-edit"></i> Edit</a>
|
||||
<table class="info-table">
|
||||
<tr>
|
||||
|
|
Loading…
Reference in a new issue