Move images and data directories. Also svn version code from r20919.
svn: r20990
This commit is contained in:
53
data/templates/view_notes.html
Normal file
53
data/templates/view_notes.html
Normal file
@@ -0,0 +1,53 @@
|
||||
{% extends "view_page.html" %}
|
||||
{% load my_tags %}
|
||||
|
||||
{% block table_data %}
|
||||
|
||||
<table cellspacing="0" class="infolist surname" width="95%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>ID</th>
|
||||
<th>Note Type</th>
|
||||
<th>Text</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for note in page.object_list %}
|
||||
<tr class="{% cycle odd,even %}">
|
||||
<td>{{ forloop.counter|row_count:page }}</td>
|
||||
<td><a href="/{{view}}/{{note.handle|escape}}{{args}}" class="noThumb browsecell"
|
||||
{% if note.tags.all %}
|
||||
style="color: {{note.tags.all.0.color|format_color}};"
|
||||
{% endif %}
|
||||
>
|
||||
<span class="grampsid">[{{note.gramps_id}}]</span></a>
|
||||
{% if user.is_authenticated or note.public %}
|
||||
<td><a href="/{{view}}/{{note.handle|escape}}{{args}}" class="browsecell"
|
||||
{% if note.tags.all %}
|
||||
style="color: {{note.tags.all.0.color|format_color}};"
|
||||
{% endif %}
|
||||
>{{note.note_type|escape|nbsp}}</a>
|
||||
<td><a href="/{{view}}/{{note.handle|escape}}{{args}}" class="browsecell"
|
||||
{% if note.tags.all %}
|
||||
style="color: {{note.tags.all.0.color|format_color}};"
|
||||
{% endif %}
|
||||
>{{note.text|preview:70|nbsp}}</a>
|
||||
{% else %}
|
||||
<td>[Private]</td>
|
||||
<td>[Private]</td>
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block admin_functions %}
|
||||
{% if user.is_superuser %}
|
||||
<div style="background-color: lightgray; padding: 2px 0px 0px 2px">
|
||||
{% make_button "+Add Note" "/note/add" args %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
Reference in New Issue
Block a user