Revision 362dadaa snf-astakos-app/astakos/im/templates/im/projects/project_detail.html

b/snf-astakos-app/astakos/im/templates/im/projects/project_detail.html
3 3
{% load astakos_tags filters django_tables2 %}
4 4

  
5 5
{% block page.body %}
6
{% with object.chain as project %}
7 6
<div class="projects">
8 7
  <h2>
9 8
    <em>
10 9
      {% if owner_mode or admin_mode %}
11
        {% if project_view %}
12
           PROJECT {{ project.state_display|upper }}
13
          {% with project.last_pending_modification as last_pending %}
10
          PROJECT {{ object.state_display|upper }}
11
          {% with object.last_pending_modification as last_pending %}
14 12
          {% if last_pending != None %} -
15 13
             <a href="{% url astakos.im.views.project_app last_pending.pk %}">
16 14
               MODIFICATION PENDING</a>
......
22 20
             {% endif %}
23 21
          {% endif %}
24 22
          {% endwith %}
25
        {% else %}
26
          <!-- application view -->
27
           PROJECT {% if object.is_modification %} MODIFICATION {% endif %}
28
          {{ object.state_display|upper }} 
29
        {% endif %}
30 23

  
31 24
      {% else %}
32 25
        <!-- third user -->
33 26
        <!-- assert in project view -->
34
        {% if project.is_deactivated %}
35
        PROJECT {{ project.state_display|upper }} -
27
        {% if object.is_deactivated %}
28
        PROJECT {{ object.state_display|upper }} -
36 29
        {% endif %}
37 30
        {{ mem_display|upper }} 
38 31
      {% endif %}
39 32
    </em>
40 33

  
41 34
    <span>
42
      {% if not project_view %}
43
        <!-- owner mode only assumed -->
44
        {% if object.is_modification %}
45
          <span class="extratitle">MODIFICATION OF </span>
46
        {% endif %}
47
      {% endif %}
48 35
      {{ object.name|upper }} 
49 36
    </span>
50
    
51
    {% block project.actions %}
37
    {% block object.actions %}
52 38
    {% include "im/projects/_project_detail_actions.html" %}
53 39
    {% endblock %}
54 40
  </h2>
......
57 43
    <h3>PROJECT DETAILS</h3>
58 44
    <dl class="alt-style">
59 45
      <dt>Name</dt>
60
      <dd>{{ object.name }}&nbsp;</dd>
46
      <dd>{{ object.realname }}&nbsp;</dd>
61 47
      <dt>Homepage url</dt>
62 48
      <dd>
63 49
        {% if object.homepage %}
......
70 56
      <dd>{{ object.description }}&nbsp;</dd>
71 57

  
72 58
      {% if owner_mode %}
73
        <dt>Application date</dt>
74
        <dd>{{object.issue_date|date:"d/m/Y"}}&nbsp;</dd>
59
        <dt>Creation date</dt>
60
        <dd>{{object.creation_date|date:"d/m/Y"}}&nbsp;</dd>
75 61
      {% endif %}
76 62

  
77
      <dt>Start date</dt>
78
      <dd>{{object.start_date|date:"d/m/Y"}}&nbsp;</dd>
79 63
      <dt>End Date</dt>
80 64
      <dd>{{object.end_date|date:"d/m/Y"}}&nbsp;</dd>
81 65

  
82
      {% if owner_mode %}
83
        <dt>Comments</dt>
84
        <dd>{{ object.comments }}&nbsp;</dd>
85
      {% endif %}
86

  
87 66
      <dt>Owner</dt>
88 67
      <dd>
89 68
        {% if owner_mode %}
......
117 96
  <div class="full-dotted">
118 97

  
119 98
    <h3>
120
      {% if owner_mode and project_view %}
99
      {% if owner_mode %}
121 100
          {% if project.is_alive %}
122
           <a href="{% url project_members object.chain_id %}">MEMBERS </a>
101
           <a href="{% url project_members object.id %}">MEMBERS </a>
123 102
          {% else %}
124 103
          MEMBERS
125 104
          {% endif %}
......
145 124
      <dd>
146 125
        {{ object.member_leave_policy_display|title }}
147 126
      </dd>
148
       {% if owner_mode and project_view %}
149
          {% if project.is_alive %}
150
      <dt><a href="{% url project_approved_members object.chain_id %}" title="view approved members">Approved members</a></dt>
127
       {% if owner_mode %}
128
          {% if object.is_alive %}
129
      <dt><a href="{% url project_approved_members object.id %}" title="view approved members">Approved members</a></dt>
151 130
      <dd>{{ approved_members_count }}
152 131
        <span class="faint"> 
153 132
          {% if remaining_memberships_count != None %}
......
157 136
          {% else %}&nbsp;{% endif %} 
158 137
        </span>
159 138
      </dd>
160
      <dt><a href="{% url project_pending_members object.chain_id %}" title="view pending members">Members pending approval</a></dt>
139
      <dt><a href="{% url project_pending_members object.id %}" title="view pending members">Members pending approval</a></dt>
161 140
      <dd>{{ pending_members_count }}</dd>
162
        {% if not project.is_deactivated %}
141
        {% if not object.is_deactivated %}
163 142
    </dl>    
164 143
    {% include 'im/projects/addmembers_form.html' %}
165
           
166 144
            {% endif %}
167 145
          {% endif %}
168 146
       {% endif %}
......
175 153
    </p>
176 154
  </div>
177 155
</div>
178
{% endwith %}
179 156
{% endblock %}

Also available in: Unified diff