Changeset 6238
- Timestamp:
- Sep 2, 2008, 11:03:46 PM (16 years ago)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TODO
r6234 r6238 10 10 * Fix dhcpd.conf template 11 11 * Add ssh_keys 12 * Check urls and response redirects; Make urls depend on urls.py instead of hardcoding them into 13 views.py and the templates. See: 14 http://www.djangoproject.com/documentation/url_dispatch/#reverse 12 15 13 * remove hardcoding in wllogic.py for 172.17 and higher as master ip 16 14 * Interface cleanups: … … 42 40 15/08/08 * Make admin work with models.py 43 41 23/08/08 * Interlink add code; Generate ipaddresses and netmask for link works. 42 03/09/08 - RZ 43 * Check urls and response redirects; Make urls depend on urls.py instead of hardcoding them into 44 views.py and the templates. See: 45 http://www.djangoproject.com/documentation/url_dispatch/#reverse 44 46 45 47 -
exodus/templates/exodus-template.html
r6206 r6238 5 5 WirelessLeiden Exodus 6 6 </TITLE> 7 <link rel="stylesheet" href=" /exodus/static/exodus.css" title="Default" type="text/css">7 <link rel="stylesheet" href="{% url static path="exodus.css" %}" title="Default" type="text/css"> 8 8 </HEAD> 9 9 <BODY> … … 11 11 <TR> 12 12 <td class="menu" valign="top"> 13 <A name="top"><img width="130" height="82" alt="logo" src=" /exodus/static/logo.png" border=0></A><br>14 <img width="130" height="97" alt="foto" src=" /exodus/static/foto.jpg"/><br>15 <A class="menu" href=" /exodus">Exodus</a><br>16 <A class="menu" href=" /exodus/nodelist">Node List</a><br>17 <A class="menu" href=" /exodus/addlocation">Add Location</a><br>18 <A class="menu" href=" /exodus/addnode">Add Node</a><br>19 <A class="menu" href=" /exodus/addnic">Add NIC</a><br>20 <A class="menu" href=" /exodus/addinterlink">Add Interlink</a><br>21 <A class="menu" href=" /exodus/addomni">Add Omni</a><br>13 <A name="top"><img width="130" height="82" alt="logo" src="{% url static path="logo.png" %}" border=0></A><br> 14 <img width="130" height="97" alt="foto" src="{% url static path="foto.jpg" %}"/><br> 15 <A class="menu" href="{% url root %}">Exodus</a><br> 16 <A class="menu" href="{% url nodelist %}">Node List</a><br> 17 <A class="menu" href="{% url exodus.views.addlocation %}">Add Location</a><br> 18 <A class="menu" href="{% url exodus.views.addnode %}">Add Node</a><br> 19 <A class="menu" href="{% url exodus.views.addnic %}">Add NIC</a><br> 20 <A class="menu" href="{% url exodus.views.addinterlink %}">Add Interlink</a><br> 21 <A class="menu" href="{% url exodus.views.addomni %}">Add Omni</a><br> 22 22 <p> 23 23 </td> -
exodus/templates/node-list.html
r6217 r6238 10 10 <tr> 11 11 <td class="list" ><a class="list"href=../{{ object.name }}/node/> {{ object.name }} </a><td> 12 <td><a href= ../{{ object.name }}/dhcpd.conf>dhcpd.conf</a></td>13 <td><a href= ../{{ object.name }}/named.conf>named.conf</a></td>14 <td><a href= ../{{ object.name }}/rc.node.local>rc.node.local</a></td>15 <td><a href= ../{{ object.name }}/resolv.conf>resolv.conf</a></td>12 <td><a href="{% url exodus.views.conf_dhcpd_conf object.name %}">dhcpd.conf</a></td> 13 <td><a href="{% url exodus.views.conf_named_conf object.name %}">named.conf</a></td> 14 <td><a href="{% url exodus.views.conf_rc_node_local object.name %}">rc.node.local</a></td> 15 <td><a href="{% url exodus.views.conf_resolv_conf object.name %}">resolv.conf</a></td> 16 16 </tr> 17 17 -
exodus/urls.py
r6215 r6238 33 33 34 34 # views 35 (r'^$', 'django.views.generic.simple.direct_to_template', {'template': 'index.html'}) ,36 (r'^nodelist/$', 'django.views.generic.list_detail.object_list', dict(node_dict, template_name='node-list.html')),35 url(r'^$', 'django.views.generic.simple.direct_to_template', {'template': 'index.html'}, "root") , 36 url(r'^nodelist/$', 'django.views.generic.list_detail.object_list', dict(node_dict, template_name='node-list.html'), "nodelist"), 37 37 (r'^(?P<slug>.+)/node/$', 'django.views.generic.list_detail.object_detail', dict(node_dict,slug_field='name',template_name='node-detail.html')), 38 38 … … 51 51 (r'^addomni/$', 'exodus.views.addomni'), 52 52 53 (r'^static/(.*)$', 'django.views.static.serve', {'document_root':54 settings.DJANGOROOT + '/exodus/static'} ),53 url(r'^static/(?P<path>.*)$$', 'django.views.static.serve', {'document_root': 54 settings.DJANGOROOT + '/exodus/static'}, "static"), 55 55 )
Note:
See TracChangeset
for help on using the changeset viewer.