Skip to content

Commit

Permalink
[frontend] route coprs_ns.copr_fork is also for groups
Browse files Browse the repository at this point in the history
  • Loading branch information
FrostyX committed Mar 3, 2016
1 parent b2112ab commit c9d6395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/coprs_frontend/coprs/templates/_helpers.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@
{{ url_for(view, username=copr.owner.name, coprname=copr.name, **kwargs) }}
{% else %}
{# Only the listed views have merged functions for regular and group projects. Once all views have it, @TODO remove the workaround #}
{% if view in ["coprs_ns.copr_add_package", "coprs_ns.copr_new_package", "coprs_ns.copr_rebuild_package", "coprs_ns.copr_packages", "coprs_ns.copr_package", "coprs_ns.copr_edit_package"] %}
{% if view in ["coprs_ns.copr_add_package", "coprs_ns.copr_new_package", "coprs_ns.copr_rebuild_package", "coprs_ns.copr_packages", "coprs_ns.copr_package", "coprs_ns.copr_edit_package", "coprs_ns.copr_fork"] %}
{% set group_view = view %}
{% else %}
{% set group_view = view.split(".")[0] + ".group_" + view.split(".")[-1] %}
Expand Down

0 comments on commit c9d6395

Please sign in to comment.