Permalink
Browse files

[Bug 972269] Add calls to action to auth page.

  • Loading branch information...
mythmon committed Feb 25, 2014
1 parent 269d2ee commit a65bcbbd19166064e323447cd7fa8998a9e3a279
Showing with 54 additions and 2 deletions.
  1. +21 −0 kitsune/sumo/static/less/users.less
  2. +33 −2 kitsune/users/templates/users/auth.html
@@ -3,8 +3,13 @@
article {
background: #fff;
+ margin-top: 20px;
padding: 30px;
+ &:first-child {
+ margin-top: 0;
+ }
+
h1 {
margin-top: 0;
padding-top: 0;
@@ -459,3 +464,19 @@ article {
padding: 10px;
}
}
+
+.get-involved-icon {
+ background: url('../img/get-involved-icons.png') no-repeat scroll -15px 0px transparent ;
+ background-size: 109px 436px;
+ float: right;
+ height: 59px;
+ width: 79px;
+
+ &.questions {
+ background-position: -15px -134px;
+ }
+
+ &.localize {
+ background-position: -15px -352px;
+ }
+}
@@ -16,14 +16,14 @@ <h1>{{ _('You must be signed in to continue') }}</h1>
</article>
</div>
{% else %}
- <div class="{% if contributor %}grid_6{% else %}grid_12{% endif %}">
+ <div class="grid_6">
<article id="login" class="main">
<h1>{{ _('Sign In') }}</h1>
{{ render_login(login_form, csrf=csrf(), next_url=next_url) }}
</article>
</div>
{% if contributor %}
- {# Only show registration form to users coming from the Get Involved pages. #}
+ {# Only show registration form to users coming from the Get Involved pages. #}
<div class="grid_6">
<article id="register" class="main">
<h1>{{ _('Register to be a Contributor') }}</h1>
@@ -32,6 +32,37 @@ <h1>{{ _('Register to be a Contributor') }}</h1>
{{ render_register(register_form, csrf=csrf(), action=action, contributor=contributor) }}
</article>
</div>
+ {% else %}
+ <div class="grid_6">
+ <article class="main">
+ <p>
+ <div class="get-involved-icon questions"></div>
+ {% trans %}
+ Having trouble with Firefox and want some help? Our support forums
+ are a great place to ask a question.
+ {% endtrans %}
+ </p>
+ <p>
+ <a href="{{ url('questions.aaq_step1') }}" class="btn">
+ {{ _('Ask a question') }}
+ </a>
+ </p>
+ </article>
+ <article class="main">
+ <p>
+ <div class="get-involved-icon localize"></div>
+ {% trans %}
+ Mozilla Support is a community of enthusiastic volunteers
+ and employees trying to support our users around the globe.
+ {% endtrans %}
+ </p>
+ <p>
+ <a href="{{ url('landings.get_involved') }}" class="btn">
+ {{ _('See what you can do to help') }}
+ </a>
+ </p>
+ </article>
+ </div>
{% endif %}
{% endif %}
{% endblock %}

0 comments on commit a65bcbb

Please sign in to comment.