forked from mozilla/fireplace
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
transition between settings pages and marketplace pages
- Loading branch information
Showing
7 changed files
with
171 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{% macro act_tray(mobile, is_settings) %} | ||
<div class="act-tray{% if mobile %} mobile{% endif%}{% if is_settings %} slide-out{% endif %}"> | ||
<a href="{{ url('settings') }}" class="header-button icon settings" title="{{ _('Settings') }}"></a> | ||
<div class="account-links only-logged-in"> | ||
<ul> | ||
<li> | ||
<a href="{{ url('settings') }}"> | ||
<b>{{ user.get_setting('email') }}</b> | ||
{{ _('Edit Account Settings') }}</a> | ||
</li> | ||
<li><a href="{{ url('purchases') }}">{{ _('My Apps') }}</a></li> | ||
{% if user.get_permission('developer') %} | ||
<li><a href="/developers/submissions">{{ _('My Submissions') }}</a></li> | ||
{% endif %} | ||
<li><a class="submit-feedback" href="#">{{ _('Feedback') }}</a></li> | ||
<li><a href="#" class="logout">{{ _('Sign Out') }}</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,27 @@ | ||
{% include "_macros/act_tray.html" %} | ||
|
||
{% set is_settings = z.win.attr('location').pathname.indexOf('/settings') != -1 %} | ||
|
||
<!-- Actions drop-down (desktop) or settings toggle (mobile). --> | ||
<div class="act-tray"> | ||
<a href="{{ url('settings') }}" class="header-button icon settings" title="{{ _('Settings') }}"></a> | ||
<div class="account-links only-logged-in"> | ||
<ul> | ||
<li> | ||
<a href="{{ url('settings') }}"> | ||
<b>{{ user.get_setting('email') }}</b> | ||
{{ _('Edit Account Settings') }}</a> | ||
</li> | ||
<li><a href="{{ url('purchases') }}">{{ _('My Apps') }}</a></li> | ||
{% if user.get_permission('developer') %} | ||
<li><a href="/developers/submissions">{{ _('My Submissions') }}</a></li> | ||
{% endif %} | ||
<li><a class="submit-feedback" href="#">{{ _('Feedback') }}</a></li> | ||
<li><a href="#" class="logout">{{ _('Sign Out') }}</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
<a href="#" class="header-button persona">{{ _('Sign In') }}</a> | ||
{{ act_tray(true, is_settings) }} | ||
|
||
<!-- Navigation tabs (New, Popular, Categories, etc). --> | ||
<ul class="navbar home" data-tab="home"> | ||
<!-- Navigation tabs (Home, New, Popular, Categories, Collections). --> | ||
<ul class="navbar marketplace home{% if is_settings %} slide-out{% endif %}" data-tab="home"> | ||
<li data-tab="home" class="active"><a>{{ _('Home') }}</a></li> | ||
<li data-tab="new"><a>{{ _('New') }}</a></li> | ||
<li data-tab="popular"><a>{{ _('Popular') }}</a></li> | ||
<li data-tab="categories"><a>{{ _('Categories') }}</a></li> | ||
<li data-tab="collections"><a>{{ _('Collections') }}</a></li> | ||
</ul> | ||
|
||
<!-- Settings tabs (My Account, My Apps, Help, Feedback). --> | ||
<ul class="navbar settings account{% if is_settings %} slide-in {% endif %}" data-tab="account"> | ||
<li data-tab="account" class="active"><a>{{ _('My Account') }}</a></li> | ||
<li data-tab="apps"><a>{{ _('My Apps') }}</a></li> | ||
<li data-tab="help"><a>{{ _('Help') }}</a></li> | ||
<li data-tab="feedback"><a>{{ _('Feedback') }}</a></li> | ||
</ul> | ||
|
||
<div class="mkt-tray{% if is_settings %} slide-in{% endif %}"> | ||
<a class="header-button icon back-to-marketplace" title="{{ _('Back to Marketplace') }}"></a> | ||
</div> |