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