Skip to content
This repository was archived by the owner on May 20, 2018. It is now read-only.

Commit 84aeaed

Browse files
committed
Merge pull request #38 from levlaz/ui-fix-tag
Fixed Tags View
2 parents e163cd9 + 6dbfc3b commit 84aeaed

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

app/main/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def share(id):
141141
@login_required
142142
def tag(name):
143143
tag = Tag.query.filter_by(tag=name).first()
144-
return render_template('tag.html', notes=tag._get_notes(), tag=name)
144+
return render_template('app/tag.html', notes=tag._get_notes(), tag=name)
145145

146146
@main.route('/shutdown')
147147
def server_shutdown():

app/templates/app/app.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ <h1 class="top"> All Notes </h1>
1414
{% block scripts %}
1515
{{ super() }}
1616
<script src="{{ url_for('static', filename='js/libs/marked.js') }}"></script>
17-
<script src="{{ url_for('static', filename='js/braindump.js') }}"></script>
1817
{% endblock %}

app/templates/app/app_base.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,5 @@
7272
{% block scripts %}
7373
{{ super() }}
7474
{{ moment.include_moment() }}
75+
<script src="{{ url_for('static', filename='js/braindump.js') }}"></script>
7576
{% endblock %}

app/templates/app/tag.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{% extends 'app/app_base.html' %}
2+
3+
{% block title %} Braindump | Note {% endblock %}
4+
5+
{% block page_content %}
6+
<h1 class="top"> Notes tagged {{ tag }} </h1>
7+
{% include 'app/_notes.html' %}
8+
{% endblock %}

app/templates/tag.html

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)