ongoing adjustments according to lab requirements
[htsworkflow.git] / htswfrontend / templates / admin / index.html
1 {% extends "admin/base_site.html" %}
2 {% load i18n %}
3
4 {% block stylesheet %}{% load adminmedia %}{% admin_media_prefix %}css/dashboard.css{% endblock %}
5 {% block coltype %}colMS{% endblock %}
6 {% block bodyclass %}dashboard{% endblock %}
7 {% block breadcrumbs %}{% endblock %}
8 {% block content %}
9 <div id="content-main">
10
11 {% load adminapplist %}
12
13 {% get_admin_app_list as app_list %}
14 {% if app_list %}
15     {% for app in app_list %}
16         <div class="module">
17         <table summary="{% blocktrans with app.name as name %}Models available in the {{ name }} application.{% endblocktrans %}">
18         <caption>{% blocktrans with app.name as name %}{{ name }}{% endblocktrans %}</caption>
19         {% for model in app.models %}
20             <tr>
21             {% if model.perms.change %}
22                 <th scope="row"><a href="{{ model.admin_url }}">{{ model.name }}</a></th>
23             {% else %}
24                 <th scope="row">{{ model.name }}</th>
25             {% endif %}
26
27             {% if model.perms.add %}
28                 <td><a href="{{ model.admin_url }}add/" class="addlink">{% trans 'Add' %}</a></td>
29             {% else %}
30                 <td>&nbsp;</td>
31             {% endif %}
32
33             {% if model.perms.change %}
34                 <td><a href="{{ model.admin_url }}" class="changelink">{% trans 'Change' %}</a></td>
35             {% else %}
36                 <td>&nbsp;</td>
37             {% endif %}
38             </tr>
39         {% endfor %}
40         </table>
41         </div>
42     {% endfor %}
43 {% else %}
44     <p>{% trans "You don't have permission to edit anything." %}</p>
45 {% endif %}
46
47       <div class="module">
48         <table>
49           <caption><span style="color:red">New!</span> Reports <span style="color:black;font-size:80%">(Note: Some features currently work only on Firefox)</span></caption>
50             <tr>
51              <th scope="row"><a href="/htsw_reports/report" target=_self>ChIP-Seq Reports</a></th>
52              <th scope="row"></th><td></td><td>&nbsp;</td><td></td><td>&nbsp;</td>
53             </tr>
54             <tr>
55              <th scope="row"><a href="/htsw_reports/report_RM" target=_self>RNA-Seq Reports</a></th>
56              <th scope="row"></th><td></td><td>&nbsp;</td><td></td><td>&nbsp;</td>
57             </tr>
58             <tr>
59              <th scope="row"><a href="/htsw_reports/report_RM?exp=Methyl-seq" target=_self>Methyl-Seq Reports</a></th>
60              <th scope="row"></th><td></td><td>&nbsp;</td><td></td><td>&nbsp;</td>
61             </tr>
62        </table>
63        </div>
64        <div class="module">
65         <table>
66           <caption>Docs & Tools</caption>
67             <tr>
68              <th scope="row"><a href="http://illumina-mac.stanford.edu/SequencingSummaries/SequencingSummary.html" target=_blank>Sequencing Summary Page</a></th>
69              <th scope="row"></th>
70              <td></td>
71              <td>&nbsp;</td>
72              <td></td>
73              <td>&nbsp;</td>
74             </tr>
75             <tr>
76              <th scope="row"><a href="http://m304-apple-server.stanford.edu/PrimerDesign" target=_blank>ChIP QC Primer Design</a>&nbsp;&nbsp;
77              <a href="http://m304-apple-server.stanford.edu/ValidationDesign/" target=_blank>ChIP Validation Design</a>
78              </th>
79              <th scope="row"></th>
80              <td></td>
81              <td>&nbsp;</td>
82              <td></td>
83              <td>&nbsp;</td>
84             </tr>
85             <tr>
86              <th scope="row"><a href="http://myers.hudsonalpha.org/content/protocols.html" target=_blank>Protocols - Myers Lab</a></th>
87              <th scope="row"></th>
88              <td></td>
89              <td>&nbsp;</td>
90              <td></td>
91              <td>&nbsp;</td>
92             </tr>
93              <tr>
94              <th scope="row"><a href="https://woldlab.caltech.edu/html/protocols" target=_blank>Protocols - Wold Lab</a></th>             
95              <th scope="row"></th>
96              <td></td>
97              <td>&nbsp;</td>
98              <td></td>
99              <td>&nbsp;</td>
100             </tr>
101             <tr>
102              <th scope="row"><a href="http://www.ncbi.nlm.nih.gov/pubmed/18711362" target=_blank>QuEST</a></th>
103              <th scope="row"></th>
104              <td></td>
105              <td>&nbsp;</td>
106             <td></td>
107             <td>&nbsp;</td>
108             </tr>
109         </table>
110         </div>
111 </div>
112 {% endblock %}
113
114 {% block sidebar %}
115 <div id="content-related">
116     <div class="module" id="recent-actions-module">
117         <h2>{% trans 'Recent Actions' %}</h2>
118         <h3>{% trans 'My Actions' %}</h3>
119             {% load log %}
120             {% get_admin_log 10 as admin_log for_user user %}
121             {% if not admin_log %}
122             <p>{% trans 'None available' %}</p>
123             {% else %}
124             <ul class="actionlist">
125             {% for entry in admin_log %}
126             <li class="{% if entry.is_addition %}addlink{% endif %}{% if entry.is_change %}changelink{% endif %}{% if entry.is_deletion %}deletelink{% endif %}">{% if not entry.is_deletion %}<a href="{{ entry.get_admin_url }}">{% endif %}{{ entry.object_repr|escape }}{% if not entry.is_deletion %}</a>{% endif %}<br /><span class="mini quiet">{% filter capfirst %}{% trans entry.content_type.name %}{% endfilter %}</span></li>
127             {% endfor %}
128             </ul>
129             {% endif %}
130     </div>
131 </div>
132 {% endblock %}