Changeset 68c93e8
- Timestamp:
- Jul 22, 2012, 9:52:37 PM (13 years ago)
- Branches:
- master, space-access, stable, stage
- Children:
- 0229bd5
- Parents:
- 549c9e9
- git-author:
- Alex Dehnert <adehnert@…> (07/22/12 21:52:37)
- git-committer:
- Alex Dehnert <adehnert@…> (07/22/12 21:52:37)
- Location:
- asadb
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
asadb/groups/views.py
r04a46ed r68c93e8 82 82 context = super(GroupDetailView, self).get_context_data(**kwargs) 83 83 group = context['group'] 84 85 const_link = None 86 const_url = group.constitution_url 87 if const_url.startswith("http://") or const_url.startswith("https://"): 88 const_link = const_url 89 context['constitution_link'] = const_link 84 90 85 91 # Indicate whether this person should be able to see "private" info -
asadb/template/groups/group_detail.html
rbae2a5f r68c93e8 70 70 <tr class='private-info'> 71 71 <th>Constitution</th> 72 <td>{% if group.constitution_url %}<a href='{{group.constitution_url}}'>{{group.constitution_url}}</a>{%else%}<i>not provided</i>{%endif%}</td> 72 <td>{% if group.constitution_url %} 73 {% if constitution_link %}<a href='{{group.constitution_url}}'>{{group.constitution_url}}</a> 74 {%else%}{{group.constitution_url}}{%endif%} 75 {%else%}<i>not provided</i>{%endif%}</td> 73 76 </tr> 74 77 {% endif %}
Note: See TracChangeset
for help on using the changeset viewer.