Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Minor fixes in templates #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions june/templates/admin/dashboard.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{% extends "layout.html" %}
{% from "snippet/macro.html" import nav, pagination %}

{% block subtitle %}{{ _('Dashboard') }}{% endblock %}

{% from "snippet/macro.html" import nav, pagination %}

{% block content %}
<div class="panel panel-default">
<div class="panel-heading">
Expand Down
6 changes: 3 additions & 3 deletions june/templates/email/find.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{% extends "email/layout.html" %}

{% block content %}
<h3>{{ _('Welcome,') }} {{user}}</h3>
<h3>{{ _('Welcome,') }} {{ user }}</h3>

<p>
{% trans -%}
You have submitted a find password request, follow the link below to find your password. If you didn't make the request, ignore this email.
{%- endtrans %}
</p>
<p><a class="btn" href="{{link}}">{{_('Find Password')}}</a></p>
<p><a class="btn" href="{{ link }}">{{ _('Find Password') }}</a></p>
<br />
<br />
{% trans -%}
You can copy and paste the link to your browser address bar:
{%- endtrans %}
<br />
<p>{{link}}</p>
<p>{{ link }}</p>
<br />
<br />
<em>{% trans %}This link will expire in 24 hours.{% endtrans %}</em>
Expand Down
10 changes: 5 additions & 5 deletions june/templates/email/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<!-- Facebook sharing information tags -->
<meta property="og:title" content="{{config.SITE_TITLE}}" />
<meta property="og:title" content="{{ config.SITE_TITLE }}" />

<title>{{config.SITE_TITLE}}</title>
<title>{{ config.SITE_TITLE }}</title>
<style type="text/css">
/* Client-specific Styles */
#outlook a{padding:0;} /* Force Outlook to provide a "view in browser" button. */
Expand Down Expand Up @@ -164,10 +164,10 @@
<tr mc:repeatable>
<td valign="top">
<div mc:edit="postcard_heading00">
<h1 id="brand" class="h1">{{config.SITE_TITLE}}</h1>
<h1 id="brand" class="h1">{{ config.SITE_TITLE }}</h1>
</div>
<div mc:edit="std_content00">
<blockquote class="blockquote">{{config.SITE_DESCRIPTION}}</blockquote>
<blockquote class="blockquote">{{ config.SITE_DESCRIPTION }}</blockquote>
{% block content %}
<strong>Getting started:</strong> Customize your template by clicking on the style editor tabs up above. Set your fonts, colors, and styles. After setting your styling is all done you can click here in this area, delete the text, and start adding your own awesome content!
<br />
Expand Down Expand Up @@ -200,7 +200,7 @@ <h1 id="brand" class="h1">{{config.SITE_TITLE}}</h1>
<tr>
<td valign="top" width="350">
<div mc:edit="std_footer">
<em>Copyright &copy; {{config.SITE_TIME.year}} {{config.SITE_TITLE}}, All rights reserved.</em>
<em>Copyright &copy; {{ config.SITE_TIME.year }} {{ config.SITE_TITLE }}, All rights reserved.</em>
</div>
</td>
</tr>
Expand Down
6 changes: 3 additions & 3 deletions june/templates/email/signup.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{% extends "email/layout.html" %}

{% block content %}
<p>Hello <strong>{{user.name}}</strong>:</p>
<p>Hello <strong>{{ user.name }}</strong>:</p>
<p>
{% trans -%}
Thanks for the registration. Follow the link below to activate your account.
{%- endtrans %}
</p>
<a href="{{link}}">{{_('Activate your account')}}.</a>
<a href="{{ link }}">{{ _('Activate your account') }}.</a>
<br />
<br />
{% trans -%}
You can copy and paste the link to your browser address bar:
{%- endtrans %}
<br />
<p>{{link}}</p>
<p>{{ link }}</p>
<br />
<br />
<em>{% trans %}This link will expire in 24 hours.{% endtrans %}</em>
Expand Down
2 changes: 1 addition & 1 deletion june/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "layout.html" %}
{% from "snippet/macro.html" import topic_columns %}

{% block title %}{{ config.SITE_TITLE }}{% endblock %}
{% from "snippet/macro.html" import topic_columns %}

{% block content %}
{% if blogs %}
Expand Down
3 changes: 1 addition & 2 deletions june/templates/node/nodes.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{% extends "layout.html" %}
{% from "snippet/macro.html" import navigation %}

{% block subtitle %}{{ _('Nodes') }}{% endblock %}

{% from "snippet/macro.html" import navigation %}

{% block nav %}
{{ navigation('node') }}
{% endblock %}
Expand Down
3 changes: 1 addition & 2 deletions june/templates/node/view.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{% extends "layout.html" %}
{% from "snippet/macro.html" import navigation, topic_columns, pagination %}

{% block subtitle %}{{ node }}{% endblock %}

{% from "snippet/macro.html" import navigation, topic_columns, pagination %}

{% block nav %}
{{ navigation('node') }}
{% endblock %}
Expand Down
4 changes: 2 additions & 2 deletions june/templates/snippet/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<div class="container clearfix">
<div class="text-muted pull-left">
{% if config.SITE_ABOUT %}
<a href="{{config.SITE_ABOUT}}">{{ _('About') }}</a>
<a href="{{ config.SITE_ABOUT }}">{{ _('About') }}</a>
{% endif %}
<span class="sep">•</span>
<a href="https://github.com/pythoncn/june">{{ _('Open Source') }}</a>
<span class="sep">•</span>
<a href="/humans.txt">{{ _('Authors') }}</a>
</div>
<p class="muted credit pull-right">
&copy;<time datetime="{{config.SITE_TIME}}">{{config.SITE_TIME.year}}</time> {{config.SITE_TITLE}}. All rights reserved.
&copy;<time datetime="{{ config.SITE_TIME }}">{{ config.SITE_TIME.year }}</time> {{ config.SITE_TITLE }}. All rights reserved.
</p>
</div>
</footer>
2 changes: 1 addition & 1 deletion june/templates/snippet/google-analytics.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% if config.SITE_ANALYTICS %}
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '{{config.SITE_ANALYTICS}}']);
_gaq.push(['_setAccount', '{{ config.SITE_ANALYTICS }}']);
_gaq.push(['_trackPageview']);
_gaq.push(['_trackPageLoadTime']);
{% if g.user %}
Expand Down
3 changes: 1 addition & 2 deletions june/templates/topic/view.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "layout.html" %}
{% from "snippet/macro.html" import navigation, pagination, form_field %}

{% block subtitle %}{{ topic }}{% endblock %}
{% from "snippet/macro.html" import navigation, pagination, form_field %}

{% block nav %}
{{ navigation('topic') }}
Expand Down Expand Up @@ -112,7 +112,6 @@ <h1 class="panel-title entry-title">{{ topic.title }}</h1>
</div>
{% endblock %}


{% block sidebar %}
<div class="panel panel-default">
<div class="panel-heading">
Expand Down
35 changes: 17 additions & 18 deletions june/templates/user/city.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
{% extends "layout.html" %}

{% block subtitle %}{{city}}{% endblock %}

{% from "snippet/macro.html" import navigation, pagination %}

{% block subtitle %}{{ city }}{% endblock %}

{% block nav %}
{{ navigation('user') }}
{{ navigation('user') }}
{% endblock %}

{% block content %}
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{{ city }}</h3>
</div>
<div class="panel-body">
{% for item in paginator.items %}
<a class="avatar" href="{{ url_for('user.view', username=item.username) }}" title="{{ item }}">
<img src="{{ item.avatar(36) }}" alt="{{ item }}"/>
</a>
{% endfor %}
</div>
<div class="panel-footer">
{{ paginator.total }} {{ _('members in') }} {{ city }}
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{{ city }}</h3>
</div>
<div class="panel-body">
{% for item in paginator.items %}
<a class="avatar" href="{{ url_for('user.view', username=item.username) }}" title="{{ item }}">
<img src="{{ item.avatar(36) }}" alt="{{ item }}"/>
</a>
{% endfor %}
</div>
<div class="panel-footer">
{{ paginator.total }} {{ _('members in') }} {{ city }}
</div>
</div>
</div>
{% endblock %}
4 changes: 1 addition & 3 deletions june/templates/user/topics.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
{% extends "layout.html" %}
{% from "snippet/macro.html" import navigation, topic_columns, pagination %}

{% block subtitle %}{{ user }}{% endblock %}

{% from "snippet/macro.html" import navigation, topic_columns, pagination %}

{% block nav %}
{{ navigation('user') }}
{% endblock %}


{% block content %}
<div class="panel panel-default">
<div class="panel-heading">
Expand Down
35 changes: 17 additions & 18 deletions june/templates/user/users.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
{% extends "layout.html" %}

{% block subtitle %}{{_('Users')}}{% endblock %}

{% from "snippet/macro.html" import navigation %}

{% block subtitle %}{{ _('Users') }}{% endblock %}

{% block nav %}
{{ navigation('user') }}
{{ navigation('user') }}
{% endblock %}

{% block content %}
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{{_('Active Members')}}</h3>
</div>
<div class="panel-body">
{% for item in paginator.items %}
<a class="avatar" href="{{ url_for('user.view', username=item.username) }}" title="{{ item }}">
<img src="{{ item.avatar(36) }}" alt="{{ item }}"/>
</a>
{% endfor %}
</div>
<div class="panel-footer">
{{ paginator.total }} {{ _('members joined') }} {{ config.SITE_TITLE }}
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{{ _('Active Members') }}</h3>
</div>
<div class="panel-body">
{% for item in paginator.items %}
<a class="avatar" href="{{ url_for('user.view', username=item.username) }}" title="{{ item }}">
<img src="{{ item.avatar(36) }}" alt="{{ item }}"/>
</a>
{% endfor %}
</div>
<div class="panel-footer">
{{ paginator.total }} {{ _('members joined') }} {{ config.SITE_TITLE }}
</div>
</div>
</div>
{% endblock %}
3 changes: 1 addition & 2 deletions june/templates/user/view.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{% extends "layout.html" %}
{% from "snippet/macro.html" import navigation, topic_columns %}

{% block subtitle %}{{ user }}{% endblock %}

{% from "snippet/macro.html" import navigation, topic_columns %}

{% block nav %}
{{ navigation('user') }}
{% endblock %}
Expand Down