Conditions | 2 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | """ |
||
27 | def view_current_version_by_name(name): |
||
28 | """Show the current version of the snippet that is mounted with that |
||
29 | name. |
||
30 | """ |
||
31 | # Note: endpoint suffix != snippet name |
||
32 | version = mountpoint_service.find_current_snippet_version_for_mountpoint( |
||
33 | g.site_id, name |
||
34 | ) |
||
35 | |||
36 | if version is None: |
||
37 | abort(404) |
||
38 | |||
39 | return render_snippet_as_page(version) |
||
40 |