Changed where the result.add route redirects to; added some more links around the site for easier navigation
This commit is contained in:
parent
ca62be49b6
commit
005b31dbd7
@ -47,7 +47,9 @@ class ResultController extends Controller {
|
||||
$routeContext = RouteContext::fromRequest($request);
|
||||
$routeParser = $routeContext->getRouteParser();
|
||||
return $response
|
||||
->withHeader('Location', $routeParser->urlFor('result.list'))
|
||||
->withHeader('Location', $routeParser->urlFor('test.view', [
|
||||
'test_id' => $result->test_id
|
||||
]))
|
||||
->withStatus(302);
|
||||
}
|
||||
|
||||
|
@ -4,16 +4,25 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="row">
|
||||
<div class="row">
|
||||
<div class="twelve columns">
|
||||
<h1>Welcome to Colossus!</h1>
|
||||
<p>Using Colossus, you can easily organize your hardware benchmark results.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="row">
|
||||
<div class="six columns">
|
||||
<p><a href="{{ url_for('test.list') }}">View current tests</a></p>
|
||||
<p><a href="{{ url_for('test.add') }}">Add a new test</a></p>
|
||||
</div>
|
||||
|
||||
<div class="six columns">
|
||||
<p><a href="{{ url_for('result.list') }}">View saved results</a></p>
|
||||
<p><a href="{{ url_for('result.add') }}">Add a new result</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
@ -3,7 +3,7 @@
|
||||
{% block title %}List of Tests{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<p>Tests list...</p>
|
||||
<p><a href="{{ url_for('test.add') }}">Create new test</a></p>
|
||||
|
||||
{% if tests | length > 0 %}
|
||||
<table class="u-full-width">
|
||||
|
@ -15,6 +15,7 @@
|
||||
<div class="row">
|
||||
<div class="twelve columns">
|
||||
<h3>Test results:</h3>
|
||||
<p><a href="{{ url_for('result.add') }}">Add new result</a></p>
|
||||
|
||||
{% if test.results | length > 0 %}
|
||||
<table class="u-full-width">
|
||||
|
Loading…
Reference in New Issue
Block a user