11{% for note in notes %}
2- {% if request.query_string == '' and loop.index == 1 %}
3- < div class ="tab-pane active " id ="{{ note.id }} ">
4- {% elif request.args.get('active_note')|int == note.id %}
5- < div class ="tab-pane active " id ="{{ note.id }} ">
6- {% else %}
7- < div class ="tab-pane " id ="{{ note.id }} ">
8- {% endif %}
2+ {% if request.query_string == '' and loop.index == 1 %}
3+ < div class ="tab-pane active " id ="{{ note.id }} ">
4+ {% elif request.args.get('active_note')|int == note.id %}
5+ < div class ="tab-pane active " id ="{{ note.id }} ">
6+ {% else %}
7+ < div class ="tab-pane " id ="{{ note.id }} ">
8+ {% endif %}
99
1010 < h1 > {{ note.title }} </ h1 >
1111
@@ -16,27 +16,26 @@ <h1> {{ note.title }} </h1>
1616 </ div >
1717
1818 < div class ="note-actions ">
19- {% if not note.is_deleted %}
20- {% if note.is_favorite %}
21- < a href ="{{ url_for('.favorite', id=note.id) }} "> < span class ="favorite actions glyphicon glyphicon-star " aria-hidden ="true " data-toggle ="tooltip " data-placement ="bottom " data-original-title ="Unmark as favorite " > </ a > </ span >
22- {% else %}
23- < a href ="{{ url_for('.favorite', id=note.id) }} "> < span class ="actions glyphicon glyphicon-star " aria-hidden ="true " data-toggle ="tooltip " data-placement ="bottom " data-original-title ="Mark as favorite "> </ a > </ span >
24- {% endif %}
25- < a href ="{{ url_for('.share', id=note.id) }} "> < span class ="actions glyphicon glyphicon-share " aria-hidden ="true " data-toggle ="tooltip " data-placement ="bottom " data-original-title ="Share "> </ a > </ span >
26- < a href ="{{ url_for('.edit', id=note.id) }} "> < span class ="actions glyphicon glyphicon-pencil " aria-hidden ="true " data-toggle ="tooltip " data-placement ="bottom " data-original-title ="Edit "> </ a > </ span >
27- < a href ="{{ url_for('.delete', id=note.id) }} "> < span class ="actions glyphicon glyphicon-remove " aria-hidden ="true " data-toggle ="tooltip " data-placement ="bottom " data-original-title ="Delete "> </ a > </ span >
28- {% else %}
19+ {% if not note.is_deleted %}
20+ {% if note.is_favorite %}
21+ < a href ="{{ url_for('.favorite', id=note.id) }} "> < i class ="fa fa-star "> </ i > </ a >
22+ {% else %}
23+ < a href ="{{ url_for('.favorite', id=note.id) }} "> < i class ="fa fa-star-o "> </ i > </ a >
24+ {% endif %}
25+ < a href ="{{ url_for('.share', id=note.id) }} "> < i class ="fa fa-share "> </ i > </ a >
26+ < a href ="{{ url_for('.edit', id=note.id) }} "> < i class ="fa fa-pencil-square-o "> </ i > </ a >
27+ < a href ="{{ url_for('.archive', id=note.id) }} "> < i class ="fa fa-archive "> </ i > </ a >
28+ < a href ="{{ url_for('.delete', id=note.id) }} "> < i class ="fa fa-trash "> </ i > </ a >
29+ {% else %}
2930 < a href ="{{ url_for('.restore', id=note.id) }} "> < span class ="good actions glyphicon glyphicon-check " aria-hidden ="true " data-toggle ="tooltip " data-placement ="bottom " data-original-title ="Restore "> </ a > </ span >
3031 < a href ="{{ url_for('.delete_forever', id=note.id) }} "> < span class ="bad actions glyphicon glyphicon-remove " aria-hidden ="true " data-toggle ="tooltip " data-placement ="bottom " data-original-title ="Delete Forever "> </ a > </ span >
31- {% endif %}
32+ {% endif %}
3233 </ div >
3334
3435 < div class ="note-notebook ">
3536 < a class ="label label-notebook " href ="{{ url_for('.notebook', id=note.notebook_id) }} "> {{ note.get_notebook(note.notebook_id).title | truncate(20) }} Notebook </ a >
3637 </ div >
3738
38-
39-
4039 < div class ="note-tags ">
4140 < p >
4241 {% if current_user == note.author %}
0 commit comments