Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,7 @@ <h4>{{ _('Pick a way to get involved') }}</h4>
</a>
</li>
</ul>
<div class="sign-up">
<h3>{{ _('Sign up as a volunteer') }}</h3>
<a class="btn btn-submit" href="{{ url('users.auth_contributor') }}">
{{ _('Sign me up') }}
</a>
</div>

{% include 'landings/mobile/includes/register_contributor.html' %}

{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,7 @@ <h4>{{ _('Pick a way to get involved') }}</h4>
</a>
</li>
</ul>
<div class="sign-up">
<h3>{{ _('Sign up as a volunteer') }}</h3>
<a class="btn btn-submit" href="{{ url('users.auth_contributor') }}">
{{ _('Sign me up') }}
</a>
</div>

{% include 'landings/mobile/includes/register_contributor.html' %}

{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,7 @@ <h4>{{ _('Pick a way to get involved') }}</h4>
</a>
</li>
</ul>
<div class="sign-up">
<h3>{{ _('Sign up as a volunteer') }}</h3>
<a class="btn btn-submit" href="{{ url('users.auth_contributor') }}">
{{ _('Sign me up') }}
</a>
</div>

{% include 'landings/mobile/includes/register_contributor.html' %}

{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,7 @@ <h4>{{ _('Pick a way to get involved') }}</h4>
</a>
</li>
</ul>
<div class="sign-up">
<h3>{{ _('Sign up as a volunteer') }}</h3>
<a class="btn btn-submit" href="{{ url('users.auth_contributor') }}">
{{ _('Sign me up') }}
</a>
</div>

{% include 'landings/mobile/includes/register_contributor.html' %}

{% endblock %}
19 changes: 3 additions & 16 deletions kitsune/landings/templates/landings/mobile/get-involved.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,20 +67,7 @@ <h4>{{ _('Pick a way to get involved') }}</h4>
</a>
</li>
</ul>
{% if not user.is_authenticated() or not user.groups.filter(name='Registered as contributor') %}
<div class="sign-up">
<h3>{{ _('Sign up as a volunteer') }}</h3>
{% if user.is_authenticated() %}
<form method="post" action="{{ url('users.make_contributor') }}">
<input type="hidden" name="return_to" value="{{ url('landings.get_involved') }}">
{{ csrf() }}
<button class="btn btn-submit">{{ _('Sign me up') }}</button>
</form>
{% else %}
<a class="btn btn-submit" href="{{ url('users.auth_contributor') }}">
{{ _('Sign me up') }}
</a>
{% endif %}
</div>
{% endif %}

{% include 'landings/mobile/includes/register_contributor.html' %}

{% endblock %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{% if not user.is_authenticated() or not user.groups.filter(name='Registered as contributor') %}
<div class="sign-up">
<h3>{{ _('Sign up as a volunteer') }}</h3>
{% if user.is_authenticated() %}
<form method="post" action="{{ url('users.make_contributor') }}">
<input type="hidden" name="return_to" value="{{ url('landings.get_involved') }}">
{{ csrf() }}
<button class="btn btn-submit">{{ _('Sign me up') }}</button>
</form>
{% else %}
{% if waffle.flag('browserid') %}
<form id="gi-browserid-form" action="{{ url('users.browserid_verify') }}" method="post">
<input type="hidden" name="contributor" value="1">
{{ browserid_form }}
</form>
<a class="btn btn-submit browserid-login" data-form="gi-browserid-form" data-next="{{ request.get_full_path() }}" href="#">{{ _('Sign me up') }}</a>
{% else %}
<a class="btn btn-submit" href="{{ url('users.auth_contributor') }}">
{{ _('Sign me up') }}
</a>
{% endif %}
{% endif %}
</div>
{% endif %}