summaryrefslogtreecommitdiffstats
path: root/templates/onthisdate.html
blob: 2f883238cac9ef117d8bb6190e10776bd38c0fad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!-- this is an INCLUDED template onthisdate.html-->

        {% if svxothers %}<u>Survex files</u> on this date:<br>
                <span style="font-size: 70%; ">
                {% for item in svxothers %}
                &nbsp;&nbsp;&nbsp;&nbsp;<a href="/survexfile/{{item.path}}.svx">{{item.path|safe}}</a> <br/>
                {% empty %}
                <em>None found for this date.</em><br>
                {% endfor %}
                </span>
        {% else %}
            <em>No survex files found for this date.</em><br>
        {% endif %}
        {% if wallets %}<u>Wallets</u> on this date:<br>
                <span style="font-size: 70%; ">
                {% for item in wallets %}
                    &nbsp;&nbsp;&nbsp;&nbsp;<a href="/survey_scans/{{item.walletname|urlencode}}/">{{item.walletname|safe}}</a>
                    {% if item.name %}
                        {{item.name|safe}}                        
                    {% endif %}{{item.get_fnames|truncatechars:80}}<br/>
                {% empty %}
                    <em>None found for this date.</em><br>
                {% endfor %}
                </span>
        {% else %}
            <em>No wallets files found for this date.</em><br>
        {% endif %}
         {% if trips %}<u>Logbook trips</u> on this date:<br>
                <span style="font-size: 70%; ">
                {% for item in trips %}
                {% if item.isLogbookEntry %}&nbsp;&nbsp;&nbsp;&nbsp;<a href="{{item.get_absolute_url}}">{{item.title|safe}}</a><br/>{% endif %}
                {% empty %}
                <em>None found for this date, but there should be..</em><br>
                {% endfor %}
                </span>
        {% else %}
            <em>Hmm...</em><br>
        {% endif %}