зеркало из https://github.com/mozilla/kitsune.git
Side tab navigation for messages. [bug 655812]
This commit is contained in:
Родитель
50082d6a7d
Коммит
a4c59f4ff5
|
@ -1,2 +1,7 @@
|
|||
{% extends "base.html" %}
|
||||
{% from "messages/includes/macros.html" import message_tabs %}
|
||||
{% set styles = ('messages',) %}
|
||||
|
||||
{% block side_top %}
|
||||
{{ message_tabs(active_tab) }}
|
||||
{% endblock %}
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
{% from "messages/includes/macros.html" import avatar_link, name_link %}
|
||||
{% set title = _('Messages') %}
|
||||
{% set crumbs = [(None, title)] %}
|
||||
{% set active_tab = 'inbox' %}
|
||||
|
||||
{% block content %}
|
||||
<section class="actions">
|
||||
|
|
|
@ -5,3 +5,19 @@
|
|||
{% macro name_link(user, name=None) -%}
|
||||
<a href="{{ profile_url(user) }}">{% if name %}{{ name }}{% else %}{{ display_name(user) }}{% endif %}</a>
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro message_tabs(active_tab) -%}
|
||||
<nav id="doc-tabs">
|
||||
<ul>
|
||||
<li{% if active_tab == 'inbox' %} class="active"{% endif %}>
|
||||
<a href="{{ url('messages.inbox') }}">{{ _('Messages') }}</a>
|
||||
</li>
|
||||
<li{% if active_tab == 'outbox' %} class="active"{% endif %}>
|
||||
<a href="{{ url('messages.outbox') }}">{{ _('Sent Messages') }}</a>
|
||||
</li>
|
||||
<li{% if active_tab == 'new' %} class="active"{% endif %}>
|
||||
<a href="{{ url('messages.new') }}">{{ _('New Message') }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
{%- endmacro %}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{% extends "messages/base.html" %}
|
||||
{% set title = _('New Message') %}
|
||||
{% set crumbs = [(url('messages.inbox'), _('Messages')), (None, title)] %}
|
||||
{% set active_tab = 'new' %}
|
||||
|
||||
{% block content %}
|
||||
<article id="new-message" class="main">
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
{% set title = _('Sent Messages') %}
|
||||
{% set crumbs = [(url('messages.inbox'), _('Messages')),
|
||||
(None, title)] %}
|
||||
{% set active_tab = 'outbox' %}
|
||||
|
||||
{% block content %}
|
||||
<article id="outbox" class="main message-list">
|
||||
|
|
Загрузка…
Ссылка в новой задаче