Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix bug with tutorial hints
  • Loading branch information
rrrene committed Jun 19, 2016
1 parent b5d34da commit dc9935a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions web/templates/component/tutorial-verify-email.html.eex
@@ -1,6 +1,8 @@
<%= unless @current_user.email_verified_at do %>
<div class="alert alert--tutorial">
You will be able to <strong>receive notifications about updates via email</strong>.<br>
Verify your email by clicking the link we sent you (<a href="/settings">check email settings</a>).
</div>
<%= if logged_in?(@conn) do %>
<%= if !current_user(@conn).email_verified_at do %>
<div class="alert alert--tutorial">
You will be able to <strong>receive notifications about updates via email</strong>.<br>
Verify your email by clicking the link we sent you (<a href="/settings">check email settings</a>).
</div>
<% end %>
<% end %>
2 changes: 1 addition & 1 deletion web/templates/project/index.html.eex
@@ -1,4 +1,4 @@
<%= render HexFaktor.ComponentView, "tutorial-verify-email.html", current_user: @current_user %>
<%= render HexFaktor.ComponentView, "tutorial-verify-email.html", conn: @conn %>

<%= render HexFaktor.ComponentView, "user-title.html", user: @current_user, include_last_sync?: false %>

Expand Down
2 changes: 1 addition & 1 deletion web/templates/project/show.html.eex
@@ -1,4 +1,4 @@
<%= render HexFaktor.ComponentView, "tutorial-verify-email.html", current_user: @current_user %>
<%= render HexFaktor.ComponentView, "tutorial-verify-email.html", conn: @conn %>

<%= render HexFaktor.ComponentView, "project-title.html", conn: @conn, project: @project, branch: @branch %>

Expand Down

0 comments on commit dc9935a

Please sign in to comment.