Skip to content

Commit

Permalink
Improve bootstrap look, disable searching/sorting on some
Browse files Browse the repository at this point in the history
  • Loading branch information
cmheisel committed Jul 14, 2016
1 parent 6b556b3 commit 3a1f2fe
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions dashboard/templates/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ <h1>Project Dashboard</h1>
{% for key in data.0.keys %}
<th>{{ key }}</th>
{% endfor %}
<th>Today</th>
<th>Last week</th>
<th data-orderable="false" data-search="false">&nbsp;</th>
<th data-orderable="false" data-search="false">Today</th>
<th data-orderable="false" data-search="false">Last week</th>
</tr>
</thead>
<tbody>
Expand All @@ -51,9 +52,14 @@ <h1>Project Dashboard</h1>
{% for value in row.values %}
<td>{{ value }}</td>
{% endfor %}
<td>
{% if row.xtras.jira_summary %}
<a href="{{ JIRA_URL }}/secure/IssueNavigator.jspa?mode=hide&amp;requestId={{ row.xtras.jira_summary.filter_id }}" title="View JIRA filter"><span class="glyphicon glyphicon-th-list"></span></a>
{% endif %}
</td>
<td>
{% if row.xtras.jira_summary %}
{{ row.xtras.jira_summary.pct_complete|percentage }} <a href="{{ JIRA_URL }}/secure/IssueNavigator.jspa?mode=hide&amp;requestId={{ row.xtras.jira_summary.filter_id }}">({{ row.xtras.jira_summary.complete }}/{{ row.xtras.jira_summary.total }})</a>
{{ row.xtras.jira_summary.pct_complete|percentage }} ({{ row.xtras.jira_summary.complete }}/{{ row.xtras.jira_summary.total }})
{% endif %}
</td>
<td>
Expand All @@ -74,6 +80,7 @@ <h1>Project Dashboard</h1>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<!-- datatables -->
<script src="//cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js"></script>
<script src="//cdn.datatables.net/1.10.12/js/dataTables.bootstrap.min.js"></script>

<script type="text/javascript">
$(document).ready(function() {
Expand Down

0 comments on commit 3a1f2fe

Please sign in to comment.