Removed references to old result routes; fixed typos in some models

This commit is contained in:
Gregory Ballantine 2024-06-03 10:45:33 -04:00
parent 9b575f8717
commit ca940932a7
5 changed files with 7 additions and 13 deletions

View File

@ -17,7 +17,7 @@ class Benchmark extends Model {
}
public function results() {
return $this->hasMany(Result::class):
return $this->hasMany(Result::class);
}
}

View File

@ -16,7 +16,7 @@ class Component extends Model {
}
public function results() {
return $this->hasMany(Result::class):
return $this->hasMany(Result::class);
}
}

View File

@ -18,7 +18,7 @@ class Result extends Model {
}
public function component() {
return $this->belongsTo(Component::class):
return $this->belongsTo(Component::class);
}
public function benchmark() {

View File

@ -14,15 +14,10 @@
<hr>
<div class="row">
<div class="six columns">
<div class="twelve 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>
{% endblock %}

View File

@ -3,10 +3,9 @@
<ul class="nav-left">
<li class="site-logo">Colossus</li>
<li><a href="{{ url_for('dashboard') }}">Dashboard</a></li>
<li><a href="/benchmark">Benchmarks</a></li>
<li><a href="/component">Components</a></li>
<li><a href="{{ url_for('benchmark.list') }}">Benchmarks</a></li>
<li><a href="{{ url_for('component.list') }}">Components</a></li>
<li><a href="{{ url_for('test.list') }}">Test</a></li>
<li><a href="/result">Results</a></li>
</ul>
</nav>