<commit_before>{% extends "mobile/base.html" %}

{% if user.is_authenticated() %}
{% if not profile %}
{% set profile = user.get_profile() %}
{% endif %}
{% set num_new_challenges = profile.new_challenge_count %}
{% set num_new_badges = profile.new_badge_count %}
{% set num_notifications = num_new_challenges + num_new_badges %}
{% endif %}

{% block content %}

	<div id="wrapper">
	    <div id="header">
	        {% if body_id not in ['home', 'myspark', 'user-share'] %}
			<div class="back" onclick="history.back()">
	        </div>
			{% endif %}
	        <h1>
	            {{ pagetitle }}
	        </h1>
	        {% block subtitle %}{% endblock %}
	    </div> <!-- end header -->

		<div id="content">
			{% block pagecontent %}{% endblock %}
		</div> <!-- end content -->
	
	</div> <!-- end wrapper -->

	{% if user.is_authenticated() and not hide_menu %}
	<div id="menu-wrapper" class="closed">
	    <div id="menu" class="closed">
	        <div id="menu-hr"></div>
	        <div id="menu-header" class="closed">
				{% if num_notifications %}
	            <div id="notifications">{{ num_notifications }}</div>
				{% endif %}
				{# L10n: Name of the mobile navigation menu #}
	            {{ _('Menu') }}
	        </div>
			<div id="menu-content">
		        <ul>
		            {% if not profile.boost1_completed or not profile.boost2_completed %}
		            <li><a href="{{ url('mobile.boost') }}">{{ _('Boost your Spark') }}</a></li>
		            {% endif %}
		            <li><a href="{{ url('mobile.stats') }}">{{ _('Stats') }}</a></li>
		            <li><a href="{{ url('mobile.challenges') }}">{{ _('Challenges') }}
							{% if num_new_challenges %}
							{# L10n: {n} is the number of recently completed challenges. #}
							<span>{{ ungettext('+{n} new','+{n} new', num_new_challenges, "new_challenges")|f(n=num_new_challenges) }}</span>
							{% endif %}
						</a>
					</li>
		            <li><a href="{{ url('mobile.badges') }}">{{ _('Badges') }}
							{% if num_new_badges %}
							{# L10n: {n} is the number of recently obtained badges. #}
							<span>{{ ungettext('+{n} new','+{n} new', num_new_badges, "new_badges")|f(n=num_new_badges) }}</span>
							{% endif %}
						</a>
					</li>
		            <li><a href="{{ url('mobile.about') }}">{{ _('About Mozilla') }}</a></li>
	        
		        </ul>
				<a id="logout">{{ _('Do you wanna sign out?') }}</a>
			</div><commit_msg>The mobile menu now includes a link to My Firefox Spark when the user has completed Boost your Spark<commit_after>{% extends "mobile/base.html" %}

{% if user.is_authenticated() %}
{% if not profile %}
{% set profile = user.get_profile() %}
{% endif %}
{% set num_new_challenges = profile.new_challenge_count %}
{% set num_new_badges = profile.new_badge_count %}
{% set num_notifications = num_new_challenges + num_new_badges %}
{% endif %}

{% block content %}

	<div id="wrapper">
	    <div id="header">
	        {% if body_id not in ['home', 'myspark', 'user-share'] %}
			<div class="back" onclick="history.back()">
	        </div>
			{% endif %}
	        <h1>
	            {{ pagetitle }}
	        </h1>
	        {% block subtitle %}{% endblock %}
	    </div> <!-- end header -->

		<div id="content">
			{% block pagecontent %}{% endblock %}
		</div> <!-- end content -->
	
	</div> <!-- end wrapper -->

	{% if user.is_authenticated() and not hide_menu %}
	<div id="menu-wrapper" class="closed">
	    <div id="menu" class="closed">
	        <div id="menu-hr"></div>
	        <div id="menu-header" class="closed">
				{% if num_notifications %}
	            <div id="notifications">{{ num_notifications }}</div>
				{% endif %}
				{# L10n: Name of the mobile navigation menu #}
	            {{ _('Menu') }}
	        </div>
			<div id="menu-content">
		        <ul>
		            {% if not profile.boost1_completed or not profile.boost2_completed %}
		            <li><a href="{{ url('mobile.boost') }}">{{ _('Boost your Spark') }}</a></li>
		            {% else %}
		            <li><a href="{{ url('mobile.home') }}">{{ _('My Firefox Spark') }}</a></li>
		            {% endif %}
		            <li><a href="{{ url('mobile.stats') }}">{{ _('Stats') }}</a></li>
		            <li><a href="{{ url('mobile.challenges') }}">{{ _('Challenges') }}
							{% if num_new_challenges %}
							{# L10n: {n} is the number of recently completed challenges. #}
							<span>{{ ungettext('+{n} new','+{n} new', num_new_challenges, "new_challenges")|f(n=num_new_challenges) }}</span>
							{% endif %}
						</a>
					</li>
		            <li><a href="{{ url('mobile.badges') }}">{{ _('Badges') }}
							{% if num_new_badges %}
							{# L10n: {n} is the number of recently obtained badges. #}
							<span>{{ ungettext('+{n} new','+{n} new', num_new_badges, "new_badges")|f(n=num_new_badges) }}</span>
							{% endif %}
						</a>
					</li>
		            <li><a href="{{ url('mobile.about') }}">{{ _('About Mozilla') }}</a></li>
	        
		        </ul>
				<a id="logout">{{ _('Do you wanna sign out?') }}</a>
			</div>
{'fraction_non_alphanumeric': 0.2151093439363817, 'fraction_numerical': 0.003976143141153081, 'mean_word_length': 2.491325468424705, 'pattern_counts': {'":': 0, '<': 109, '<?xml version=': 0, '>': 109, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2103630', 'n_tokens_mistral': 2072, 'n_tokens_neox': 1641, 'n_words': 389}