<%- if @not_found || @different_user %> <%if @not_found%>

<%= t "unsubscribe.not_found_description" %>

<%- else %>

<%= t("unsubscribe.different_user_description").html_safe %>

<%= form_tag(session_path(id: current_user.username_lower), method: :delete) do %> <%= hidden_field_tag(:return_url, @return_url) %> <%= submit_tag t('unsubscribe.log_out'), class: 'btn btn-danger' %> <%- end%> <%- end %> <%- else %>

<%= t 'unsubscribe.title'%>


<%= form_tag(email_perform_unsubscribe_path(key: params[:key])) do %> <%if @topic %> <% if @watching_topic %>

<% else %>

<% end %> <% if @watched_count %>

<% end %> <% end %> <% if @user.user_option.mailing_list_mode && !SiteSetting.disable_mailing_list_mode %>

<% end %> <% if !@topic %> <% unless SiteSetting.disable_digest_emails %>

<% end %> <% end %>


<%= submit_tag t('unsubscribe.title'), class: 'btn btn-danger' %> <%- end %> <%- end %>