Changed Frequently Used links to be properly relative
authorLorian Schaeffer <lorian@caltech.edu>
Fri, 1 Oct 2010 18:57:01 +0000 (18:57 +0000)
committerLorian Schaeffer <lorian@caltech.edu>
Fri, 1 Oct 2010 18:57:01 +0000 (18:57 +0000)
htsworkflow/frontend/templates/admin/index.html

index 772474bea54585947ff0955ebdea5924d385b6e7..0b5e1b20bc31b4da7d77280aec06795e77c9aa62 100644 (file)
 {% block content %}
 <div id="content-main">
 
+<div class='module'>
+<table>
+<caption>Frequently Used</caption>
+<tr>
+<th scope="row"><a href="/admin/samples/library/">Libraries</a></th>
+<td><a href="/admin/samples/library/add/" class="addlink">{% trans 'Add' %}</a></td>
+</tr>
+<tr>
+<th scope="row"><a href="/admin/experiments/flowcell/">Flowcells</a></th>
+<td><a href="/admin/experiments/flowcell/add/" class="addlink">{% trans 'Add' %}</a></td>
+</tr>
+</table></div><BR>
+
 {% if app_list %}
     {% for app in app_list %}
         <div class="module">
             {% else %}
                 <td>&nbsp;</td>
             {% endif %}
-
-            {% if model.perms.change %}
-                <td><a href="{{ model.admin_url }}" class="changelink">{% trans 'Change' %}</a></td>
-            {% else %}
-                <td>&nbsp;</td>
-            {% endif %}
             </tr>
         {% endfor %}
         </table>