mirror of
https://github.com/zulip/zulip.git
synced 2026-06-24 21:08:25 +08:00
For legacy reasons, this template wanted each tab's content as a one-key dictionary, instead of a string. Each tab already has a tuple to allow for fields like title, so this wasn't really giving us any long term flexibility; it was just crufting up the calling code. (imported from commit 2a316107ec223a83efa8735f4810a6fa43107541)
50 lines
858 B
HTML
50 lines
858 B
HTML
{% extends "zerver/base.html" %}
|
|
|
|
{% load compressed %}
|
|
{% load minified_js %}
|
|
|
|
{# User Activity. #}
|
|
|
|
{% block title %}
|
|
<title>{{ title }}</title>
|
|
{% endblock %}
|
|
|
|
|
|
{% block customhead %}
|
|
{{ block.super }}
|
|
{% minified_js 'activity' %}
|
|
{% compressed_css 'activity' %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
{% if not is_home %}
|
|
<a class="show-all" href="/activity">Home</a>
|
|
<br />
|
|
{% endif %}
|
|
|
|
<h4>{{ title }}</h4>
|
|
|
|
|
|
<ul class="nav nav-tabs">
|
|
{% for name, activity in data %}
|
|
<li {% if forloop.first %} class="active" {% endif %}>
|
|
<a href="#{{ name|slugify }}" data-toggle="tab">{{ name }}</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
|
|
<div class="tab-content">
|
|
|
|
{% for name, activity in data %}
|
|
|
|
<div class="tab-pane {% if forloop.first %} active {% endif %}" id="{{ name|slugify }}">
|
|
{{ activity }}
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|