Skip to content

Commit

Permalink
closing if
Browse files Browse the repository at this point in the history
  • Loading branch information
jdonis committed Aug 26, 2024
1 parent 2a8c25e commit 8feb930
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/web/templates/challenge/show/_other_actions.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<li class="usa-button-group__item">
<%= challenge_submissions_link(@conn, @challenge, @user, label: "View submissions", class: "usa-button") %>
</li>
<% end %>
<%= if Accounts.has_admin_access?(@user) or !(Challenges.is_archived?(@challenge) or Challenges.is_archived_new?(@challenge)) do %>
<li class="usa-button-group__item">
<%= link "Preview", to: Routes.public_preview_path(@conn, :index, challenge: @challenge.uuid), target: "_blank", class: "usa-button" %>
Expand Down

0 comments on commit 8feb930

Please sign in to comment.