refactor: added nice urls for sketches.

- Sketches will be available at `/sketches/<sketch-id>`
This commit is contained in:
Anand Chitipothu
2021-04-06 18:36:07 +05:30
parent 06f7698e8f
commit a3788a0f39
4 changed files with 29 additions and 14 deletions

View File

@@ -21,13 +21,13 @@
<div class="col mb-4">
<div class="card sketch-card" style="width: 200px;">
<div class="card-img-top">
<a href="/sketches/{{sketch.name}}">
<a href="/sketches/{{sketch.sketch_id}}">
{{ sketch.to_svg() }}
</a>
</div>
<div class="card-footer">
<div class="sketch-title">
<a href="sketches/{{sketch.name}}">{{sketch.title}}</a>
<a href="sketches/{{sketch.sketch_id}}">{{sketch.title}}</a>
</div>
<div class="sketch-author">
by {{sketch.get_owner_name()}}