Skip to content

Commit

Permalink
Merge pull request ofri#42 from itayperl/master
Browse files Browse the repository at this point in the history
Feature #3624
  • Loading branch information
habeanf committed Dec 29, 2012
2 parents f0dfc5e + 304b45a commit 8b4c29d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions mks/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ def get_context_data (self, **kwargs):
'bills_tags':bills_tags,
'agendas':agendas,
'presence':presence,
'current_knesset_start_date': date(2009, 2, 24),
'factional_discipline':factional_discipline,
'votes_against_own_bills':votes_against_own_bills,
'general_discipline':general_discipline,
Expand Down
18 changes: 18 additions & 0 deletions templates/mks/member_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,24 @@ <h3> {% trans "Personal Information" %}</h3>
<td>{{ object.residence_economy }}</td>
</tr>
{% endif %}
{% if object.start_date != current_knesset_start_date %}
<tr>
<td>{% trans "entrance to knesset" %}</td>
<td>{{ object.start_date }}</td>
</tr>
{% endif %}
{% if object.end_date != None %}
<tr>
<td>{% trans "retirement from knesset" %}</td>
<td>{{ object.end_date }}</td>
</tr>
{% endif %}
{% if object.start_date != current_knesset_start_date or object.end_date != None %}
<tr>
<td>{% trans "time in knesset" %}</td>
<td>{{ object.start_date|timesince:object.end_date }}</td>
</tr>
{% endif %}
</table>
</td>
</tr>
Expand Down

0 comments on commit 8b4c29d

Please sign in to comment.