summaryrefslogtreecommitdiff
path: root/project/templates/user/account.html
blob: c839817c551e96abedc26851486b4188335c5bc9 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{% extends "base.html" %}

{% block title %}My Profile{% endblock %}

{% block content %}
<h1>My Profile: {{ user.first_name }} {{user.last_name}}</h1>

<table class="scipycon-default">
    <tr>
        <td class="label">
            Username:
        </td>
        <td>
          {{ user.username }}
        </td>
    </tr>
    <tr>
        <td class="label">
            Name:
        </td>
        <td>
        {% if user.first_name %}
            <span>{{ user.get_full_name }}</span>
        {% else %}
        <span class="important">
          No name, please
          <a href="{% url scipycon_edit_profile params.scope %}">
            edit profile
          </a>.
        </span>
        {% endif %}
        </td>
        <td rowspan="4">
        <div class="picture">
          <img src="{{ photo }}" width="80" height="80" />
        </div>
        </td>
    </tr>
    <tr>
        <td class="label">
            Email:
        </td>
        <td>
            <a href="mailto:{{ user.email }}">{{ user.email }}</a>
        </td>
    </tr>
    <tr>
        <td class="label">
          Url:
        </td>
        <td>
            <a href="{{ profile.url }}" target="_blank">{{ profile.url }}</a>
        </td>
    </tr>
    <tr>
        <td class="label">
          About:
        </td>
        <td style="width: 40em">
          {{ profile.about }}
        </td>
    </tr>
</table>
{% if comment %}
<strong>{{ comment }}</strong>
{% endif %}

{% if registration %}
<div id="talks">
  <h2>Your Registration</h2>
<p>
  <a href="{% url scipycon_edit_registration params.scope registration.id %}"
    title="Edit">Edit Registration</a>
  </p>
</div>
{% endif %}
{% if talks %}
<div id="talks">
  <h2>Your Submitted Talks</h2>
  <table class="scipycon-default" border="1">
    <th>Title</th>
    <th>Duration</th>
    <th>Audience</th>
    <th>Tags</th>
    <th>&nbsp;</th>
{% for talk in talks %}
<tr>
<td>{{ talk.title }}</td>
<td>{{ talk.duration }}</td>
<td>{{ talk.audience }}</td>
<td>{{ talk.tags }}</td>
<td>
        {% if talk.approved %}
          <span>Accepted</span>
        {% else %}
          <a href="/edit-talk/{{ talk.id }}/" title="Edit">Edit</a>
        {% endif %}
</td>
</tr>
{% endfor %}
</table>
</div>
{% endif %}
{% endblock content %}