-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
71b1111
commit 8dcd5e0
Showing
8 changed files
with
71 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{% extends "refactor/basic.html" %} | ||
{% block body %} | ||
<div class="container"> | ||
<div class="header"> | ||
<h3><i class='fa fa-star'></i> Featured Datasets </h3> | ||
</div> | ||
<hr/> | ||
<table class="table table-hover dataTable table-bordered" id="dataset-table" style="display:None"> | ||
<thead> | ||
<tr> | ||
<th>Table</th> | ||
<th>Database</th> | ||
<th>Owner</th> | ||
<th></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for dataset in featured_datasets %} | ||
<tr> | ||
<td> | ||
<div class="intable-longtext"> | ||
<h4>{{ dataset.table_name }}</h4> | ||
<p>{{ utils.markdown(dataset.description) | safe }}</p> | ||
</div> | ||
</td> | ||
<td class="small_table">{{ dataset.database }}</td> | ||
<td class="small_table">{{ dataset.owner }}</td> | ||
<td class="small_table"><a class="btn btn-default" href="{{ dataset.default_endpoint }}"><i class='fa fa-line-chart'/></a></td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
<hr/> | ||
</div> | ||
{% endblock %} | ||
|
||
{% block head_css %} | ||
This comment has been minimized.
Sorry, something went wrong. |
||
{{ super() }} | ||
<link rel="stylesheet" type="text/css" href="/static/assets/node_modules/datatables-bootstrap3-plugin/media/css/datatables-bootstrap3.css" /> | ||
{% endblock %} | ||
|
||
{% block tail_js %} | ||
{{ super() }} | ||
<script src="/static/assets/javascripts/dist/featured.entry.js"></script> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
var $ = window.$ = require('jquery'); | ||
var jQuery = window.jQuery = $; | ||
require('datatables'); | ||
require('datatables-bootstrap3-plugin'); | ||
require('bootstrap'); | ||
|
||
$(document).ready(function() { | ||
$('#dataset-table').DataTable({ | ||
"bPaginate": false, | ||
"order": [[ 1, "asc" ]] | ||
}); | ||
$('#dataset-table_info').remove(); | ||
$('#dataset-table').show(); | ||
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Nit-picky, but to make it easier to read I'd generally vote for matching the structure of the html page in templates, so the
block head_css
would go at the top where you'd expect to find header-related code.